Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Support reading client/server secret from an environment variable#18

Merged
ekzhang merged 1 commit intoekzhang:mainfromorhun:secret_env
Apr 14, 2022

Conversation

orhun
Copy link
Contributor

@orhunorhun commentedApr 12, 2022
edited
Loading

This PR addsenv feature toclap for defining custom variables to read the values of--secret arguments from the environment.

  • BORE_SECRET: sets the client/server secret

closes#17

praveenperera and jihchi reacted with thumbs up emojijalavosus reacted with heart emoji
Copy link
Owner

@ekzhangekzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for doing this! Is there a reason why the environment variable names are different between client and server though, rather than justBORE_SECRET? I can't think of any case where a user would set these two environment variables to different values, since the secret is intended to be the same on both ends.

@orhun
Copy link
ContributorAuthor

Thank you for doing this! Is there a reason why the environment variable names are different between client and server though, rather than justBORE_SECRET? I can't think of any case where a user would set these two environment variables to different values, since the secret is intended to be the same on both ends.

Good point, I guess I haven't thought of that 🐻

Updated the PR.

@praveenperera
Copy link
Contributor

Thank you for doing this! Is there a reason why the environment variable names are different between client and server though, rather than justBORE_SECRET? I can't think of any case where a user would set these two environment variables to different values, since the secret is intended to be the same on both ends.

Could someone maybe use bore to hope traffic between a few servers? That's the only reason I could see both bore client and server being used on the same machine.

@gngeorgiev
Copy link

@praveenperera You can just reassign the env variable per each instance:

BORE_SECRET=$BORE_CLIENT_SECRET ./clientBORE_SECRET=$BORE_SERVER_SECRET ./server
praveenperera reacted with thumbs up emoji

@ekzhang
Copy link
Owner

Thank you!

@ekzhangekzhang merged commitcae08bb intoekzhang:mainApr 14, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ekzhangekzhangekzhang left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Feature request: read server secret from environment variable
4 participants
@orhun@praveenperera@gngeorgiev@ekzhang

[8]ページ先頭

©2009-2025 Movatter.jp