Skip to content

Commit 7e81dd5

Browse files
authored
Merge pull request #67 from zakkg3/non-root
[tag 0.0.9] Run as non root
2 parents 2debc48 + 897ad1d commit 7e81dd5

19 files changed

+61
-24
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
FROM flag5/clustersecretbase:0.0.5
22
ADD /src /src
3+
4+
RUN adduser --system --no-create-home secretmonkey
5+
USER secretmonkey
36
CMD kopf run -A /src/handlers.py

Dockerfile.arm

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
FROM flag5/clustersecretbase:0.0.5_arm32
22
ADD /src /src
3+
4+
RUN adduser --system --no-create-home secretmonkey
5+
USER secretmonkey
6+
37
CMD kopf run -A /src/handlers.py

Makefile

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
IMG_NAMESPACE = flag5
22
IMG_NAME = clustersecret
33
IMG_FQNAME = $(IMG_NAMESPACE)/$(IMG_NAME)
4-
IMG_VERSION = 0.0.8
4+
IMG_VERSION = 0.0.9
55

66
.PHONY: container push clean arm-container arm-push arm-clean
77
all: container push
@@ -32,11 +32,18 @@ beta:
3232
sudo docker build -t $(IMG_FQNAME):$(IMG_VERSION)-beta .
3333
sudo docker push $(IMG_FQNAME):$(IMG_VERSION)-beta
3434

35+
install:
36+
helm install clustersecret ./charts/Clustersecret -n clustersecret --create-namespace
37+
3538
test-env:
3639
podman machine start
3740
KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster
38-
helm install clustersecret ./charts/cluster-secret -n clustersecret --create-namespace
41+
helm install clustersecret ./charts/clustersecret -n clustersecret --create-namespace
3942

4043
stop-test-env:
4144
KIND_EXPERIMENTAL_PROVIDER=podman kind delete cluster
4245
podman machine stop
46+
47+
chart-update:
48+
helm package charts/clustersecret/ -d docs/
49+
helm repo index ./docs

README.md

