Skip to content

Commit c824994

Browse files
committed
Fix the URL shortener permissions
1 parent 3a2ec0e commit c824994

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

url-shortener/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
22
name: url-shortener
33
description: URL Shortener
4-
version: 1.0.0
4+
version: 1.0.1
55
type: application

url-shortener/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ app:
1919
monitors:
2020
enabled: false
2121
annotations: {}
22-
# Security context for container/pod (Shlink runs as non-root)
22+
# Security context for container/pod
23+
# Shlink 4.x runs as non-root by default - let the image define the user
24+
# Only set fsGroup to ensure volume permissions work correctly
2325
securityContext:
24-
runAsUser: 1000
25-
runAsGroup: 1000
26-
fsGroup: 1000
26+
fsGroup: 1001
2727

2828
# Fallback: use init container if fsGroup doesn't work
2929
# Set to true if you're still getting permission errors
@@ -34,7 +34,7 @@ persistence:
3434
enabled: true
3535
size: 10Gi
3636
storageClass: hcloud-volumes
37-
mountPath: /etc/shlink
37+
mountPath: /etc/shlink/data
3838

3939
# Ingress configuration
4040
ingress:

0 commit comments

Comments
 (0)