Currently there is no obvious way other than low-level resources to get https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html
To integrate it with the existing listeners, I have to do something like this:
const listener = elbv2.ApplicationListener.fromApplicationListenerAttributes(this, "InternalVPCListener", {
listenerArn: "arn:aws:elasticloadbalancing:..:listener/app/lsdksjfdsf-21IW/9a3d8768a479f7f6/c99babbc37014371",
securityGroupId: "sg-07a315ff"
});
const rule = new elbv2.ApplicationListenerRule(this, "ListenerRule", {
priority: 5,
listener: listener,
hostHeader: 'host.example.com',
});
rule.actions[0].order = 2;
rule.node.defaultChild.actions = cdk.Lazy.anyValue({
produce: () => [{
authenticateOidcConfig: {
authorizationEndpoint: "https://accounts.google.com/o/oauth2/v2/auth",
clientId: "1",
clientSecret: "2",
issuer: "https://accounts.google.com",
tokenEndpoint: "https://oauth2.googleapis.com/token",
userInfoEndpoint: "https://openidconnect.googleapis.com/v1/userinfo"
},
type: "authenticate-oidc",
order: 1
}, ...rule.actions]
});
Use Case
Usecase I faced - is to authenticate some target behind ALB like described in the article
https://cloudonaut.io/how-to-secure-your-devops-tools-with-alb-authentication/?ck_subscriber_id=640789667
Proposed Solution
Would be nice to have something in the BaseApplicationListenerRuleProps to address that
Other
This is a 🚀 Feature Request
Currently there is no obvious way other than low-level resources to get https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html
To integrate it with the existing listeners, I have to do something like this:
Use Case
Usecase I faced - is to authenticate some target behind ALB like described in the article
https://cloudonaut.io/how-to-secure-your-devops-tools-with-alb-authentication/?ck_subscriber_id=640789667
Proposed Solution
Would be nice to have something in the
BaseApplicationListenerRulePropsto address thatOther
This is a 🚀 Feature Request