You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"vault_jwt_auth_backend_role" {
source="./modules/vault/r/vault_jwt_auth_backend_role"# allowed_redirect_uris - (optional) is a type of set of stringallowed_redirect_uris=[]
# backend - (optional) is a type of stringbackend=null# bound_audiences - (optional) is a type of set of stringbound_audiences=[]
# bound_cidrs - (optional) is a type of set of stringbound_cidrs=[]
# bound_claims - (optional) is a type of map of stringbound_claims={}
# bound_claims_type - (optional) is a type of stringbound_claims_type=null# bound_subject - (optional) is a type of stringbound_subject=null# claim_mappings - (optional) is a type of map of stringclaim_mappings={}
# clock_skew_leeway - (optional) is a type of numberclock_skew_leeway=null# expiration_leeway - (optional) is a type of numberexpiration_leeway=null# groups_claim - (optional) is a type of stringgroups_claim=null# groups_claim_delimiter_pattern - (optional) is a type of stringgroups_claim_delimiter_pattern=null# max_ttl - (optional) is a type of numbermax_ttl=null# not_before_leeway - (optional) is a type of numbernot_before_leeway=null# num_uses - (optional) is a type of numbernum_uses=null# oidc_scopes - (optional) is a type of set of stringoidc_scopes=[]
# period - (optional) is a type of numberperiod=null# policies - (optional) is a type of set of stringpolicies=[]
# role_name - (required) is a type of stringrole_name=null# role_type - (optional) is a type of stringrole_type=null# token_bound_cidrs - (optional) is a type of set of stringtoken_bound_cidrs=[]
# token_explicit_max_ttl - (optional) is a type of numbertoken_explicit_max_ttl=null# token_max_ttl - (optional) is a type of numbertoken_max_ttl=null# token_no_default_policy - (optional) is a type of booltoken_no_default_policy=null# token_num_uses - (optional) is a type of numbertoken_num_uses=null# token_period - (optional) is a type of numbertoken_period=null# token_policies - (optional) is a type of set of stringtoken_policies=[]
# token_ttl - (optional) is a type of numbertoken_ttl=null# token_type - (optional) is a type of stringtoken_type=null# ttl - (optional) is a type of numberttl=null# user_claim - (required) is a type of stringuser_claim=null# verbose_oidc_logging - (optional) is a type of boolverbose_oidc_logging=null
}
variable"allowed_redirect_uris" {
description="(optional) - The list of allowed values for redirect_uri during OIDC logins."type=set(string)
default=null
}
variable"backend" {
description="(optional) - Unique name of the auth backend to configure."type=stringdefault=null
}
variable"bound_audiences" {
description="(optional) - List of aud claims to match against. Any match is sufficient."type=set(string)
default=null
}
variable"bound_cidrs" {
description="(optional) - List of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token."type=set(string)
default=null
}
variable"bound_claims" {
description="(optional) - Map of claims/values to match against. The expected value may be a single string or a comma-separated string list."type=map(string)
default=null
}
variable"bound_claims_type" {
description="(optional) - How to interpret values in the claims/values map: can be either \"string\" (exact match) or \"glob\" (wildcard match)."type=stringdefault=null
}
variable"bound_subject" {
description="(optional) - If set, requires that the sub claim matches this value."type=stringdefault=null
}
variable"claim_mappings" {
description="(optional) - Map of claims (keys) to be copied to specified metadata fields (values)."type=map(string)
default=null
}
variable"clock_skew_leeway" {
description="(optional) - The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to 60 seconds if set to 0 and can be disabled if set to -1. Only applicable with 'jwt' roles."type=numberdefault=null
}
variable"expiration_leeway" {
description="(optional) - The amount of leeway to add to expiration (exp) claims to account for clock skew, in seconds. Defaults to 60 seconds if set to 0 and can be disabled if set to -1. Only applicable with 'jwt' roles."type=numberdefault=null
}
variable"groups_claim" {
description="(optional) - The claim to use to uniquely identify the set of groups to which the user belongs; this will be used as the names for the Identity group aliases created due to a successful login. The claim value must be a list of strings."type=stringdefault=null
}
variable"groups_claim_delimiter_pattern" {
description="(optional) - A pattern of delimiters used to allow the groups_claim to live outside of the top-level JWT structure. For instance, a groups_claim of meta/user.name/groups with this field set to // will expect nested structures named meta, user.name, and groups. If this field was set to /./ the groups information would expect to be via nested structures of meta, user, name, and groups."type=stringdefault=null
}
variable"max_ttl" {
description="(optional) - Number of seconds after which issued tokens can no longer be renewed."type=numberdefault=null
}
variable"not_before_leeway" {
description="(optional) - The amount of leeway to add to not before (nbf) claims to account for clock skew, in seconds. Defaults to 150 seconds if set to 0 and can be disabled if set to -1. Only applicable with 'jwt' roles. "type=numberdefault=null
}
variable"num_uses" {
description="(optional) - Number of times issued tokens can be used. Setting this to 0 or leaving it unset means unlimited uses."type=numberdefault=null
}
variable"oidc_scopes" {
description="(optional) - List of OIDC scopes to be used with an OIDC role. The standard scope \"openid\" is automatically included and need not be specified."type=set(string)
default=null
}
variable"period" {
description="(optional) - Number of seconds to set the TTL to for issued tokens upon renewal. Makes the token a periodic token, which will never expire as long as it is renewed before the TTL each period."type=numberdefault=null
}
variable"policies" {
description="(optional) - Policies to be set on tokens issued using this role."type=set(string)
default=null
}
variable"role_name" {
description="(required) - Name of the role."type=string
}
variable"role_type" {
description="(optional) - Type of role, either \"oidc\" (default) or \"jwt\""type=stringdefault=null
}
variable"token_bound_cidrs" {
description="(optional) - Specifies the blocks of IP addresses which are allowed to use the generated token"type=set(string)
default=null
}
variable"token_explicit_max_ttl" {
description="(optional) - Generated Token's Explicit Maximum TTL in seconds"type=numberdefault=null
}
variable"token_max_ttl" {
description="(optional) - The maximum lifetime of the generated token"type=numberdefault=null
}
variable"token_no_default_policy" {
description="(optional) - If true, the 'default' policy will not automatically be added to generated tokens"type=booldefault=null
}
variable"token_num_uses" {
description="(optional) - The maximum number of times a token may be used, a value of zero means unlimited"type=numberdefault=null
}
variable"token_period" {
description="(optional) - Generated Token's Period"type=numberdefault=null
}
variable"token_policies" {
description="(optional) - Generated Token's Policies"type=set(string)
default=null
}
variable"token_ttl" {
description="(optional) - The initial ttl of the token to generate in seconds"type=numberdefault=null
}
variable"token_type" {
description="(optional) - The type of token to generate, service or batch"type=stringdefault=null
}
variable"ttl" {
description="(optional) - Default number of seconds to set as the TTL for issued tokens and at renewal time."type=numberdefault=null
}
variable"user_claim" {
description="(required) - The claim to use to uniquely identify the user; this will be used as the name for the Identity entity alias created due to a successful login."type=string
}
variable"verbose_oidc_logging" {
description="(optional) - Log received OIDC tokens and claims when debug-level logging is active. Not recommended in production since sensitive information may be present in OIDC responses."type=booldefault=null
}
resource"vault_jwt_auth_backend_role""this" {
# allowed_redirect_uris - (optional) is a type of set of stringallowed_redirect_uris=var.allowed_redirect_uris# backend - (optional) is a type of stringbackend=var.backend# bound_audiences - (optional) is a type of set of stringbound_audiences=var.bound_audiences# bound_cidrs - (optional) is a type of set of stringbound_cidrs=var.bound_cidrs# bound_claims - (optional) is a type of map of stringbound_claims=var.bound_claims# bound_claims_type - (optional) is a type of stringbound_claims_type=var.bound_claims_type# bound_subject - (optional) is a type of stringbound_subject=var.bound_subject# claim_mappings - (optional) is a type of map of stringclaim_mappings=var.claim_mappings# clock_skew_leeway - (optional) is a type of numberclock_skew_leeway=var.clock_skew_leeway# expiration_leeway - (optional) is a type of numberexpiration_leeway=var.expiration_leeway# groups_claim - (optional) is a type of stringgroups_claim=var.groups_claim# groups_claim_delimiter_pattern - (optional) is a type of stringgroups_claim_delimiter_pattern=var.groups_claim_delimiter_pattern# max_ttl - (optional) is a type of numbermax_ttl=var.max_ttl# not_before_leeway - (optional) is a type of numbernot_before_leeway=var.not_before_leeway# num_uses - (optional) is a type of numbernum_uses=var.num_uses# oidc_scopes - (optional) is a type of set of stringoidc_scopes=var.oidc_scopes# period - (optional) is a type of numberperiod=var.period# policies - (optional) is a type of set of stringpolicies=var.policies# role_name - (required) is a type of stringrole_name=var.role_name# role_type - (optional) is a type of stringrole_type=var.role_type# token_bound_cidrs - (optional) is a type of set of stringtoken_bound_cidrs=var.token_bound_cidrs# token_explicit_max_ttl - (optional) is a type of numbertoken_explicit_max_ttl=var.token_explicit_max_ttl# token_max_ttl - (optional) is a type of numbertoken_max_ttl=var.token_max_ttl# token_no_default_policy - (optional) is a type of booltoken_no_default_policy=var.token_no_default_policy# token_num_uses - (optional) is a type of numbertoken_num_uses=var.token_num_uses# token_period - (optional) is a type of numbertoken_period=var.token_period# token_policies - (optional) is a type of set of stringtoken_policies=var.token_policies# token_ttl - (optional) is a type of numbertoken_ttl=var.token_ttl# token_type - (optional) is a type of stringtoken_type=var.token_type# ttl - (optional) is a type of numberttl=var.ttl# user_claim - (required) is a type of stringuser_claim=var.user_claim# verbose_oidc_logging - (optional) is a type of boolverbose_oidc_logging=var.verbose_oidc_logging
}