gitea: enforce SSH directory modes
Some checks failed
Tests / Declarative: Post Actions failed: 3, passed: 265
Some checks failed
Tests / Declarative: Post Actions failed: 3, passed: 265
This commit is contained in:
parent
eb3e0ac436
commit
8a7616ea04
@ -228,6 +228,15 @@ spec:
|
||||
args:
|
||||
- |
|
||||
set -euo pipefail
|
||||
# Keep OpenSSH StrictModes satisfied if another PVC consumer
|
||||
# changes the shared Git directory permissions.
|
||||
chmod 0755 /data/git
|
||||
if [ -d /data/git/.ssh ]; then
|
||||
chmod 0700 /data/git/.ssh
|
||||
fi
|
||||
if [ -f /data/git/.ssh/authorized_keys ]; then
|
||||
chmod 0600 /data/git/.ssh/authorized_keys
|
||||
fi
|
||||
export GITEA__security__SECRET_KEY="$(tr -d '\r\n' </vault/secrets/gitea-secret__SECRET_KEY)"
|
||||
export GITEA__security__INTERNAL_TOKEN="$(tr -d '\r\n' </vault/secrets/gitea-secret__INTERNAL_TOKEN)"
|
||||
export DB_PASS="$(tr -d '\r\n' </vault/secrets/gitea-db-secret__password)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user