Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build arg for skipping identity wrapper (#624)
## Motivation The proxy identity-initializing wrapper is responsible for generating a CSR and key for the proxy upon startup. These files (located in `end-entity/`) are used by the proxy for establishing identity. When mocking identity, we'd like to be able to provide a pre-generated CSR and key so that we can expect certain certificates in the Signed certificate request. Therefore, when building a proxy to be used with mock identity there should be a way to remove this wrapper so that the identity files are not overwritten. ## Solution Introduce a new `SKIP_IDENTITY_WRAPPER` build-arg that when set, removes the proxy identity-initializing script that is run at starup. The use of it below will build a proxy with the `mock-orig-dst` feature and skip identity generation. ``` :; docker buildx build . --build-arg PROXY_FEATURES=mock-orig-dst --build-arg SKIP_IDENTITY_WRAPPER=1 --load --tag=kevinlbuoyant/l2-proxy:proxy-identity-v1 ``` I have confirmed this works with the changes in olix0r/l2-proxy-harness#2. Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com>
- Loading branch information