AuthBackendArgs

data class AuthBackendArgs(val baseUrl: Output<String>? = null, val description: Output<String>? = null, val disableRemount: Output<Boolean>? = null, val namespace: Output<String>? = null, val organization: Output<String>? = null, val organizationId: Output<Int>? = null, val path: Output<String>? = null, val tokenBoundCidrs: Output<List<String>>? = null, val tokenExplicitMaxTtl: Output<Int>? = null, val tokenMaxTtl: Output<Int>? = null, val tokenNoDefaultPolicy: Output<Boolean>? = null, val tokenNumUses: Output<Int>? = null, val tokenPeriod: Output<Int>? = null, val tokenPolicies: Output<List<String>>? = null, val tokenTtl: Output<Int>? = null, val tokenType: Output<String>? = null, val tune: Output<AuthBackendTuneArgs>? = null) : ConvertibleToJava<AuthBackendArgs>

Manages a GitHub Auth mount in a Vault server. See the [Vault

  • documentation](https://www.vaultproject.io/docs/auth/github/) for more information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.github.AuthBackend("example", {organization: "myorg"});
import pulumi
import pulumi_vault as vault
example = vault.github.AuthBackend("example", organization="myorg")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var example = new Vault.GitHub.AuthBackend("example", new()
{
Organization = "myorg",
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := github.NewAuthBackend(ctx, "example", &github.AuthBackendArgs{
Organization: pulumi.String("myorg"),
})
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.github.AuthBackend;
import com.pulumi.vault.github.AuthBackendArgs;
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 AuthBackend("example", AuthBackendArgs.builder()
.organization("myorg")
.build());
}
}
resources:
example:
type: vault:github:AuthBackend
properties:
organization: myorg

Import

GitHub authentication mounts can be imported using the path, e.g.

$ pulumi import vault:github/authBackend:AuthBackend example github

Constructors

Link copied to clipboard
constructor(baseUrl: Output<String>? = null, description: Output<String>? = null, disableRemount: Output<Boolean>? = null, namespace: Output<String>? = null, organization: Output<String>? = null, organizationId: Output<Int>? = null, path: Output<String>? = null, tokenBoundCidrs: Output<List<String>>? = null, tokenExplicitMaxTtl: Output<Int>? = null, tokenMaxTtl: Output<Int>? = null, tokenNoDefaultPolicy: Output<Boolean>? = null, tokenNumUses: Output<Int>? = null, tokenPeriod: Output<Int>? = null, tokenPolicies: Output<List<String>>? = null, tokenTtl: Output<Int>? = null, tokenType: Output<String>? = null, tune: Output<AuthBackendTuneArgs>? = null)

Properties

Link copied to clipboard
val baseUrl: Output<String>? = null

The API endpoint to use. Useful if you are running GitHub Enterprise or an API-compatible authentication server.

Link copied to clipboard
val description: Output<String>? = null

Specifies the description of the mount. This overrides the current stored value, if any.

Link copied to clipboard
val disableRemount: Output<Boolean>? = null

If set, opts out of mount migration on path updates. See here for more info on Mount Migration

Link copied to clipboard
val namespace: Output<String>? = null

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 organization: Output<String>? = null

The organization configured users must be part of.

Link copied to clipboard
val organizationId: Output<Int>? = null

The ID of the organization users must be part of. Vault will attempt to fetch and set this value if it is not provided. (Vault 1.10+)

Link copied to clipboard
val path: Output<String>? = null

Path where the auth backend is mounted. Defaults to auth/github if not specified.

Link copied to clipboard
val tokenBoundCidrs: Output<List<String>>? = null

(Optional) 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.

Link copied to clipboard
val tokenExplicitMaxTtl: Output<Int>? = null

(Optional) If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if token_ttl and token_max_ttl would otherwise allow a renewal.

Link copied to clipboard
val tokenMaxTtl: Output<Int>? = null

(Optional) The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.

Link copied to clipboard
val tokenNoDefaultPolicy: Output<Boolean>? = null

(Optional) If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.

Link copied to clipboard
val tokenNumUses: Output<Int>? = null

(Optional) The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.

Link copied to clipboard
val tokenPeriod: Output<Int>? = null

(Optional) 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.

Link copied to clipboard
val tokenPolicies: Output<List<String>>? = null

(Optional) List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.

Link copied to clipboard
val tokenTtl: Output<Int>? = null

(Optional) The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.

Link copied to clipboard
val tokenType: Output<String>? = null

Specifies the type of tokens that should be returned by the mount. Valid values are "default-service", "default-batch", "service", "batch".

Link copied to clipboard
val tune: Output<AuthBackendTuneArgs>? = null

Extra configuration block. Structure is documented below. The tune block is used to tune the auth backend:

Functions

Link copied to clipboard
open override fun toJava(): AuthBackendArgs