-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move S3 keys secrets out of tasks secrets
Subdirectories in secrets are awkward with kubernetes secrets. It's also desirable to hand out access to them in a finer-grained manner. Our ci-secrets.git repo already moved the S3 keys out of tasks/ into the top level. Follow suit.
- Loading branch information
1 parent
771d26f
commit 4c5cdcb
Showing
8 changed files
with
21 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
- name: Create s3-keys alias | ||
file: | ||
src: self-hosted | ||
dest: "/var/lib/cockpit-secrets/tasks/s3-keys/{{ hostvars[groups['psi_s3'][0]].ansible_host }}" | ||
dest: "/var/lib/cockpit-secrets/s3-keys/{{ hostvars[groups['psi_s3'][0]].ansible_host }}" | ||
state: link | ||
owner: cockpituous | ||
group: cockpituous |
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 |
---|---|---|
|
@@ -49,12 +49,13 @@ ExecStartPre=/usr/bin/flock /tmp/cockpit-image-pull podman pull ghcr.io/cockpit- | |
ExecStart=/usr/bin/podman run --name=cockpit-tasks-%i --hostname=${CONTAINER_HOSTNAME} \ | ||
--volume=${CACHE}/images:/cache/images:rw \ | ||
--volume=${SECRETS}/tasks:/run/secrets/tasks:ro \ | ||
--volume=${SECRETS}/s3-keys:/run/secrets/s3-keys:ro \ | ||
--volume=${SECRETS}/webhook:/run/secrets/webhook:ro \ | ||
--volume=/etc/job-runner.toml:/config/job-runner.toml:ro \ | ||
--volume=%t/podman/podman.sock:/podman.sock:rw \ | ||
--env=JOB_RUNNER_CONFIG=/config/job-runner.toml \ | ||
--env=COCKPIT_GITHUB_TOKEN_FILE=/run/secrets/webhook/.config--github-token \ | ||
--env=COCKPIT_S3_KEY_DIR=/run/secrets/tasks/s3-keys \ | ||
--env=COCKPIT_S3_KEY_DIR=/run/secrets/s3-keys \ | ||
--env=COCKPIT_IMAGES_DATA_DIR=/cache/images \ | ||
--env=GIT_COMMITTER_NAME=Cockpituous \ | ||
[email protected] \ | ||
|
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