This repository was archived by the owner on Jan 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Configuration
Rafael Fernández López edited this page Oct 1, 2021
·
14 revisions
The policy-server component has some key configuration files that have a well defined format.
This file mimics the common docker-config-json (5) configuration file. It is used to instruct the policy-server authentication details for OCI registries. Its format is as follows:
{
"auths": {
"internal-registry.dev.my-company.com": {
"auth": "<some base64>"
},
"other-internal-registry.dev.my-company.com:5001": {
"auth": "<some base64>"
},
"ghcr.io": {
"auth": "<some base64>"
},
}
}Notes:
- Each key will be requested strictly by the
hostin the URL. Thishostmay contain a port if the policy module URI has ahost:portform. - This file only honors the
authskey as opposes to the originaldocker-config-jsonfile that contains, for instance,HttpHeaders. Keys other than"auths"in the toplevel object will be ignored. - The
<some base64>is the stringusername:password(wherepasswordis usually a token), base-64 encoded, asdocker loginproduces.
The sources file is a YAML file that contains information about valid ways to verify the identity of the remote server (the source). Its format is as follows:
insecure_sources:
- local-registry.dev.my-company.com
- other-local-registry.dev.my-company.com
source_authorities:
"internal-registry.dev.my-company.com": /local/path/to/internal-registry-dev-mycompany-com.pki
"other-internal-registry.dev.my-company.com": /local/path/to/other-internal-registry-dev-mycompany-com.pkiNotes:
- Insecure sources imply a number of retries if the policy cannot be downloaded:
- Try to download with TLS and system certificate authorities -- verifying identity of the remote server. If fails,
- Try to download with TLS -- not verifying identity of the remote server. If fails,
- Try to download without TLS
- Either
insecure_sourcesorsource_authoritieshas to be provided. Both can be provided if needed. - Each key will be requested strictly by the
hostin the URL. Thishostmay contain a port if the policy module URI has ahost:portform. - The certificate and certificate chain can be DER or PEM encoded.