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

How to avoid having to log in to services every time? #12

Closed
ianmacartney opened this issue Apr 8, 2023 · 3 comments
Closed

How to avoid having to log in to services every time? #12

ianmacartney opened this issue Apr 8, 2023 · 3 comments

Comments

@ianmacartney
Copy link

🚀 Feature

Is there any persisted data between workspaces?
My workflow involves logging into services like Fly.io / Convex, which store auth info in the home directory.
Do I have to log in again every time I start up a development environment, or is there some way to add the auth?

I considered adding it to the config yaml file (to write the auth files), but I wouldn't want to put my login credentials in the file that's checked into the repo.

I'd like to be able to spin up a workspace and immediately be able to run commands that require auth files to already exist in ~/.fly , ~/.convex , etc.

Thanks!

@hugodutka
Copy link
Member

You can use the Environment feature, which lets you save your credentials in the Hocus database and inject them into prebuild and workspace tasks as environment variables. Then you’d use hocus.yml to write your auth files.

https://hocus.dev/docs/projects#environment-variables

Would that solve your issue?

@ianmacartney
Copy link
Author

ianmacartney commented Apr 10, 2023 via email

@hugodutka
Copy link
Member

Seems resolved, closing the issue then.

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

No branches or pull requests

2 participants