Skip to content

Commit 58e9c86

Browse files
authored
Merge pull request #1847 from cybozu/fix-spire
Run spire-agent and spiffe-csi-driver as root and add default "run" subcommand to SPIRE entrypoints
2 parents 8424714 + 99a7b2f commit 58e9c86

File tree

7 files changed

+5
-12
lines changed

7 files changed

+5
-12
lines changed

maintenance.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,9 +1097,6 @@ Only the base image and module dependency should be updated.
10971097
> [!Note]
10981098
> The spire-server, spire-agent, and spiffe-csi-driver images should be updated at the same time for consistency.
10991099
1100-
> [!Note]
1101-
> Upstream runs spire-agent as root for socket sharing in Kubernetes. Our image runs as UID 10000 following neco-containers standards. Adjust SecurityContext in Kubernetes manifests if needed.
1102-
11031100
## spire-server
11041101

11051102
![Regular Update](./regular_update.svg)

spiffe-csi-driver/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@ LABEL org.opencontainers.image.source="https://github.com/cybozu/neco-containers
2121
COPY --from=build /work/spiffe-csi-driver /usr/local/bin/spiffe-csi-driver
2222
COPY --from=build /work/spiffe-csi/LICENSE /usr/local/share/doc/spiffe-csi/LICENSE
2323

24-
USER 10000:10000
25-
2624
ENTRYPOINT ["/usr/local/bin/spiffe-csi-driver"]

spiffe-csi-driver/TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.9.1
1+
0.2.9.2

spire-agent/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,4 @@ COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certifica
2525
COPY --from=build /work/spire-agent /usr/local/bin/spire-agent
2626
COPY --from=build /work/spire/LICENSE /usr/local/share/doc/spire-agent/LICENSE
2727

28-
USER 10000:10000
29-
30-
ENTRYPOINT ["/usr/local/bin/spire-agent"]
28+
ENTRYPOINT ["/usr/local/bin/spire-agent", "run"]

spire-agent/TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.14.1.1
1+
1.14.1.2

spire-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ COPY --from=build /work/spire/LICENSE /usr/local/share/doc/spire-server/LICENSE
2828
USER 10000:10000
2929
EXPOSE 8081
3030

31-
ENTRYPOINT ["/usr/local/bin/spire-server"]
31+
ENTRYPOINT ["/usr/local/bin/spire-server", "run"]

spire-server/TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.14.1.1
1+
1.14.1.2

0 commit comments

Comments
 (0)