gitea runs as its own account, so the vault gives it its own secret
gitea asks the vault for module/gitea/* from inside the machine's tool runner, whose calls are named <machine>.node-tools, and the vault refuses that account: every gitea tool and the seat git's merge-pull failed. Its manifest now declares runs-as gitea, the user resource gitea (in the group docker, which the seat git's note verb needs for docker exec into the forge's container), secrets-owner gitea and the own secret broker, so the node-engine composes a runtime of its own for it on the account <machine>.gitea. Builds: design 47 H2 H-A-543, H-A-545 (1)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"check-needs": [
|
||||
"node-build-node"
|
||||
],
|
||||
"runs-as": "gitea",
|
||||
"requires": [
|
||||
"postgres-database",
|
||||
"route",
|
||||
@@ -39,6 +40,10 @@
|
||||
"admin": "${dir:state}/admin.secret"
|
||||
}
|
||||
},
|
||||
"own-secrets": {
|
||||
"broker": "${dir:state}/broker"
|
||||
},
|
||||
"secrets-owner": "gitea",
|
||||
"capabilities": [
|
||||
"container-runtime"
|
||||
],
|
||||
@@ -271,6 +276,16 @@
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"id": "account",
|
||||
"type": "user",
|
||||
"name": "gitea",
|
||||
"shell": "/usr/bin/nologin",
|
||||
"home": "/var/lib/gitea",
|
||||
"groups": [
|
||||
"docker"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-state",
|
||||
"type": "directory",
|
||||
|
||||
Reference in New Issue
Block a user