SecretBackendCa

class SecretBackendCa : KotlinCustomResource

Provides a resource to manage CA information in an SSH secret backend SSH secret backend within Vault.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.Mount("example", {type: "ssh"});
const foo = new vault.ssh.SecretBackendCa("foo", {backend: example.path});
import pulumi
import pulumi_vault as vault
example = vault.Mount("example", type="ssh")
foo = vault.ssh.SecretBackendCa("foo", backend=example.path)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var example = new Vault.Mount("example", new()
{
Type = "ssh",
});
var foo = new Vault.Ssh.SecretBackendCa("foo", new()
{
Backend = example.Path,
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/ssh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := vault.NewMount(ctx, "example", &vault.MountArgs{
Type: pulumi.String("ssh"),
})
if err != nil {
return err
}
_, err = ssh.NewSecretBackendCa(ctx, "foo", &ssh.SecretBackendCaArgs{
Backend: example.Path,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.Mount;
import com.pulumi.vault.MountArgs;
import com.pulumi.vault.ssh.SecretBackendCa;
import com.pulumi.vault.ssh.SecretBackendCaArgs;
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 example = new Mount("example", MountArgs.builder()
.type("ssh")
.build());
var foo = new SecretBackendCa("foo", SecretBackendCaArgs.builder()
.backend(example.path())
.build());
}
}
resources:
example:
type: vault:Mount
properties:
type: ssh
foo:
type: vault:ssh:SecretBackendCa
properties:
backend: ${example.path}

Import

SSH secret backend CAs can be imported using the path, e.g.

$ pulumi import vault:ssh/secretBackendCa:SecretBackendCa foo ssh

Properties

Link copied to clipboard
val backend: Output<String>?

The path where the SSH secret backend is mounted. Defaults to 'ssh'

Link copied to clipboard

Whether Vault should generate the signing key pair internally. Defaults to true

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val keyBits: Output<Int>?

Specifies the desired key bits for the generated SSH CA key when generate_signing_key is set to true.

Link copied to clipboard
val keyType: Output<String>?

Specifies the desired key type for the generated SSH CA key when generate_signing_key is set to true.

Link copied to clipboard
val namespace: Output<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.

Link copied to clipboard
val privateKey: Output<String>

Private key part the SSH CA key pair; required if generate_signing_key is false.

Link copied to clipboard
val publicKey: Output<String>

The public key part the SSH CA key pair; required if generate_signing_key is false.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>