Skip to content
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

feat: support origin label when creating a new aws oidc integration #47725

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

flyinghermit
Copy link
Contributor

@flyinghermit flyinghermit commented Oct 18, 2024

This PR:

  • Adds a new origin constant is added for aws-identity-center. It will be used to reference resources imported from AWS identity center and also group identity center related resources in Teleport so they can be prevented from update/deletion while the identity center plugin is still active.
    -updates Web UI:
    • Supports providing origin value in Web UI integration create request.
    • Parses origin field for AWS OIDC spec.
  • updates Web API:
    • Handles origin label for create AWS OIDC integration.
    • Includes origin label in get and list integration response.

The goal is to tie oidc integration (address in this PR), saml service provider together with the Identity Center plugin so that these dependency can be prevented from update/deletion without editing/deleting the plugin itself. Such prevention will be followed up separately once the other plugin related work is merged to master.
Only applies to AWS OIDC integration create method. Other integration types and integration update method is left unchanged.

Part of https://github.com/gravitational/teleport.e/issues/4839

@flyinghermit flyinghermit added the no-changelog Indicates that a PR does not require a changelog entry label Oct 18, 2024
@flyinghermit flyinghermit marked this pull request as ready for review October 18, 2024 20:38
@github-actions github-actions bot requested a review from kiosion October 18, 2024 20:38
// OriginAWSIdentityCenter indicates that the resource was
// imported from the AWS Identity Center or belongs to the
// Teleort Identity Center integration.
OriginAWSIdentityCenter = "aws-identity-center"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tcsc FYI, I added this origin label with aws-identity-center here. In the poc work, we used aws_iam_ic. Is there any preference for you? My reason for picking up aws-identity-center is that is used in the Plugin related work but should not hamper if this is different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/md ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant