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

service-accounts: add jwts, better handling of user id #26

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

calebdoxsey
Copy link
Contributor

Add a jwt property to the output of service accounts. This is only populated on creation but will be stored in the terraform state.

User IDs are somewhat confusing with service accounts. There are two cases:

  1. If the namespace_id is null when AddPomeriumServiceAccount is called the user ID of the service account will be set to what the user enters.
  2. If the namespace_id is not null when AddPomeriumServiceAccount is called the user ID will have @{NAMESPACE-ID}.pomerium added to it.

To reflect this behavior, use the name field, which doesn't exist in the enterprise console, to represent the user ID without the added @....

@calebdoxsey calebdoxsey requested a review from a team as a code owner January 17, 2025 22:37
@calebdoxsey calebdoxsey requested a review from wasaga January 17, 2025 22:37
@calebdoxsey calebdoxsey changed the title Cdoxsey/service account jwt service-accounts: add jwts, better handling of user id Jan 17, 2025
@calebdoxsey calebdoxsey merged commit 1f5abc3 into main Jan 20, 2025
3 checks passed
@calebdoxsey calebdoxsey deleted the cdoxsey/service-account-jwt branch January 20, 2025 17:51
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