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

Setting Use to clear out ACL tokens when switching stacks #10

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

Shackelford-Arden
Copy link
Owner

Been having to run unset NOMAD_TOKEN far too often when switching stacks due to cached tokens being invalid.

Also had some scenarios where while caching was disabled, if any tokens were previously cached pre-disabling cache, really old tokens would get pulled in.

@Shackelford-Arden
Copy link
Owner Author

Currently this still leaves the scenario where if caching is enabled and users switch to stacks that have expired tokens cached, subsequent calls to the respective CLI will end with errors.

Next step here would be to check if the token is valid, and if it is not, then to both not include it in the output of hctx use and remove the expired token(s) from cache to avoid future issue.

@Shackelford-Arden Shackelford-Arden merged commit b4dbbbf into main Jul 12, 2024
2 checks passed
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.

1 participant