vault_kv_realm#

(Module sources)

Purpose

This module is provided as guiding sample for implementing your own delegation. It creates 2 policies with associated tokens tied to a kv-v2 mount point:

  • an administrator one, with read-write access to all subpaths beginning with the realm_name variable

  • a user one, with read-only access to the same perimeter.

Authentication#

Provide your cluster address and token as environment variables.

export VAULT_ADDR="..."
export VAULT_TOKEN="..."

Providers#

Name

Version

vault

3.21.0

Inputs#

Name

Description

Type

Default

Required

kv_v2_mount_point

n/a

string

n/a

yes

realm_name

n/a

string

n/a

yes

admin_token_renew_increment

n/a

number

86400

no

admin_token_renew_min_lease

n/a

number

43200

no

admin_token_renewable

n/a

bool

true

no

admin_token_ttl

n/a

string

"24h"

no

user_token_renew_increment

n/a

number

86400

no

user_token_renew_min_lease

n/a

number

43200

no

user_token_renewable

n/a

bool

true

no

user_token_ttl

n/a

string

"24h"

no

Outputs#

Name

Description

realm_admin_token

kv-realm administrator token (rw)

realm_user_token

kv-realm user token (ro)