HomePhabricator
Diffusion Comm 77b0c5c52375

[keyserver] Add a function which checks if a keyserver is authoritative

Description

[keyserver] Add a function which checks if a keyserver is authoritative

Summary:
On prod, only Ashoat's keyserver is authoritative.
On our local environments, we usually run the authoritative keyserver using yarn dev. Additional keyserver are run using docker, which calls npm prod beneath.

https://linear.app/comm/issue/ENG-7842/create-an-env-variable-that-tells-if-we-should-create-a-genesis

Test Plan: Run a local keyserver and check if the function returns true. Run a keyserver in docker and check if the function returns false.

Reviewers: inka, ginsu

Reviewed By: inka

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on May 28 2024, 1:54 AM
Reviewer
inka
Differential Revision
D12226: [keyserver] Add a function which checks if a keyserver is authoritative
Parents
rCOMM0179df617f89: [native_rust_library] fix serialization of BackupKeysResult
Branches
Unknown
Tags
Unknown