Skip to content

Commit

Permalink
Add LDAP secret backup support
Browse files Browse the repository at this point in the history
- Add ldap_secret_backend resource
- Add ldap_secret_backend static and dynamic role resources
- Add ldap_secret_backend library set resource
  • Loading branch information
bmhughes committed May 16, 2023
1 parent 9f27afe commit ec8a058
Show file tree
Hide file tree
Showing 10 changed files with 1,603 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ const (
MountTypeAD = "ad"
MountTypeConsul = "consul"
MountTypeTerraform = "terraform"
MountTypeLDAP = "ldap"

/*
Vault version constants
Expand Down
16 changes: 16 additions & 0 deletions vault/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,22 @@ var (
Resource: UpdateSchemaResource(managedKeysResource()),
PathInventory: []string{"/sys/managed-keys/{type}/{name}"},
},
"vault_ldap_secret_backend": {
Resource: UpdateSchemaResource(ldapSecretBackendResource()),
PathInventory: []string{"/ldap"},
},
"vault_ldap_secret_backend_dynamic_role": {
Resource: UpdateSchemaResource(ldapSecretBackendDynamicRoleResource()),
PathInventory: []string{"/ldap/role/{role_name}"},
},
"vault_ldap_secret_backend_static_role": {
Resource: UpdateSchemaResource(ldapSecretBackendStaticRoleResource()),
PathInventory: []string{"/ldap/static-role/{role_name}"},
},
"vault_ldap_secret_backend_library_set": {
Resource: UpdateSchemaResource(ldapSecretBackendLibrarySetResource()),
PathInventory: []string{"/ldap/library/{set_name}"},
},
}
)

Expand Down
Loading

0 comments on commit ec8a058

Please sign in to comment.