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

Add env var user and pass to .bashrc #42

Open
qmacro opened this issue Nov 12, 2024 · 1 comment
Open

Add env var user and pass to .bashrc #42

qmacro opened this issue Nov 12, 2024 · 1 comment
Assignees

Comments

@qmacro
Copy link
Contributor

qmacro commented Nov 12, 2024

Participants were starting new shells (new terminal sessions) and losing any explicitly set BTP_USERNAME and BTP_PASSWORD values, in Codespace-based or Dev Container (without devcontainer.env) based contexts.

Might be a good idea to get the participants to add the export ... lines to the end of $HOME/.bashrc instead / as well so the env vars are present in all new shells.

@qmacro qmacro self-assigned this Nov 12, 2024
@lechnerc77
Copy link
Member

For the devcontainer setup user can and should add the credentials to the devcontainer.env file. These credentials are then available in the container for all Terminal sessions and I would highly recommend this.

In case of a local setup (or if participants used the non-env devcontainer) I would recommend to put the credentials in a .env file and either execute the export $(xargs <.env) command in bash or add this export command in the .bashrc.I would not put the password directly into .bashrc.

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