Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3787909
D3031.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D3031.diff
View Options
diff --git a/pillar/credentials/vault.sls b/pillar/credentials/vault.sls
--- a/pillar/credentials/vault.sls
+++ b/pillar/credentials/vault.sls
@@ -49,6 +49,7 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vault_policies:
+ - admin
- salt-primary
- sentry
- viperserv
diff --git a/roles/vault/policies/files/admin.hcl b/roles/vault/policies/files/admin.hcl
new file mode 100644
--- /dev/null
+++ b/roles/vault/policies/files/admin.hcl
@@ -0,0 +1,94 @@
+# -------------------------------------------------------------
+# Vault configuration - Policy for Nasqueron Ops SIG beings
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/vault/vault/files/admin.hcl
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+# -------------------------------------------------------------
+# Health check
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+path "sys/health" {
+ capabilities = ["read", "sudo"]
+}
+
+# -------------------------------------------------------------
+# Policies management
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+path "sys/policies/acl" {
+ capabilities = ["list"]
+}
+
+path "sys/policies/acl/*" {
+ capabilities = ["create", "read", "update", "delete", "list", "sudo"]
+}
+
+# -------------------------------------------------------------
+# Authentication management
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+path "auth/*" {
+ capabilities = ["create", "read", "update", "delete", "list", "sudo"]
+}
+
+path "sys/auth/*" {
+ capabilities = ["create", "update", "delete", "sudo"]
+}
+
+path "sys/auth" {
+ capabilities = ["read"]
+}
+
+# -------------------------------------------------------------
+# Secrets management
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+path "sys/mounts" {
+ capabilities = ["read"]
+}
+
+path "sys/mounts/*" {
+ capabilities = ["create", "read", "update", "delete", "list", "sudo"]
+}
+
+path "apps/*" {
+ capabilities = ["create", "read", "update", "delete", "list", "sudo"]
+}
+
+path "ops/*" {
+ capabilities = ["create", "read", "update", "delete", "list", "sudo"]
+}
+
+# -------------------------------------------------------------
+# PKI
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+path "pki_root/*" {
+ capabilities = ["create", "read", "update", "delete", "list"]
+}
+
+path "pki_vault/*" {
+ capabilities = ["create", "read", "update", "delete", "list"]
+}
+
+# -------------------------------------------------------------
+# Transit
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+path "transit/*" {
+ capabilities = ["create", "read", "update", "delete", "list"]
+}
+
+path "transit/keys/*" {
+ capabilities = ["create", "read", "update", "delete", "list"]
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 20:18 (21 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2267672
Default Alt Text
D3031.diff (3 KB)
Attached To
Mode
D3031: Create admin policy for Vault
Attached
Detach File
Event Timeline
Log In to Comment