Class SecretBackendRole
Provides a resource to manage roles in an SSH secret backend SSH secret backend within Vault.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var example = new Vault.Mount("example", new Vault.MountArgs
{
Type = "ssh",
});
var foo = new Vault.Ssh.SecretBackendRole("foo", new Vault.Ssh.SecretBackendRoleArgs
{
AllowUserCertificates = true,
Backend = example.Path,
KeyType = "ca",
});
var bar = new Vault.Ssh.SecretBackendRole("bar", new Vault.Ssh.SecretBackendRoleArgs
{
AllowedUsers = "default,baz",
Backend = example.Path,
CidrList = "0.0.0.0/0",
DefaultUser = "default",
KeyType = "otp",
});
}
}
Inherited Members
Namespace: Pulumi.Vault.Ssh
Assembly: Pulumi.Vault.dll
Syntax
public class SecretBackendRole : CustomResource
Constructors
View SourceSecretBackendRole(String, SecretBackendRoleArgs, CustomResourceOptions)
Create a SecretBackendRole resource with the given unique name, arguments, and options.
Declaration
public SecretBackendRole(string name, SecretBackendRoleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecretBackendRoleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllowBareDomains
Specifies if host certificates that are requested are allowed to use the base domains listed in allowed_domains.
Declaration
public Output<bool?> AllowBareDomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowedCriticalOptions
Specifies a comma-separated list of critical options that certificates can have when signed.
Declaration
public Output<string> AllowedCriticalOptions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AllowedDomains
The list of domains for which a client can request a host certificate.
Declaration
public Output<string> AllowedDomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AllowedExtensions
Specifies a comma-separated list of extensions that certificates can have when signed.
Declaration
public Output<string> AllowedExtensions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AllowedUserKeyLengths
Specifies a map of ssh key types and their expected sizes which are allowed to be signed by the CA type.
Declaration
public Output<ImmutableDictionary<string, object>> AllowedUserKeyLengths { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
AllowedUsers
Specifies a comma-separated list of usernames that are to be allowed, only if certain usernames are to be allowed.
Declaration
public Output<string> AllowedUsers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AllowHostCertificates
Specifies if certificates are allowed to be signed for use as a 'host'.
Declaration
public Output<bool?> AllowHostCertificates { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowSubdomains
Specifies if host certificates that are requested are allowed to be subdomains of those listed in allowed_domains.
Declaration
public Output<bool?> AllowSubdomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowUserCertificates
Specifies if certificates are allowed to be signed for use as a 'user'.
Declaration
public Output<bool?> AllowUserCertificates { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowUserKeyIds
Specifies if users can override the key ID for a signed certificate with the key_id field.
Declaration
public Output<bool?> AllowUserKeyIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Backend
The path where the SSH secret backend is mounted.
Declaration
public Output<string> Backend { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CidrList
The comma-separated string of CIDR blocks for which this role is applicable.
Declaration
public Output<string> CidrList { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DefaultCriticalOptions
Specifies a map of critical options that certificates have when signed.
Declaration
public Output<ImmutableDictionary<string, object>> DefaultCriticalOptions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
DefaultExtensions
Specifies a map of extensions that certificates have when signed.
Declaration
public Output<ImmutableDictionary<string, object>> DefaultExtensions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
DefaultUser
Specifies the default username for which a credential will be generated.
Declaration
public Output<string> DefaultUser { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyIdFormat
Specifies a custom format for the key id of a signed certificate.
Declaration
public Output<string> KeyIdFormat { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyType
Specifies the type of credentials generated by this role. This can be either otp, dynamic or ca.
Declaration
public Output<string> KeyType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MaxTtl
Specifies the maximum Time To Live value.
Declaration
public Output<string> MaxTtl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the role to create.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Ttl
Specifies the Time To Live value.
Declaration
public Output<string> Ttl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SecretBackendRoleState, CustomResourceOptions)
Get an existing SecretBackendRole resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SecretBackendRole Get(string name, Input<string> id, SecretBackendRoleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SecretBackendRoleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SecretBackendRole |