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

[FEATURE] Expire cli tokens. #446

Open
alekslario opened this issue Jan 10, 2024 · 1 comment
Open

[FEATURE] Expire cli tokens. #446

alekslario opened this issue Jan 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alekslario
Copy link

alekslario commented Jan 10, 2024

Is your feature request related to a problem? Please describe.
It is annoying to use Doppler with remote servers or serverless services like Codespaces because I have to manually delete the CLI token every time (from the dashboard).

Describe the solution you'd like
There should be a way to define the token expiration time. Like doppler login -e 300

@alekslario alekslario added the enhancement New feature or request label Jan 10, 2024
@watsonian
Copy link
Contributor

@alekslario Thanks for submitting this! We've opened an internal feature request issue to track this. In the mean time, there are a couple things you can do to reduce the friction around this.

  • Login via the CLI, get the token with doppler configure get token --plain and then set that as a DOPPLER_TOKEN environment variable in GitHub's user Codespaces secrets. The CLI will automatically use any token set in DOPPLER_TOKEN, so this would alleviate the need to login at all.
  • For things like Codespaces, you can take advantage of volumes and the DOPPLER_CONFIG_DIR environment variable to ensure your logged in CLI session is stored on a volume that gets remounted to your development container. This would survive across sessions.
  • Run doppler logout from the CLI on remote servers. This will allow you to revoke the CLI token from the command line immediately without having to find it in the dashboard.

Ultimately, this is definitely an area we want to improve though! Thanks again for your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants