HomePhabricator
Diffusion Comm 5d78d6550580

[keyserver] Make importJSON check env variables

Description

[keyserver] Make importJSON check env variables

Summary:
As we Dockerize the keyserver, we need to make it possible to define config via environmental variables. This is a standard practice in Docker for specifying config/secrets.

Currently we specify config/secrets to Node via JSON files that get imported directly. In previous diffs in the stack, I've refactored all of these codepaths to go through importJSON. In this diff, I make it possible for importJSON to get the config from environmental variables rather than JSON files.

Depends on D4101

Test Plan: I tested this diff in combination with the next one. See the test plan there

Reviewers: palys-swm, atul

Reviewed By: atul

Subscribers: Adrian, yayabosh

Differential Revision: https://phabricator.ashoat.com/D4102

Details

Provenance
ashoatAuthored on May 22 2022, 5:56 PM
Reviewer
atul
Differential Revision
D4102: [keyserver] Make importJSON check env variables
Parents
rCOMM19025ed984f9: [keyserver] Extract getJSON from importJSON
Branches
Unknown
Tags
Unknown