-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* set SSL_CERT_DIR environment variable for trivy * set a different cache directory for trivy * add insecure helm parameter for trivy * identify openshift as provider * add missing target _blank in doc links * don't set runAsUser and runAsGroup by default (just runAsNonRoot is enough) * docs: add page for private registries * bump trivy to 0.49.1 * bump Zora Helm chart version to 0.8.4-rc1 * rename doc page to Authenticated Registries
- Loading branch information
Showing
15 changed files
with
94 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Authenticated Registries | ||
|
||
Trivy plugin is able to scan images from registries that require authentication. | ||
|
||
It's necessary to create a secret containing authentication credentials as pairs, like the command below. | ||
|
||
!!! note | ||
For [AWS ECR](private-registries/ecr.md) and [Azure ACR](private-registries/acr.md) registries, please refer to the specific pages. | ||
|
||
```shell | ||
kubectl create secret generic trivy-credentials -n zora-system \ | ||
--from-literal=TRIVY_USERNAME="<username1>,<username2>" \ | ||
--from-literal=TRIVY_PASSWORD="<password1>,<password2>" | ||
``` | ||
|
||
!!! note | ||
Please note that the number of usernames and passwords must be the same. | ||
|
||
Once the secret is created, it needs to be referenced in the Helm chart parameters as the following `values.yaml` file: | ||
|
||
```yaml hl_lines="6" | ||
scan: | ||
plugins: | ||
trivy: | ||
envFrom: | ||
- secretRef: | ||
name: trivy-credentials | ||
optional: true | ||
``` | ||
Then provide this file in `helm upgrade --install` command with `-f values.yaml` flag. | ||
|
||
This ensures that Trivy can authenticate with the private registries using the provided credentials. |
4 changes: 2 additions & 2 deletions
4
docs/configuration/acr.md → docs/configuration/private-registries/acr.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...uration/aws-elastic-container-registry.md → docs/configuration/private-registries/ecr.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters