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

Teleport sends AWS metadata to access graph #46970

Closed
wants to merge 1 commit into from

Conversation

mvbrock
Copy link
Contributor

@mvbrock mvbrock commented Sep 30, 2024

https://github.com/gravitational/access-graph/issues/979 specifies a need for friendly AWS account names in access graph resources. These changes add an AccountAlias field to AccessGraphAWSSync for creating a new discovery configuration /webapi/sites/:site/discoveryconfig. This account alias is then emitted as metadata to the access graph alongside its corresponding AWS resources. A subsequent PR will modify the access graph to store this metadata in an account_id -> account_alias lookup table, and include account alias on selected AWS resources.

@@ -65,7 +65,7 @@ func (s *Server) reconcileAccessGraph(ctx context.Context, currentTAGResources *
// We will send a delete request for all resources and return.
upsert, toDel := aws_sync.ReconcileResults(currentTAGResources, &aws_sync.Resources{})

if err := push(stream, upsert, toDel); err != nil {
if err := push(stream, upsert, toDel, []*accessgraphv1alpha.AWSMetadata{}); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

just add aws metadata to the resources and let reconciler decidde when we need to push/delete/not push anything

@mvbrock
Copy link
Contributor Author

mvbrock commented Oct 1, 2024

Closing after chatting with @jakule about an API-only solution, where the UI can pull the account ID+alias and annotate graph objects accordingly. More info in the Slack discussion.

@mvbrock mvbrock closed this Oct 1, 2024
@mvbrock mvbrock deleted the mvbrock/aws-friendly-account-name branch October 7, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants