Skip to content

feat(auth): external credential type in auth#906

Open
Prahathess (rakshasa-1729) wants to merge 3 commits intotalkiq:masterfrom
rakshasa-1729:rakshasa-1729/wif-auth
Open

feat(auth): external credential type in auth#906
Prahathess (rakshasa-1729) wants to merge 3 commits intotalkiq:masterfrom
rakshasa-1729:rakshasa-1729/wif-auth

Conversation

@rakshasa-1729

Summary

Related to #578

Adds support for the external_account service account type, which is used in Workload Identity Federation.

@rakshasa-1729
Copy link
Author

Kevin James (@TheKevJames) Could use some help triggering the integration tests once

@cagataygurturk

Hi any ETA here?

"""Get the subject token from the credential source."""
source_type = credential_source.get('type')
if not source_type:
raise ValueError('Credential source missing type')

Choose a reason for hiding this comment

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

Hi, the source_type property is not mandatory as far as I understand. When we download a configuration file, this is what we get:

{
  "universe_domain": "googleapis.com",
  "type": "external_account",
  "audience": "WORKLOAD_IDENTITY_PROVIDER_ID",
  "subject_token_type": "urn:ietf:params:oauth:token-type:jwt",
  "token_url": "https://sts.googleapis.com/v1/token",
  "credential_source": {
    "file": "/var/run/secrets/kubernetes.io/serviceaccount/token",
    "format": {
      "type": "text"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants