AuthBackendRole
Manages an JWT/OIDC auth backend role in a Vault server. See the Vault documentation for more information.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var jwt = new Vault.Jwt.AuthBackend("jwt", new Vault.Jwt.AuthBackendArgs
{
Path = "jwt",
});
var example = new Vault.Jwt.AuthBackendRole("example", new Vault.Jwt.AuthBackendRoleArgs
{
Backend = jwt.Path,
RoleName = "test-role",
TokenPolicies =
{
"default",
"dev",
"prod",
},
BoundAudiences =
{
"https://myco.test",
},
UserClaim = "https://vault/user",
RoleType = "jwt",
});
}
}
Coming soon!
import pulumi
import pulumi_vault as vault
jwt = vault.jwt.AuthBackend("jwt", path="jwt")
example = vault.jwt.AuthBackendRole("example",
backend=jwt.path,
role_name="test-role",
token_policies=[
"default",
"dev",
"prod",
],
bound_audiences=["https://myco.test"],
user_claim="https://vault/user",
role_type="jwt")import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const jwt = new vault.jwt.AuthBackend("jwt", {path: "jwt"});
const example = new vault.jwt.AuthBackendRole("example", {
backend: jwt.path,
roleName: "test-role",
tokenPolicies: [
"default",
"dev",
"prod",
],
boundAudiences: ["https://myco.test"],
userClaim: "https://vault/user",
roleType: "jwt",
});Create a AuthBackendRole Resource
new AuthBackendRole(name: string, args: AuthBackendRoleArgs, opts?: CustomResourceOptions);def AuthBackendRole(resource_name, opts=None, allowed_redirect_uris=None, backend=None, bound_audiences=None, bound_cidrs=None, bound_claims=None, bound_subject=None, claim_mappings=None, clock_skew_leeway=None, expiration_leeway=None, groups_claim=None, groups_claim_delimiter_pattern=None, max_ttl=None, not_before_leeway=None, num_uses=None, oidc_scopes=None, period=None, policies=None, role_name=None, role_type=None, token_bound_cidrs=None, token_explicit_max_ttl=None, token_max_ttl=None, token_no_default_policy=None, token_num_uses=None, token_period=None, token_policies=None, token_ttl=None, token_type=None, ttl=None, user_claim=None, verbose_oidc_logging=None, __props__=None);func NewAuthBackendRole(ctx *Context, name string, args AuthBackendRoleArgs, opts ...ResourceOption) (*AuthBackendRole, error)public AuthBackendRole(string name, AuthBackendRoleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AuthBackendRole Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AuthBackendRole resource accepts the following input properties:
- Role
Name string The name of the role.
- User
Claim string 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.
- Allowed
Redirect List<string>Uris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- Backend string
The unique name of the auth backend to configure. Defaults to
jwt.- Bound
Audiences List<string> (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- Bound
Cidrs List<string> If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- Bound
Claims Dictionary<string, object> If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- Bound
Subject string If set, requires that the
subclaim matches this value.- Claim
Mappings Dictionary<string, object> If set, a map of claims (keys) to be copied to specified metadata fields (values).
- Clock
Skew intLeeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Expiration
Leeway int The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Groups
Claim string 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.
- Groups
Claim stringDelimiter Pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Not
Before intLeeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Num
Uses int If set, puts a use-count limitation on the issued token.
- Oidc
Scopes List<string> If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies List<string>
An array of strings specifying the policies to be set on tokens issued using this role.
- Role
Type string Type of role, either “oidc” (default) or “jwt”.
- Token
Bound List<string>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies List<string> List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- Verbose
Oidc boolLogging 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.
- Role
Name string The name of the role.
- User
Claim string 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.
- Allowed
Redirect []stringUris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- Backend string
The unique name of the auth backend to configure. Defaults to
jwt.- Bound
Audiences []string (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- Bound
Cidrs []string If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- Bound
Claims map[string]interface{} If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- Bound
Subject string If set, requires that the
subclaim matches this value.- Claim
Mappings map[string]interface{} If set, a map of claims (keys) to be copied to specified metadata fields (values).
- Clock
Skew intLeeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Expiration
Leeway int The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Groups
Claim string 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.
- Groups
Claim stringDelimiter Pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Not
Before intLeeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Num
Uses int If set, puts a use-count limitation on the issued token.
- Oidc
Scopes []string If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies []string
An array of strings specifying the policies to be set on tokens issued using this role.
- Role
Type string Type of role, either “oidc” (default) or “jwt”.
- Token
Bound []stringCidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies []string List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- Verbose
Oidc boolLogging 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.
- role
Name string The name of the role.
- user
Claim string 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.
- allowed
Redirect string[]Uris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- backend string
The unique name of the auth backend to configure. Defaults to
jwt.- bound
Audiences string[] (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- bound
Cidrs string[] If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- bound
Claims {[key: string]: any} If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- bound
Subject string If set, requires that the
subclaim matches this value.- claim
Mappings {[key: string]: any} If set, a map of claims (keys) to be copied to specified metadata fields (values).
- clock
Skew numberLeeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- expiration
Leeway number The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- groups
Claim string 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.
- groups
Claim stringDelimiter Pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- max
Ttl number The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- not
Before numberLeeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- num
Uses number If set, puts a use-count limitation on the issued token.
- oidc
Scopes string[] If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- period number
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies string[]
An array of strings specifying the policies to be set on tokens issued using this role.
- role
Type string Type of role, either “oidc” (default) or “jwt”.
- token
Bound string[]Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit numberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token
Max numberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No booleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num numberUses The period, if any, in number of seconds to set on the token.
- token
Period number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token
Policies string[] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token
Ttl number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl number
The TTL period of tokens issued using this role, provided as a number of seconds.
- verbose
Oidc booleanLogging 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.
- role_
name str The name of the role.
- user_
claim str 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.
- allowed_
redirect_ List[str]uris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- backend str
The unique name of the auth backend to configure. Defaults to
jwt.- bound_
audiences List[str] (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- bound_
cidrs List[str] If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- bound_
claims Dict[str, Any] If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- bound_
subject str If set, requires that the
subclaim matches this value.- claim_
mappings Dict[str, Any] If set, a map of claims (keys) to be copied to specified metadata fields (values).
- clock_
skew_ floatleeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- expiration_
leeway float The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- groups_
claim str 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.
- groups_
claim_ strdelimiter_ pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- max_
ttl float The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- not_
before_ floatleeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- num_
uses float If set, puts a use-count limitation on the issued token.
- oidc_
scopes List[str] If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- period float
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies List[str]
An array of strings specifying the policies to be set on tokens issued using this role.
- role_
type str Type of role, either “oidc” (default) or “jwt”.
- token_
bound_ List[str]cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token_
explicit_ floatmax_ ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token_
max_ floatttl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
no_ booldefault_ policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token_
num_ floatuses The period, if any, in number of seconds to set on the token.
- token_
period float If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token_
policies List[str] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token_
ttl float The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
type str The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl float
The TTL period of tokens issued using this role, provided as a number of seconds.
- verbose_
oidc_ boollogging 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthBackendRole resource produces the following output properties:
Look up an Existing AuthBackendRole Resource
Get an existing AuthBackendRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AuthBackendRoleState, opts?: CustomResourceOptions): AuthBackendRolestatic get(resource_name, id, opts=None, allowed_redirect_uris=None, backend=None, bound_audiences=None, bound_cidrs=None, bound_claims=None, bound_subject=None, claim_mappings=None, clock_skew_leeway=None, expiration_leeway=None, groups_claim=None, groups_claim_delimiter_pattern=None, max_ttl=None, not_before_leeway=None, num_uses=None, oidc_scopes=None, period=None, policies=None, role_name=None, role_type=None, token_bound_cidrs=None, token_explicit_max_ttl=None, token_max_ttl=None, token_no_default_policy=None, token_num_uses=None, token_period=None, token_policies=None, token_ttl=None, token_type=None, ttl=None, user_claim=None, verbose_oidc_logging=None, __props__=None);func GetAuthBackendRole(ctx *Context, name string, id IDInput, state *AuthBackendRoleState, opts ...ResourceOption) (*AuthBackendRole, error)public static AuthBackendRole Get(string name, Input<string> id, AuthBackendRoleState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Allowed
Redirect List<string>Uris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- Backend string
The unique name of the auth backend to configure. Defaults to
jwt.- Bound
Audiences List<string> (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- Bound
Cidrs List<string> If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- Bound
Claims Dictionary<string, object> If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- Bound
Subject string If set, requires that the
subclaim matches this value.- Claim
Mappings Dictionary<string, object> If set, a map of claims (keys) to be copied to specified metadata fields (values).
- Clock
Skew intLeeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Expiration
Leeway int The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Groups
Claim string 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.
- Groups
Claim stringDelimiter Pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Not
Before intLeeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Num
Uses int If set, puts a use-count limitation on the issued token.
- Oidc
Scopes List<string> If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies List<string>
An array of strings specifying the policies to be set on tokens issued using this role.
- Role
Name string The name of the role.
- Role
Type string Type of role, either “oidc” (default) or “jwt”.
- Token
Bound List<string>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies List<string> List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- User
Claim string 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.
- Verbose
Oidc boolLogging 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.
- Allowed
Redirect []stringUris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- Backend string
The unique name of the auth backend to configure. Defaults to
jwt.- Bound
Audiences []string (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- Bound
Cidrs []string If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- Bound
Claims map[string]interface{} If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- Bound
Subject string If set, requires that the
subclaim matches this value.- Claim
Mappings map[string]interface{} If set, a map of claims (keys) to be copied to specified metadata fields (values).
- Clock
Skew intLeeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Expiration
Leeway int The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Groups
Claim string 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.
- Groups
Claim stringDelimiter Pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Not
Before intLeeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- Num
Uses int If set, puts a use-count limitation on the issued token.
- Oidc
Scopes []string If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies []string
An array of strings specifying the policies to be set on tokens issued using this role.
- Role
Name string The name of the role.
- Role
Type string Type of role, either “oidc” (default) or “jwt”.
- Token
Bound []stringCidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies []string List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- User
Claim string 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.
- Verbose
Oidc boolLogging 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.
- allowed
Redirect string[]Uris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- backend string
The unique name of the auth backend to configure. Defaults to
jwt.- bound
Audiences string[] (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- bound
Cidrs string[] If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- bound
Claims {[key: string]: any} If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- bound
Subject string If set, requires that the
subclaim matches this value.- claim
Mappings {[key: string]: any} If set, a map of claims (keys) to be copied to specified metadata fields (values).
- clock
Skew numberLeeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- expiration
Leeway number The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- groups
Claim string 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.
- groups
Claim stringDelimiter Pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- max
Ttl number The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- not
Before numberLeeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- num
Uses number If set, puts a use-count limitation on the issued token.
- oidc
Scopes string[] If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- period number
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies string[]
An array of strings specifying the policies to be set on tokens issued using this role.
- role
Name string The name of the role.
- role
Type string Type of role, either “oidc” (default) or “jwt”.
- token
Bound string[]Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit numberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token
Max numberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No booleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num numberUses The period, if any, in number of seconds to set on the token.
- token
Period number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token
Policies string[] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token
Ttl number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl number
The TTL period of tokens issued using this role, provided as a number of seconds.
- user
Claim string 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.
- verbose
Oidc booleanLogging 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.
- allowed_
redirect_ List[str]uris The list of allowed values for redirect_uri during OIDC logins. Required for OIDC roles
- backend str
The unique name of the auth backend to configure. Defaults to
jwt.- bound_
audiences List[str] (Required for roles of type
jwt, optional for roles of typeoidc) List ofaudclaims to match against. Any match is sufficient.- bound_
cidrs List[str] If set, a list of CIDRs valid as the source address for login requests. This value is also encoded into any resulting token.
- bound_
claims Dict[str, Any] If set, a map of claims/values to match against. The expected value may be a single string or a list of strings.
- bound_
subject str If set, requires that the
subclaim matches this value.- claim_
mappings Dict[str, Any] If set, a map of claims (keys) to be copied to specified metadata fields (values).
- clock_
skew_ floatleeway The amount of leeway to add to all claims to account for clock skew, in seconds. Defaults to
60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- expiration_
leeway float The amount of leeway to add to expiration (
exp) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- groups_
claim str 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.
- groups_
claim_ strdelimiter_ pattern (Optional; Deprecated. This field has been removed since Vault 1.1. If the groups claim is not at the top level, it can now be specified as a JSONPointer.) 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.
- max_
ttl float The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- not_
before_ floatleeway The amount of leeway to add to not before (
nbf) claims to account for clock skew, in seconds. Defaults to60seconds if set to0and can be disabled if set to-1. Only applicable with “jwt” roles.- num_
uses float If set, puts a use-count limitation on the issued token.
- oidc_
scopes List[str] If set, a list of OIDC scopes to be used with an OIDC role. The standard scope “openid” is automatically included and need not be specified.
- period float
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies List[str]
An array of strings specifying the policies to be set on tokens issued using this role.
- role_
name str The name of the role.
- role_
type str Type of role, either “oidc” (default) or “jwt”.
- token_
bound_ List[str]cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token_
explicit_ floatmax_ ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token_
max_ floatttl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
no_ booldefault_ policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token_
num_ floatuses The period, if any, in number of seconds to set on the token.
- token_
period float If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token_
policies List[str] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token_
ttl float The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
type str The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl float
The TTL period of tokens issued using this role, provided as a number of seconds.
- user_
claim str 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.
- verbose_
oidc_ boollogging 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.