Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 602 Bytes

secrets.md

File metadata and controls

16 lines (12 loc) · 602 Bytes

Secrets

While the application is open-source, we still need to store and access secrets, for example SMTP credentials. For that we are using the Secret entity in Datastore, where the id is the key of the secret, while the value contains the current credential value.

There is a command-line tool to change the secret value in Datastore:

bin/tools/set_secret.dart [key] [value]

Currently used keys are listed in SecretKey.values. For example:

  • Redis connection string: redis.connectionString
  • OAuth secret_key: oauth.secret-[client_id] (used for the site OAuth flow)