fix(operators): Do not filter OPENID_CLIENT_ID and OPENID_DOMAIN from secrets.

This commit is contained in:
SamTolmay 2021-05-11 12:54:16 +02:00
parent 76a4d7c4b3
commit 3c56737cc2
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ function _secret({ env, location, params, secrets = {} }) {
}
// Filter out OpenID Connect and JSON web token secrets
// eslint-disable-next-line no-unused-vars
const { OPENID_CLIENT_ID, OPENID_CLIENT_SECRET, OPENID_DOMAIN, JWT_SECRET, ...rest } = secrets;
const { OPENID_CLIENT_SECRET, JWT_SECRET, ...rest } = secrets;
return getFromObject({
env,
location,

View File

@ -96,6 +96,8 @@ test('secret OpenID Connect and JSON web token secrets are filtered out', () =>
env: 'env',
location: 'location',
object: {
OPENID_CLIENT_ID: 'OPENID_CLIENT_ID',
OPENID_DOMAIN: 'OPENID_DOMAIN',
OTHER: 'OTHER',
},
operator: '_secret',