Skip to content

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

@spenserblack

Description

@spenserblack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions