Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 766 Bytes

secrets.md

File metadata and controls

19 lines (15 loc) · 766 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:

dart 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).
  • Announcement banner contains the HTML markup: announcement.
  • Site-wide upload restrictions: upload-restriction.
  • Youtube API key: youtube-api-key.