AuthBackendRole
Provides a resource to create a role in an GCP auth backend within Vault.
Create a AuthBackendRole Resource
new AuthBackendRole(name: string, args: AuthBackendRoleArgs, opts?: CustomResourceOptions);def AuthBackendRole(resource_name, opts=None, add_group_aliases=None, allow_gce_inference=None, backend=None, bound_instance_groups=None, bound_labels=None, bound_projects=None, bound_regions=None, bound_service_accounts=None, bound_zones=None, max_jwt_exp=None, max_ttl=None, period=None, policies=None, role=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, type=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 string
Name of the GCP role
- Type string
Type of GCP authentication role (either
gceoriam)- Add
Group boolAliases - Allow
Gce boolInference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- Backend string
Path to the mounted GCP auth backend
- Bound
Instance List<string>Groups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- Bound
Labels List<string> A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- Bound
Projects List<string> GCP Projects that the role exists within
- Bound
Regions List<string> The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- Bound
Service List<string>Accounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- Bound
Zones List<string> The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- Max
Jwt stringExp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- Max
Ttl string The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period string
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.
- 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 string
The TTL period of tokens issued using this role, provided as a number of seconds.
- Role string
Name of the GCP role
- Type string
Type of GCP authentication role (either
gceoriam)- Add
Group boolAliases - Allow
Gce boolInference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- Backend string
Path to the mounted GCP auth backend
- Bound
Instance []stringGroups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- Bound
Labels []string A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- Bound
Projects []string GCP Projects that the role exists within
- Bound
Regions []string The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- Bound
Service []stringAccounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- Bound
Zones []string The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- Max
Jwt stringExp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- Max
Ttl string The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period string
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.
- 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 string
The TTL period of tokens issued using this role, provided as a number of seconds.
- role string
Name of the GCP role
- type string
Type of GCP authentication role (either
gceoriam)- add
Group booleanAliases - allow
Gce booleanInference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- backend string
Path to the mounted GCP auth backend
- bound
Instance string[]Groups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- bound
Labels string[] A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- bound
Projects string[] GCP Projects that the role exists within
- bound
Regions string[] The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- bound
Service string[]Accounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- bound
Zones string[] The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- max
Jwt stringExp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- max
Ttl string The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period string
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.
- 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 string
The TTL period of tokens issued using this role, provided as a number of seconds.
- role str
Name of the GCP role
- type str
Type of GCP authentication role (either
gceoriam)- add_
group_ boolaliases - allow_
gce_ boolinference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- backend str
Path to the mounted GCP auth backend
- bound_
instance_ List[str]groups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- bound_
labels List[str] A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- bound_
projects List[str] GCP Projects that the role exists within
- bound_
regions List[str] The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- bound_
service_ List[str]accounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- bound_
zones List[str] The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- max_
jwt_ strexp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- max_
ttl str The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period str
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.
- 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 str
The TTL period of tokens issued using this role, provided as a number of seconds.
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, add_group_aliases=None, allow_gce_inference=None, backend=None, bound_instance_groups=None, bound_labels=None, bound_projects=None, bound_regions=None, bound_service_accounts=None, bound_zones=None, max_jwt_exp=None, max_ttl=None, period=None, policies=None, role=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, type=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:
- Add
Group boolAliases - Allow
Gce boolInference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- Backend string
Path to the mounted GCP auth backend
- Bound
Instance List<string>Groups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- Bound
Labels List<string> A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- Bound
Projects List<string> GCP Projects that the role exists within
- Bound
Regions List<string> The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- Bound
Service List<string>Accounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- Bound
Zones List<string> The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- Max
Jwt stringExp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- Max
Ttl string The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period string
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 string
Name of the GCP role
- 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 string
The TTL period of tokens issued using this role, provided as a number of seconds.
- Type string
Type of GCP authentication role (either
gceoriam)
- Add
Group boolAliases - Allow
Gce boolInference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- Backend string
Path to the mounted GCP auth backend
- Bound
Instance []stringGroups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- Bound
Labels []string A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- Bound
Projects []string GCP Projects that the role exists within
- Bound
Regions []string The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- Bound
Service []stringAccounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- Bound
Zones []string The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- Max
Jwt stringExp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- Max
Ttl string The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period string
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 string
Name of the GCP role
- 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 string
The TTL period of tokens issued using this role, provided as a number of seconds.
- Type string
Type of GCP authentication role (either
gceoriam)
- add
Group booleanAliases - allow
Gce booleanInference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- backend string
Path to the mounted GCP auth backend
- bound
Instance string[]Groups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- bound
Labels string[] A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- bound
Projects string[] GCP Projects that the role exists within
- bound
Regions string[] The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- bound
Service string[]Accounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- bound
Zones string[] The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- max
Jwt stringExp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- max
Ttl string The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period string
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 string
Name of the GCP role
- 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 string
The TTL period of tokens issued using this role, provided as a number of seconds.
- type string
Type of GCP authentication role (either
gceoriam)
- add_
group_ boolaliases - allow_
gce_ boolinference A flag to determine if this role should allow GCE instances to authenticate by inferring service accounts from the GCE identity metadata token.
- backend str
Path to the mounted GCP auth backend
- bound_
instance_ List[str]groups The instance groups that an authorized instance must belong to in order to be authenticated. If specified, either
bound_zonesorbound_regionsmust be set too.- bound_
labels List[str] A comma-separated list of GCP labels formatted as
"key:value"strings that must be set on authorized GCE instances. Because GCP labels are not currently ACL’d, we recommend that this be used in conjunction with other restrictions.- bound_
projects List[str] GCP Projects that the role exists within
- bound_
regions List[str] The list of regions that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored.
- bound_
service_ List[str]accounts GCP Service Accounts allowed to issue tokens under this role. (Note: Required if role is
iam)- bound_
zones List[str] The list of zones that a GCE instance must belong to in order to be authenticated. If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone.
- max_
jwt_ strexp The number of seconds past the time of authentication that the login param JWT must expire within. For example, if a user attempts to login with a token that expires within an hour and this is set to 15 minutes, Vault will return an error prompting the user to create a new signed JWT with a shorter
exp. The GCE metadata tokens currently do not allow theexpclaim to be customized.- max_
ttl str The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period str
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 str
Name of the GCP role
- 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 str
The TTL period of tokens issued using this role, provided as a number of seconds.
- type str
Type of GCP authentication role (either
gceoriam)
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.