mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Website: (Microsoft compliance proxy) Add support for multiple compliance partner shared secret config variables. (#38284)
Related to: https://github.com/fleetdm/confidential/issues/13468 Changes: - Updated the `is-cloud-customer` policy to support a second compliance partner shared secret config variable.
This commit is contained in:
parent
1d8fa437e5
commit
35772b6ddc
2 changed files with 2 additions and 1 deletions
2
website/api/policies/is-cloud-customer.js
vendored
2
website/api/policies/is-cloud-customer.js
vendored
|
|
@ -12,7 +12,7 @@ module.exports = async function (req, res, proceed) {
|
|||
|
||||
// If an MS API KEY header was provided, check to see if it matches the entraSharedSecret.
|
||||
if (req.get('MS-API-KEY')) {
|
||||
if(req.get('MS-API-KEY') === sails.config.custom.cloudCustomerCompliancePartnerSharedSecret){
|
||||
if([sails.config.custom.cloudCustomerCompliancePartnerSharedSecret, sails.config.custom.alternateCompliancePartnerSharedSecret].includes(req.get('MS-API-KEY'))){
|
||||
return proceed();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1
website/config/custom.js
vendored
1
website/config/custom.js
vendored
|
|
@ -477,6 +477,7 @@ module.exports.custom = {
|
|||
// compliancePartnerClientId: '…',
|
||||
// compliancePartnerClientSecret: '…',
|
||||
// cloudCustomerCompliancePartnerSharedSecret: '…',
|
||||
// alternateCompliancePartnerSharedSecret: '…',
|
||||
|
||||
|
||||
// Android proxy
|
||||
|
|
|
|||
Loading…
Reference in a new issue