Skip to content

Commit 93d4ce7

Browse files
ixxeL2097Frederic Spiers
andauthored
fix(minio): improve security and compatibility of minio image with openshift (#25)
Co-authored-by: Frederic Spiers <frederic.spiers@gitguardian.com>
1 parent 4a2bab1 commit 93d4ce7

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

images/minio/prod.yaml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,60 @@
1-
include: images/apko.yaml
2-
31
contents:
2+
keyring:
3+
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
4+
repositories:
5+
- https://packages.wolfi.dev/os
46
packages:
57
- coreutils
68
- busybox
79
- curl
810

11+
accounts:
12+
groups:
13+
- groupname: nonroot
14+
gid: 65532
15+
users:
16+
- username: nonroot
17+
uid: 65532
18+
gid: 65532
19+
run-as: nonroot
20+
921
paths:
10-
- path: /mnt/data
22+
- path: /home/nonroot
1123
type: directory
12-
permissions: 0o777
24+
permissions: 0o775
1325
uid: 65532
1426
gid: 65532
27+
- path: /mnt
28+
type: directory
29+
permissions: 0o770
30+
uid: 65532
31+
gid: 0
32+
- path: /mnt/data
33+
type: directory
34+
permissions: 0o770
35+
uid: 65532
36+
gid: 0
1537
- path: /.mc
1638
type: directory
17-
permissions: 0o777
39+
permissions: 0o770
1840
uid: 65532
19-
gid: 65532
41+
gid: 0
42+
43+
work-dir: /home/nonroot
2044

2145
entrypoint:
2246
command: /usr/bin/minio
2347

2448
cmd: server /mnt/data --console-address :9090 --address :9000
2549

50+
archs:
51+
- amd64
52+
- arm64
53+
2654
annotations:
55+
org.opencontainers.image.licenses: 'MIT'
56+
org.opencontainers.image.vendor: 'GitGuardian'
57+
org.opencontainers.image.authors: 'GitGuardian SRE Team <sre@gitguardian.com>'
2758
org.opencontainers.image.title: 'MinIO'
2859
org.opencontainers.image.description: 'MinIO image based on Wolfi OS'
2960
org.opencontainers.image.source: 'https://github.com/GitGuardian/wolfi/tree/main/images/minio'

0 commit comments

Comments
 (0)