fix(jupyterhub): fix vault policies

This commit is contained in:
Masaki Yatsu
2025-09-19 15:20:45 +09:00
parent 7f87dfeb41
commit 34ecf7fd28

View File

@@ -34,16 +34,26 @@ path "auth/token/renew-self" {
capabilities = ["update"]
}
# Create user-specific policies dynamically
# Create user-specific policies dynamically (new API)
path "sys/policies/acl/jupyter-user-*" {
capabilities = ["create", "read", "update", "delete"]
}
# Read user policies to allow token creation with these policies
# Create user-specific policies dynamically (old API for hvac compatibility)
path "sys/policy/*" {
capabilities = ["create", "read", "update", "delete", "sudo"]
}
# Read user policies to allow token creation with these policies (new API)
path "sys/policies/acl/*" {
capabilities = ["read", "list"]
}
# Read user policies to allow token creation with these policies (old API for hvac compatibility)
path "sys/policy/*" {
capabilities = ["read", "list"]
}
# System capabilities check
path "sys/capabilities-self" {
capabilities = ["read"]