1. Packages
  2. HashiCorp Vault
  3. API Docs
  4. kubernetes
  5. SecretBackend
HashiCorp Vault v6.1.0 published on Thursday, Apr 4, 2024 by Pulumi

vault.kubernetes.SecretBackend

Explore with Pulumi AI

vault logo
HashiCorp Vault v6.1.0 published on Thursday, Apr 4, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fs from "fs";
    import * as vault from "@pulumi/vault";
    
    const config = new vault.kubernetes.SecretBackend("config", {
        path: "kubernetes",
        description: "kubernetes secrets engine description",
        defaultLeaseTtlSeconds: 43200,
        maxLeaseTtlSeconds: 86400,
        kubernetesHost: "https://127.0.0.1:61233",
        kubernetesCaCert: fs.readFileSync("/path/to/cert", "utf8"),
        serviceAccountJwt: fs.readFileSync("/path/to/token", "utf8"),
        disableLocalCaJwt: false,
    });
    
    import pulumi
    import pulumi_vault as vault
    
    config = vault.kubernetes.SecretBackend("config",
        path="kubernetes",
        description="kubernetes secrets engine description",
        default_lease_ttl_seconds=43200,
        max_lease_ttl_seconds=86400,
        kubernetes_host="https://127.0.0.1:61233",
        kubernetes_ca_cert=(lambda path: open(path).read())("/path/to/cert"),
        service_account_jwt=(lambda path: open(path).read())("/path/to/token"),
        disable_local_ca_jwt=False)
    
    package main
    
    import (
    	"os"
    
    	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/kubernetes"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func readFileOrPanic(path string) pulumi.StringPtrInput {
    	data, err := os.ReadFile(path)
    	if err != nil {
    		panic(err.Error())
    	}
    	return pulumi.String(string(data))
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := kubernetes.NewSecretBackend(ctx, "config", &kubernetes.SecretBackendArgs{
    			Path:                   pulumi.String("kubernetes"),
    			Description:            pulumi.String("kubernetes secrets engine description"),
    			DefaultLeaseTtlSeconds: pulumi.Int(43200),
    			MaxLeaseTtlSeconds:     pulumi.Int(86400),
    			KubernetesHost:         pulumi.String("https://127.0.0.1:61233"),
    			KubernetesCaCert:       readFileOrPanic("/path/to/cert"),
    			ServiceAccountJwt:      readFileOrPanic("/path/to/token"),
    			DisableLocalCaJwt:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Vault = Pulumi.Vault;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Vault.Kubernetes.SecretBackend("config", new()
        {
            Path = "kubernetes",
            Description = "kubernetes secrets engine description",
            DefaultLeaseTtlSeconds = 43200,
            MaxLeaseTtlSeconds = 86400,
            KubernetesHost = "https://127.0.0.1:61233",
            KubernetesCaCert = File.ReadAllText("/path/to/cert"),
            ServiceAccountJwt = File.ReadAllText("/path/to/token"),
            DisableLocalCaJwt = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vault.kubernetes.SecretBackend;
    import com.pulumi.vault.kubernetes.SecretBackendArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var config = new SecretBackend("config", SecretBackendArgs.builder()        
                .path("kubernetes")
                .description("kubernetes secrets engine description")
                .defaultLeaseTtlSeconds(43200)
                .maxLeaseTtlSeconds(86400)
                .kubernetesHost("https://127.0.0.1:61233")
                .kubernetesCaCert(Files.readString(Paths.get("/path/to/cert")))
                .serviceAccountJwt(Files.readString(Paths.get("/path/to/token")))
                .disableLocalCaJwt(false)
                .build());
    
        }
    }
    
    resources:
      config:
        type: vault:kubernetes:SecretBackend
        properties:
          path: kubernetes
          description: kubernetes secrets engine description
          defaultLeaseTtlSeconds: 43200
          maxLeaseTtlSeconds: 86400
          kubernetesHost: https://127.0.0.1:61233
          kubernetesCaCert:
            fn::readFile: /path/to/cert
          serviceAccountJwt:
            fn::readFile: /path/to/token
          disableLocalCaJwt: false
    

    Create SecretBackend Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecretBackend(name: string, args: SecretBackendArgs, opts?: CustomResourceOptions);
    @overload
    def SecretBackend(resource_name: str,
                      args: SecretBackendArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecretBackend(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      path: Optional[str] = None,
                      kubernetes_host: Optional[str] = None,
                      local: Optional[bool] = None,
                      default_lease_ttl_seconds: Optional[int] = None,
                      description: Optional[str] = None,
                      disable_local_ca_jwt: Optional[bool] = None,
                      external_entropy_access: Optional[bool] = None,
                      audit_non_hmac_response_keys: Optional[Sequence[str]] = None,
                      allowed_managed_keys: Optional[Sequence[str]] = None,
                      kubernetes_ca_cert: Optional[str] = None,
                      max_lease_ttl_seconds: Optional[int] = None,
                      namespace: Optional[str] = None,
                      options: Optional[Mapping[str, Any]] = None,
                      audit_non_hmac_request_keys: Optional[Sequence[str]] = None,
                      seal_wrap: Optional[bool] = None,
                      service_account_jwt: Optional[str] = None)
    func NewSecretBackend(ctx *Context, name string, args SecretBackendArgs, opts ...ResourceOption) (*SecretBackend, error)
    public SecretBackend(string name, SecretBackendArgs args, CustomResourceOptions? opts = null)
    public SecretBackend(String name, SecretBackendArgs args)
    public SecretBackend(String name, SecretBackendArgs args, CustomResourceOptions options)
    
    type: vault:kubernetes:SecretBackend
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecretBackendArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecretBackendArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecretBackendArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretBackendArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretBackendArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var examplesecretBackendResourceResourceFromKubernetessecretBackend = new Vault.Kubernetes.SecretBackend("examplesecretBackendResourceResourceFromKubernetessecretBackend", new()
    {
        Path = "string",
        KubernetesHost = "string",
        Local = false,
        DefaultLeaseTtlSeconds = 0,
        Description = "string",
        DisableLocalCaJwt = false,
        ExternalEntropyAccess = false,
        AuditNonHmacResponseKeys = new[]
        {
            "string",
        },
        AllowedManagedKeys = new[]
        {
            "string",
        },
        KubernetesCaCert = "string",
        MaxLeaseTtlSeconds = 0,
        Namespace = "string",
        Options = 
        {
            { "string", "any" },
        },
        AuditNonHmacRequestKeys = new[]
        {
            "string",
        },
        SealWrap = false,
        ServiceAccountJwt = "string",
    });
    
    example, err := kubernetes.NewSecretBackend(ctx, "examplesecretBackendResourceResourceFromKubernetessecretBackend", &kubernetes.SecretBackendArgs{
    	Path:                   pulumi.String("string"),
    	KubernetesHost:         pulumi.String("string"),
    	Local:                  pulumi.Bool(false),
    	DefaultLeaseTtlSeconds: pulumi.Int(0),
    	Description:            pulumi.String("string"),
    	DisableLocalCaJwt:      pulumi.Bool(false),
    	ExternalEntropyAccess:  pulumi.Bool(false),
    	AuditNonHmacResponseKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AllowedManagedKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	KubernetesCaCert:   pulumi.String("string"),
    	MaxLeaseTtlSeconds: pulumi.Int(0),
    	Namespace:          pulumi.String("string"),
    	Options: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	AuditNonHmacRequestKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SealWrap:          pulumi.Bool(false),
    	ServiceAccountJwt: pulumi.String("string"),
    })
    
    var examplesecretBackendResourceResourceFromKubernetessecretBackend = new SecretBackend("examplesecretBackendResourceResourceFromKubernetessecretBackend", SecretBackendArgs.builder()        
        .path("string")
        .kubernetesHost("string")
        .local(false)
        .defaultLeaseTtlSeconds(0)
        .description("string")
        .disableLocalCaJwt(false)
        .externalEntropyAccess(false)
        .auditNonHmacResponseKeys("string")
        .allowedManagedKeys("string")
        .kubernetesCaCert("string")
        .maxLeaseTtlSeconds(0)
        .namespace("string")
        .options(Map.of("string", "any"))
        .auditNonHmacRequestKeys("string")
        .sealWrap(false)
        .serviceAccountJwt("string")
        .build());
    
    examplesecret_backend_resource_resource_from_kubernetessecret_backend = vault.kubernetes.SecretBackend("examplesecretBackendResourceResourceFromKubernetessecretBackend",
        path="string",
        kubernetes_host="string",
        local=False,
        default_lease_ttl_seconds=0,
        description="string",
        disable_local_ca_jwt=False,
        external_entropy_access=False,
        audit_non_hmac_response_keys=["string"],
        allowed_managed_keys=["string"],
        kubernetes_ca_cert="string",
        max_lease_ttl_seconds=0,
        namespace="string",
        options={
            "string": "any",
        },
        audit_non_hmac_request_keys=["string"],
        seal_wrap=False,
        service_account_jwt="string")
    
    const examplesecretBackendResourceResourceFromKubernetessecretBackend = new vault.kubernetes.SecretBackend("examplesecretBackendResourceResourceFromKubernetessecretBackend", {
        path: "string",
        kubernetesHost: "string",
        local: false,
        defaultLeaseTtlSeconds: 0,
        description: "string",
        disableLocalCaJwt: false,
        externalEntropyAccess: false,
        auditNonHmacResponseKeys: ["string"],
        allowedManagedKeys: ["string"],
        kubernetesCaCert: "string",
        maxLeaseTtlSeconds: 0,
        namespace: "string",
        options: {
            string: "any",
        },
        auditNonHmacRequestKeys: ["string"],
        sealWrap: false,
        serviceAccountJwt: "string",
    });
    
    type: vault:kubernetes:SecretBackend
    properties:
        allowedManagedKeys:
            - string
        auditNonHmacRequestKeys:
            - string
        auditNonHmacResponseKeys:
            - string
        defaultLeaseTtlSeconds: 0
        description: string
        disableLocalCaJwt: false
        externalEntropyAccess: false
        kubernetesCaCert: string
        kubernetesHost: string
        local: false
        maxLeaseTtlSeconds: 0
        namespace: string
        options:
            string: any
        path: string
        sealWrap: false
        serviceAccountJwt: string
    

    SecretBackend Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SecretBackend resource accepts the following input properties:

    Path string
    Where the secret backend will be mounted
    AllowedManagedKeys List<string>
    List of managed key registry entry names that the mount in question is allowed to access
    AuditNonHmacRequestKeys List<string>
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    AuditNonHmacResponseKeys List<string>
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    DefaultLeaseTtlSeconds int
    Default lease duration for tokens and secrets in seconds
    Description string
    Human-friendly description of the mount
    DisableLocalCaJwt bool
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    ExternalEntropyAccess bool
    Enable the secrets engine to access Vault's external entropy source
    KubernetesCaCert string
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    KubernetesHost string
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    Local bool
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    MaxLeaseTtlSeconds int
    Maximum possible lease duration for tokens and secrets in seconds
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Options Dictionary<string, object>
    Specifies mount type specific options that are passed to the backend
    SealWrap bool
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    ServiceAccountJwt string
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    Path string
    Where the secret backend will be mounted
    AllowedManagedKeys []string
    List of managed key registry entry names that the mount in question is allowed to access
    AuditNonHmacRequestKeys []string
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    AuditNonHmacResponseKeys []string
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    DefaultLeaseTtlSeconds int
    Default lease duration for tokens and secrets in seconds
    Description string
    Human-friendly description of the mount
    DisableLocalCaJwt bool
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    ExternalEntropyAccess bool
    Enable the secrets engine to access Vault's external entropy source
    KubernetesCaCert string
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    KubernetesHost string
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    Local bool
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    MaxLeaseTtlSeconds int
    Maximum possible lease duration for tokens and secrets in seconds
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Options map[string]interface{}
    Specifies mount type specific options that are passed to the backend
    SealWrap bool
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    ServiceAccountJwt string
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    path String
    Where the secret backend will be mounted
    allowedManagedKeys List<String>
    List of managed key registry entry names that the mount in question is allowed to access
    auditNonHmacRequestKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    auditNonHmacResponseKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    defaultLeaseTtlSeconds Integer
    Default lease duration for tokens and secrets in seconds
    description String
    Human-friendly description of the mount
    disableLocalCaJwt Boolean
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    externalEntropyAccess Boolean
    Enable the secrets engine to access Vault's external entropy source
    kubernetesCaCert String
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetesHost String
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local Boolean
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    maxLeaseTtlSeconds Integer
    Maximum possible lease duration for tokens and secrets in seconds
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options Map<String,Object>
    Specifies mount type specific options that are passed to the backend
    sealWrap Boolean
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    serviceAccountJwt String
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    path string
    Where the secret backend will be mounted
    allowedManagedKeys string[]
    List of managed key registry entry names that the mount in question is allowed to access
    auditNonHmacRequestKeys string[]
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    auditNonHmacResponseKeys string[]
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    defaultLeaseTtlSeconds number
    Default lease duration for tokens and secrets in seconds
    description string
    Human-friendly description of the mount
    disableLocalCaJwt boolean
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    externalEntropyAccess boolean
    Enable the secrets engine to access Vault's external entropy source
    kubernetesCaCert string
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetesHost string
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local boolean
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    maxLeaseTtlSeconds number
    Maximum possible lease duration for tokens and secrets in seconds
    namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options {[key: string]: any}
    Specifies mount type specific options that are passed to the backend
    sealWrap boolean
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    serviceAccountJwt string
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    path str
    Where the secret backend will be mounted
    allowed_managed_keys Sequence[str]
    List of managed key registry entry names that the mount in question is allowed to access
    audit_non_hmac_request_keys Sequence[str]
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    audit_non_hmac_response_keys Sequence[str]
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    default_lease_ttl_seconds int
    Default lease duration for tokens and secrets in seconds
    description str
    Human-friendly description of the mount
    disable_local_ca_jwt bool
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    external_entropy_access bool
    Enable the secrets engine to access Vault's external entropy source
    kubernetes_ca_cert str
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetes_host str
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local bool
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    max_lease_ttl_seconds int
    Maximum possible lease duration for tokens and secrets in seconds
    namespace str
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options Mapping[str, Any]
    Specifies mount type specific options that are passed to the backend
    seal_wrap bool
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    service_account_jwt str
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    path String
    Where the secret backend will be mounted
    allowedManagedKeys List<String>
    List of managed key registry entry names that the mount in question is allowed to access
    auditNonHmacRequestKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    auditNonHmacResponseKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    defaultLeaseTtlSeconds Number
    Default lease duration for tokens and secrets in seconds
    description String
    Human-friendly description of the mount
    disableLocalCaJwt Boolean
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    externalEntropyAccess Boolean
    Enable the secrets engine to access Vault's external entropy source
    kubernetesCaCert String
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetesHost String
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local Boolean
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    maxLeaseTtlSeconds Number
    Maximum possible lease duration for tokens and secrets in seconds
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options Map<Any>
    Specifies mount type specific options that are passed to the backend
    sealWrap Boolean
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    serviceAccountJwt String
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecretBackend resource produces the following output properties:

    Accessor string
    Accessor of the mount
    Id string
    The provider-assigned unique ID for this managed resource.
    Accessor string
    Accessor of the mount
    Id string
    The provider-assigned unique ID for this managed resource.
    accessor String
    Accessor of the mount
    id String
    The provider-assigned unique ID for this managed resource.
    accessor string
    Accessor of the mount
    id string
    The provider-assigned unique ID for this managed resource.
    accessor str
    Accessor of the mount
    id str
    The provider-assigned unique ID for this managed resource.
    accessor String
    Accessor of the mount
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SecretBackend Resource

    Get an existing SecretBackend 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?: SecretBackendState, opts?: CustomResourceOptions): SecretBackend
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accessor: Optional[str] = None,
            allowed_managed_keys: Optional[Sequence[str]] = None,
            audit_non_hmac_request_keys: Optional[Sequence[str]] = None,
            audit_non_hmac_response_keys: Optional[Sequence[str]] = None,
            default_lease_ttl_seconds: Optional[int] = None,
            description: Optional[str] = None,
            disable_local_ca_jwt: Optional[bool] = None,
            external_entropy_access: Optional[bool] = None,
            kubernetes_ca_cert: Optional[str] = None,
            kubernetes_host: Optional[str] = None,
            local: Optional[bool] = None,
            max_lease_ttl_seconds: Optional[int] = None,
            namespace: Optional[str] = None,
            options: Optional[Mapping[str, Any]] = None,
            path: Optional[str] = None,
            seal_wrap: Optional[bool] = None,
            service_account_jwt: Optional[str] = None) -> SecretBackend
    func GetSecretBackend(ctx *Context, name string, id IDInput, state *SecretBackendState, opts ...ResourceOption) (*SecretBackend, error)
    public static SecretBackend Get(string name, Input<string> id, SecretBackendState? state, CustomResourceOptions? opts = null)
    public static SecretBackend get(String name, Output<String> id, SecretBackendState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    Accessor string
    Accessor of the mount
    AllowedManagedKeys List<string>
    List of managed key registry entry names that the mount in question is allowed to access
    AuditNonHmacRequestKeys List<string>
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    AuditNonHmacResponseKeys List<string>
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    DefaultLeaseTtlSeconds int
    Default lease duration for tokens and secrets in seconds
    Description string
    Human-friendly description of the mount
    DisableLocalCaJwt bool
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    ExternalEntropyAccess bool
    Enable the secrets engine to access Vault's external entropy source
    KubernetesCaCert string
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    KubernetesHost string
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    Local bool
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    MaxLeaseTtlSeconds int
    Maximum possible lease duration for tokens and secrets in seconds
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Options Dictionary<string, object>
    Specifies mount type specific options that are passed to the backend
    Path string
    Where the secret backend will be mounted
    SealWrap bool
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    ServiceAccountJwt string
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    Accessor string
    Accessor of the mount
    AllowedManagedKeys []string
    List of managed key registry entry names that the mount in question is allowed to access
    AuditNonHmacRequestKeys []string
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    AuditNonHmacResponseKeys []string
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    DefaultLeaseTtlSeconds int
    Default lease duration for tokens and secrets in seconds
    Description string
    Human-friendly description of the mount
    DisableLocalCaJwt bool
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    ExternalEntropyAccess bool
    Enable the secrets engine to access Vault's external entropy source
    KubernetesCaCert string
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    KubernetesHost string
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    Local bool
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    MaxLeaseTtlSeconds int
    Maximum possible lease duration for tokens and secrets in seconds
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Options map[string]interface{}
    Specifies mount type specific options that are passed to the backend
    Path string
    Where the secret backend will be mounted
    SealWrap bool
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    ServiceAccountJwt string
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    accessor String
    Accessor of the mount
    allowedManagedKeys List<String>
    List of managed key registry entry names that the mount in question is allowed to access
    auditNonHmacRequestKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    auditNonHmacResponseKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    defaultLeaseTtlSeconds Integer
    Default lease duration for tokens and secrets in seconds
    description String
    Human-friendly description of the mount
    disableLocalCaJwt Boolean
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    externalEntropyAccess Boolean
    Enable the secrets engine to access Vault's external entropy source
    kubernetesCaCert String
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetesHost String
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local Boolean
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    maxLeaseTtlSeconds Integer
    Maximum possible lease duration for tokens and secrets in seconds
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options Map<String,Object>
    Specifies mount type specific options that are passed to the backend
    path String
    Where the secret backend will be mounted
    sealWrap Boolean
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    serviceAccountJwt String
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    accessor string
    Accessor of the mount
    allowedManagedKeys string[]
    List of managed key registry entry names that the mount in question is allowed to access
    auditNonHmacRequestKeys string[]
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    auditNonHmacResponseKeys string[]
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    defaultLeaseTtlSeconds number
    Default lease duration for tokens and secrets in seconds
    description string
    Human-friendly description of the mount
    disableLocalCaJwt boolean
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    externalEntropyAccess boolean
    Enable the secrets engine to access Vault's external entropy source
    kubernetesCaCert string
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetesHost string
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local boolean
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    maxLeaseTtlSeconds number
    Maximum possible lease duration for tokens and secrets in seconds
    namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options {[key: string]: any}
    Specifies mount type specific options that are passed to the backend
    path string
    Where the secret backend will be mounted
    sealWrap boolean
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    serviceAccountJwt string
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    accessor str
    Accessor of the mount
    allowed_managed_keys Sequence[str]
    List of managed key registry entry names that the mount in question is allowed to access
    audit_non_hmac_request_keys Sequence[str]
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    audit_non_hmac_response_keys Sequence[str]
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    default_lease_ttl_seconds int
    Default lease duration for tokens and secrets in seconds
    description str
    Human-friendly description of the mount
    disable_local_ca_jwt bool
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    external_entropy_access bool
    Enable the secrets engine to access Vault's external entropy source
    kubernetes_ca_cert str
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetes_host str
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local bool
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    max_lease_ttl_seconds int
    Maximum possible lease duration for tokens and secrets in seconds
    namespace str
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options Mapping[str, Any]
    Specifies mount type specific options that are passed to the backend
    path str
    Where the secret backend will be mounted
    seal_wrap bool
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    service_account_jwt str
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.
    accessor String
    Accessor of the mount
    allowedManagedKeys List<String>
    List of managed key registry entry names that the mount in question is allowed to access
    auditNonHmacRequestKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the request data object.
    auditNonHmacResponseKeys List<String>
    Specifies the list of keys that will not be HMAC'd by audit devices in the response data object.
    defaultLeaseTtlSeconds Number
    Default lease duration for tokens and secrets in seconds
    description String
    Human-friendly description of the mount
    disableLocalCaJwt Boolean
    Disable defaulting to the local CA certificate and service account JWT when Vault is running in a Kubernetes pod.
    externalEntropyAccess Boolean
    Enable the secrets engine to access Vault's external entropy source
    kubernetesCaCert String
    A PEM-encoded CA certificate used by the secrets engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if Vault is running in Kubernetes. Otherwise, defaults to the root CA set where Vault is running.
    kubernetesHost String
    The Kubernetes API URL to connect to. Required if the standard pod environment variables KUBERNETES_SERVICE_HOST or KUBERNETES_SERVICE_PORT are not set on the host that Vault is running on.
    local Boolean
    Local mount flag that can be explicitly set to true to enforce local mount in HA environment
    maxLeaseTtlSeconds Number
    Maximum possible lease duration for tokens and secrets in seconds
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    options Map<Any>
    Specifies mount type specific options that are passed to the backend
    path String
    Where the secret backend will be mounted
    sealWrap Boolean
    Enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability
    serviceAccountJwt String
    The JSON web token of the service account used by the secrets engine to manage Kubernetes credentials. Defaults to the local pod’s JWT if Vault is running in Kubernetes.

    Import

    The Kubernetes secret backend can be imported using its path e.g.

    $ pulumi import vault:kubernetes/secretBackend:SecretBackend config kubernetes
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Vault pulumi/pulumi-vault
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vault Terraform Provider.
    vault logo
    HashiCorp Vault v6.1.0 published on Thursday, Apr 4, 2024 by Pulumi