Azure-docs: How long the token is valid for

Created on 3 Dec 2019  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

In the docs it says Once you are successfully signed in, the account token is cached for future kubectl commands
But does not mention how long the token is valid for.
How would we use it into an automated pipeline? Can we use the same token?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 container-servicsvc cxp product-question triaged

All 7 comments

Thanks for the question! We are investigating and will update you shortly.

@guibirow I will have the relevant team add comments on the token cached validity.

@MicrosoftDocs/aks-pm Please add your comments on the cached token validity.

following

@MicrosoftDocs/aks-pm can you please look into this and confirm on the token validity.

Depends on if this is AAD enabled cluster or not. AAD tokens have the AAD-defined validity (which can also be controlled)
https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes

For pipelines we normally recommend Service Accounts and SA tokens.

@guibirow Hope the comment above helped answer your question.
We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Agazoth picture Agazoth  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments