-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generic Google handlers #12
base: master
Are you sure you want to change the base?
Conversation
This commit extends the generic package support to include Google authenticators It generates separate packages for "hosted-domain" and "email-lookup" validation types, but does not yet include one for "google-groups" as that requires a JSON file at runtime; need to determine a good option to supply that as a secret.
case 'groups-lookup': | ||
config.SUBDIST = isGeneric && "groups_lookup"; | ||
if (isGeneric) { | ||
// TODO: provide a base64 encoded method for user-supplied google-authz.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice, i guess, if you wanted to support groups-based lookups.. not something i currently need though
@@ -11,7 +11,7 @@ module.exports.getConfig = function (fileName, functionName, callback) { | |||
|
|||
// Get parameters from SSM Parameter Store | |||
const ssm = new aws.SSM({ region: 'us-east-1' }); | |||
const getParametersByPathPromise = ssm.getParametersByPath({ Path: `/${name}` }).promise(); | |||
const getParametersByPathPromise = ssm.getParametersByPath({ Path: `/${name}`, WithDecryption: true }).promise(); | |||
|
|||
// Get key pair from Secrets Manager | |||
const secretsmanager = new aws.SecretsManager({ region: 'us-east-1' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the region be configurable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lambda@Edge functions must be deployed in us-east-1, so i'm not sure there's any value in making the region configurable
@iress given your PR is still pending, perhaps it'd be worth adding my Google update to it (feedback welcome)
This commit extends the generic package support to include Google
authenticators
It generates separate packages for "hosted-domain" and "email-lookup"
validation types, but does not yet include one for "google-groups" as
that requires a JSON file at runtime; need to determine a good option to
supply that as a secret.