HomePhabricator
Diffusion Comm d90a864ea669

[keyserver] Print warnings if usingIdentityCredentials not set

Description

[keyserver] Print warnings if usingIdentityCredentials not set

Summary:
issue: ENG-6618
We want to warn the dev that they are not using identity credentials for communictaing with the clients

For now using identity credentials is optional. The dev can proceed with their setup. If they want to start using the identity credentials though, they need to restart nix and go through setting up a new keyserver.
If the keyserver is run in Docker, the dev should set usingIdentityCredentials flag in COMM_JSONCONFIG_secrets_user_credentials env variable and create a new keyserver. See doc

We don't need this warning on the prod keyserver - it will not have the flag set, but that's fine, because the dafualt 256 is its id.

Test Plan: Ran the keyserver and checked that if usingIdentityCredentials is set then the warning is not printed, and if it is set, then the warning is printed

Reviewers: tomek, michal

Reviewed By: michal

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D11267

Details

Provenance
inkaAuthored on Mar 7 2024, 3:07 AM
Reviewer
michal
Differential Revision
D11267: [keyserver] Print warnings if usingIdentityCredentials not set
Parents
rCOMM9f1938b9e6ea: [scripts] Hide password
Branches
Unknown
Tags
Unknown