Skip to content

Commit

Permalink
Create Create-Token.md
Browse files Browse the repository at this point in the history
  • Loading branch information
secana authored Apr 19, 2022
1 parent c25aa9b commit 471d24f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Create-Token.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Since Docker images for the scan server and client are located in a private GitHub repository, you need credentials for pulling. The authentication requires some prerequisites:

1. Create a new access token with the only right "read packages".
2. Create a string in the format $USERNAME:$PASSWORD and encode it to base64.
3. Create a docker.config JSON file:
```json
{
"auths": {
"ghcr.io": {
"auth": "$$_BASE64_ENCODED_USER_NAME_AND_PASSWORD_$$"
}
}
}
```
4. Encode docker.config to base64 and copy it into a values.yaml file:

```yaml
secret:
dockerconfigjson: $$_BASE64_ENCODED_DOCKER_CONFIG_$$
```
5. Test the `values.yaml` locally before prodiving it to a customer.

0 comments on commit 471d24f

Please sign in to comment.