Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion k8s/settings_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ def _multiline_to_list(s):
queue=os.environ.get("RABBITMQ_QUEUE", "dt"),
)

# mailarchive API key
_mailing_list_archive_api_key = os.environ.get("DATATRACKER_MAILING_LIST_ARCHIVE_API_KEY", None)
if _mailing_list_archive_api_key is None:
raise RuntimeError("DATATRACKER_MAILING_LIST_ARCHIVE_API_KEY must be set")
MAILING_LIST_ARCHIVE_API_KEY = _mailing_list_archive_api_key

IANA_SYNC_USERNAME = "ietfsync"
IANA_SYNC_CHANGES_URL = "https://datatracker.iana.org:4443/data-tracker/changes"
IANA_SYNC_PROTOCOLS_URL = "http://www.iana.org/protocols/"
Expand Down Expand Up @@ -173,7 +179,13 @@ def _multiline_to_list(s):
"DATATRACKER_MEETECHO_CLIENT_ID and DATATRACKER_MEETECHO_CLIENT_SECRET must be set"
)

# For APP_API_TOKENS, ccept either base64-encoded JSON or raw JSON, but not both
# For APP_API_TOKENS, accept either base64-encoded JSON or raw JSON, but not both.
# To decode / pretty-print the encoded form, run:
# base64 -d | jq .
# paste the encoded secret into stdin. Copy/paste that into an editor you trust not
# to leave a copy lying around. When done editing, copy/paste the final JSON through
# jq -c | base64
# and copy/paste the output into the secret store.
if "DATATRACKER_APP_API_TOKENS_JSON_B64" in os.environ:
if "DATATRACKER_APP_API_TOKENS_JSON" in os.environ:
raise RuntimeError(
Expand Down