-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Allow passing an optional ARN when health checking an AWSOIDC integration #46935
Conversation
Is the check to see if the role ARN exists (or if it's configured to trust the OIDC token) before creating the integration? |
I'll convert it into draft because I want to polish some parts and add tests. |
It checks if it is configured to trust the OIDC token. |
c402a35
to
716ed7c
Compare
716ed7c
to
fb5108c
Compare
fb5108c
to
f379a41
Compare
@fspmarshall @camscale Can you please take a look? |
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.
Sorry I didn't review this sooner. When I see a PR with people explicitly chosen to review it, I kind of ignore the bot assignment assuming those others have better context for the review.
This PR changes the Ping method to accept a custom ARN. This is meant to be used by WebUI to do a health check for the integration: - when creating - when editing - when selecting during Discover flows If the Ping method receives an ARN, it will use that value instead of using the one stored in the backend.
f379a41
to
32070ae
Compare
@kimlisa After changing some things, would you mind taking a look? |
approved |
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.
Bot.
…tion (#46935) * AWS OIDC Ping: allow custom ARN This PR changes the Ping method to accept a custom ARN. This is meant to be used by WebUI to do a health check for the integration: - when creating - when editing - when selecting during Discover flows If the Ping method receives an ARN, it will use that value instead of using the one stored in the backend. * rename arn to roleArn * rename arn to role_arn --------- Co-authored-by: Marco Dinis <[email protected]>
This new addition allows us to health check aws oidc integrations before a user creates or edits the integration.
Demo:
curl --data '{"arn":"arn:aws:iam::123456789012:role/MyRole"}' '.../integrations/aws-oidc/my-integration/ping'