+16-9
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
## Kubernetes ClusterSecret
77
[*clustersecret.io*](https://clustersecret.io/)
88

9-
Global inter-namespace cluster secrets - Secrets that work across namespaces - Clusterwide secrets
9+
Cluster wide secrets
1010

11-
ClusterSecret operator makes sure all the matching namespaces have the secret available. New namespaces, if they match the pattern, will also have the secret.
12-
Any change on the ClusterSecret will update all related secrets. Deleting the ClusterSecret deletes "child" secrets (all cloned secrets) too.
11+
ClusterSecret operator makes sure all the matching namespaces have the secret available and up to date.
12+
13+
- New namespaces, if they match the pattern, will also have the secret.
14+
- Any change on the ClusterSecret will update all related secrets. Including changing the match pattern.
15+
- Deleting the ClusterSecret deletes "child" secrets (all cloned secrets) too.
1316

1417
Full documentation available at [https://clustersecret.io](https://clustersecret.io/)
1518

@@ -63,17 +66,18 @@ Clustersecrets automates this. It keep track of any modification in your secret
6366

6467
## Requirements
6568

66-
Current version 0.0.8 is tested for Kubernetes >= 1.19 up to 1.27.1
69+
Current version `0.0.9` is tested for Kubernetes >= 1.19 up to 1.27.1
70+
For ARM architectures user `0.0.9_arm32` tag
6771

68-
For older kubernetes (<1.19) use the image tag "0.0.6" in your helm values file.
72+
For older kubernetes (<1.19) use the image tag `0.0.6` in your helm values file.
6973

7074
## Install
7175

7276
# Using the official helm chart
7377

7478
```bash
7579
helm repo add clutersecret https://charts.clustersecret.io/
76-
helm install cluster-secret clutersecret/cluster-secret --version 0.1.0
80+
helm install clustersecret clutersecret/ClusterSecret --version 0.1.1 -n clustersecret --create-namespace
7781
```
7882

7983
# with just kubectl
@@ -125,13 +129,14 @@ data:
125129
126130
- [x] Fix #59
127131
- [x] implement `source` to specify a source secret to sync instead of `data` field. (https://github.com/zakkg3/ClusterSecret/issues/3)
128-
- [ ] Fix bug #48
132+
- [x] Fix bug #48
129133

130134

131135
## Tag 0.1.0 :
132-
136+
- [ ] update base-image to latest
137+
- [ ] update kopf package to latest
133138
- [ ] react to changes on source secret. #36
134-
- [ ] react on changes on data on clustersecret. #48
139+
- [ ] add source from Externalsecrets or other providers.
135140

136141

137142
* * *
@@ -142,3 +147,5 @@ data:
142147
You can open issues and we will try to address them.
143148

144149
That said, if you have questions, or just want to establish contact, reach out one way or another. [https://flag5.com](https://flag5.com) || nico at flag5.com
150+
151+
Global inter-namespace cluster secrets - Secrets that work across namespaces - Cluster wide secrets
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: v2
2-
name: cluster-secret
2+
name: ClusterSecret
33
description: ClusterSecret Operator
44
kubeVersion: '>= 1.16.0-0'
55
type: application
6-
version: 0.1.0
6+
version: 0.1.1
77
icon: https://clustersecret.io/assets/csninjasmall.png
88
sources:
99
- https://github.com/zakkg3/ClusterSecret
10-
appVersion: "0.8.0"
10+
appVersion: "0.0.9"
1111
maintainers:
1212
1313
name: zakkg3

charts/cluster-secret/README.md charts/ClusterSecret/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,14 @@ kubectl get secret <secret-name> -n <source-namespace> -o yaml \
5454
Clustersecrets automates this. It keep track of any modification in your secret and it will also react to new namespaces.
5555

5656

57-
# installation
5857

5958
## Requirements
6059

61-
Current version 0.0.9 is tested for Kubernetes >= 1.19 up to 1.25
60+
Current version 0.0.9 is tested for Kubernetes >= 1.19 up to 1.27.1
6261

6362
For older kubernes (<1.19) use the image tag "0.0.6" in yaml/02_deployment.yaml
6463

65-
## tl;dr install
66-
67-
# Using the official helm chart
64+
## Install
6865

6966
```bash
7067
helm repo add clutersecret https://charts.clustersecret.io/

charts/cluster-secret/values.yaml charts/ClusterSecret/values.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ clustersecret:
22
clustersecret:
33
image:
44
repository: flag5/clustersecret
5-
tag: 0.0.8-beta
5+
tag: 0.0.9
6+
# use tag__arm32 for ARM builds
67
kubernetesClusterDomain: cluster.local

docs/ClusterSecret-0.1.1.tgz

3.11 KB
Binary file not shown.

docs/index.yaml

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
apiVersion: v1
22
entries:
3+
ClusterSecret:
4+
- apiVersion: v2
5+
appVersion: 0.0.9
6+
created: "2023-05-25T18:22:13.043992+02:00"
7+
description: ClusterSecret Operator
8+
digest: 0614f789838c979c505575ea9ae021059fbf1d3eb08a8edc281d384b5d1cdbc3
9+
icon: https://clustersecret.io/assets/csninjasmall.png
10+
kubeVersion: '>= 1.16.0-0'
11+
maintainers:
12+
13+
name: zakkg3
14+
name: ClusterSecret
15+
sources:
16+
- https://github.com/zakkg3/ClusterSecret
17+
type: application
18+
urls:
19+
- ClusterSecret-0.1.1.tgz
20+
version: 0.1.1
321
cluster-secret:
422
- apiVersion: v2
523
appVersion: 0.8.0
6-
created: "2023-05-24T21:26:49.32438+02:00"
24+
created: "2023-05-25T18:22:13.044723+02:00"
725
description: ClusterSecret Operator
826
digest: 030f57727851526c0faa73e20a7d5efbf1e22264ad6e229670e9c5645ba1e845
927
icon: https://clustersecret.io/assets/csninjasmall.png
@@ -18,4 +36,4 @@ entries:
1836
urls:
1937
- cluster-secret-0.1.0.tgz
2038
version: 0.1.0
21-
generated: "2023-05-24T21:26:49.323843+02:00"
39+
generated: "2023-05-25T18:22:13.043451+02:00"

yaml/02_deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
# - name: regcred
2020
containers:
2121
- name: clustersecret
22-
image: flag5/clustersecret:0.0.8-beta
22+
image: flag5/clustersecret:0.0.9
2323
# imagePullPolicy: Always
2424
# Uncomment next lines for debug:
2525
# command:

yaml/arm32v7/02_deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
# - name: regcred
2121
containers:
2222
- name: clustersecret
23-
image: flag5/clustersecret:0.0.6_arm32
23+
image: flag5/clustersecret:0.0.9_arm32
2424
# imagePullPolicy: Always
2525
# Uncomment next lines for debug:
2626
# command:

0 commit comments

Comments
 (0)