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

API keys are set at compile time instead of runtime #3

Open
spenserblack opened this issue Sep 19, 2022 · 0 comments
Open

API keys are set at compile time instead of runtime #3

spenserblack opened this issue Sep 19, 2022 · 0 comments

Comments

@spenserblack
Copy link

Is this intentional?

As a simple example of what I mean, if you do this:

export DICTIONARY_KEY=foo-123
cargo build
export DICTIONARY_KEY=bar-456
./target/debug/defrs

Then the API key that gets used is foo-123, not bar-456. By setting the API key at compile time

  • users share API keys if they share binaries
  • users need to recompile the binary if they want to change the API key
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

1 participant