Skip to content

Commit

Permalink
feat: mount host ca certs into metal agent
Browse files Browse the repository at this point in the history
Instead of copying ca certs from its image, mount them from the host into the agent container. This way, agent can also use additional ca certificates added via `TrustedRootsConfig` config documents.

Also bump the agent version to `v0.1.0`.

Signed-off-by: Utku Ozdemir <[email protected]>
  • Loading branch information
utkuozdemir committed Feb 3, 2025
1 parent ad72efd commit 95ddb77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions guest-agents/metal-agent/metal-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ container:
- rshared
- rbind
- rw
- source: /etc/ssl/certs
destination: /etc/ssl/certs
type: bind
options:
- rbind
- ro
depends:
- path: /system/run/machined/machine.sock
- path: /etc/ssl/certs
- network:
- addresses
restart: always
Expand Down
4 changes: 0 additions & 4 deletions guest-agents/metal-agent/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ dependencies:
from: /
to: /rootfs/usr/local/lib/containers/metal-agent

- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/ca-certificates:{{ .BUILD_ARG_PKGS }}"
from: /
to: /rootfs/usr/local/lib/containers/metal-agent

- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/openssl:{{ .BUILD_ARG_PKGS }}"
from: /
to: /rootfs/usr/local/lib/containers/metal-agent
Expand Down
2 changes: 1 addition & 1 deletion guest-agents/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ XEN_GUEST_AGENT_VERSION: 0.4.0
# renovate: datasource=github-releases depName=siderolabs/talos-vmtoolsd
TALOS_VMTOOLSD_VERSION: v0.6.1
# renovate: datasource=github-releases depName=siderolabs/talos-metal-agent
TALOS_METAL_AGENT_VERSION: v0.1.0-beta.1
TALOS_METAL_AGENT_VERSION: v0.1.0

0 comments on commit 95ddb77

Please sign in to comment.