HomePhabricator
Diffusion Comm e0b5a8e71bd7

[identity][docker] Add option to generate opaque keypair

Description

[identity][docker] Add option to generate opaque keypair

Summary:
I'm aware that this functionality existed before, but was removed in D8580. Now I'm reintroducing it but making opt-in.
For commtest being run as a docker container that depends on identity, the easisest way is to generate the opaque server setup during image build.

Depends on D9507

Test Plan:

  • docker compose build identity-server creates unchanged image
  • docker compose build --build-arg 'generate_keypair=true' adds additional layer and generates secrets/server_setup.txt

Image layers can be checked using e.g. the dive tool: dive commapp/identity-server.

Reviewers: varun, michal, jon

Reviewed By: varun

Subscribers: ashoat, tomek, wyilio

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

Details

Provenance
bartekAuthored on Oct 17 2023, 4:28 AM
Reviewer
varun
Differential Revision
D9508: [identity][docker] Add option to generate opaque keypair
Parents
rCOMMda4cc47eeaf0: [terraform] Localstack changes for commtest
Branches
Unknown
Tags
Unknown