UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 5193ac0b authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Merge branch 'vault-user' into 'master'

add vault user & admin entities and policies

See merge request platform-one/big-bang/apps/sandbox/vault!13
parents 7f9a1d8f 3e4ccdda
Branches master
No related tags found
1 merge request!13add vault user & admin entities and policies
......@@ -21,6 +21,6 @@ inputs = {
name = "sudo"
policies = ["sudo"]
member_entity_ids = [
dependency.user1_identity_id.outputs.id,
dependency.admin1_identity_id.outputs.id,
]
}
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
terraform {
source = "../../../terraform-modules/identity_group"
}
# Include all settings from the root terragrunt.hcl file
include {
path = find_in_parent_folders()
}
dependency user1_identity_id {
config_path = "../../users/vault_user1"
mock_outputs = {
member_entity_ids = "abc-123"
}
}
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
inputs = {
name = "user1"
policies = ["user1"]
member_entity_ids = [
dependency.user1_identity_id.outputs.id,
]
}
......@@ -19,7 +19,7 @@ dependency userpass_auth_backend {
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
inputs = {
auth_backend = dependency.userpass_auth_backend.outputs.accessor
identity_entity_name = "test.user2"
identity_entity_name = "test.admin1"
identity_entity_policies = ["change-userpass-password"]
userpass_username = "user2"
userpass_username = "admin1"
}
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
terraform {
source = "git::https://repo1.dso.mil/platform-one/private/cnap/terraform-modules.git//vault/mount"
}
# Include all settings from the root terragrunt.hcl file
include {
path = find_in_parent_folders()
}
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
inputs = {
mount_path = "kv/vault_admin1"
mount_type = "kv"
description = "pki secrets for container signing"
max_mount_ttl = "315569260"
default_mount_ttl = "315569260"
}
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
terraform {
source = "git::https://repo1.dso.mil/platform-one/private/cnap/terraform-modules.git//vault/mount"
}
# Include all settings from the root terragrunt.hcl file
include {
path = find_in_parent_folders()
}
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
inputs = {
mount_path = "kv/vault_user1"
mount_type = "kv"
description = "pki secrets for container signing"
max_mount_ttl = "315569260"
default_mount_ttl = "315569260"
}
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
terraform {
source = "../../../terraform-modules/policy"
}
# Include all settings from the root terragrunt.hcl file
include {
path = find_in_parent_folders()
}
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
inputs = {
name = "user1"
policy = <<EOT
# -----------------------------------------------------------------------------
# Root equivalent permissions
# -----------------------------------------------------------------------------
path "kv/vault_user1" {
capabilities = ["read"]
}
EOT
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment