Hey team,
I have created a policy to access the secret, policy and access for my entity via OIDC,
the policy which i wrote is
path "/secret/*" {
capabilities = ["sudo", "create", "list", "read", "update", "delete"]
}
path "secret/data/IK" {
capabilities = [ "create", "list", "read", "update", "delete" ]
}
path "secret/*" {
capabilities = ["create", "sudo", "list", "read", "update", "delete"]
}
# Mount the OIDC auth method
path "sys/auth/oidc" {
capabilities = [ "create", "read", "update", "delete", "sudo" ]
}
# Configure the OIDC auth method
path "auth/oidc/*" {
capabilities = [ "create", "read", "update", "delete", "list" ]
}
# Write ACL policies
path "sys/policies/acl/*" {
capabilities = [ "create", "read", "update", "delete", "list" ]
}
# List available secrets engines to retrieve accessor ID
path "sys/mounts" {
capabilities = [ "read" ]
}
path "sys/internal/ui/mounts/*" {
capabilities = ["read", "create", "update", "list", "sudo", "delete"]
}
path "/v1/sys/internal/ui/mounts/*" {
capabilities = ["read", "create", "update", "list", "sudo", "delete"]
}
there are some path which can be wrong, please avoid that,
Command running to write this policy
-
vault policy write dev dev.hcl
Then assigning to the entity -
vault write identity/entity name="entity_id" policies="dev"
When i am trying to login via UI, i can see the secrets ,policies and access tab, - In Secrets tab, i can see the Underline path, but only for once, after that it shows this
- In Access tab , getting this issue
- In Policies getting this
P.S: I am a beginner in Vault , if you have any suggestions just do let me know.