Mfa Duo Args
data class MfaDuoArgs(val apiHostname: Output<String>? = null, val integrationKey: Output<String>? = null, val mountAccessor: Output<String>? = null, val name: Output<String>? = null, val namespace: Output<String>? = null, val pushInfo: Output<String>? = null, val secretKey: Output<String>? = null, val usernameFormat: Output<String>? = null) : ConvertibleToJava<MfaDuoArgs>
Provides a resource to manage Duo MFA. Note this feature is available only with Vault Enterprise.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const userpass = new vault.AuthBackend("userpass", {
type: "userpass",
path: "userpass",
});
const myDuo = new vault.MfaDuo("my_duo", {
name: "my_duo",
mountAccessor: userpass.accessor,
secretKey: "8C7THtrIigh2rPZQMbguugt8IUftWhMRCOBzbuyz",
integrationKey: "BIACEUEAXI20BNWTEYXT",
apiHostname: "api-2b5c39f5.duosecurity.com",
});
Content copied to clipboard
import pulumi
import pulumi_vault as vault
userpass = vault.AuthBackend("userpass",
type="userpass",
path="userpass")
my_duo = vault.MfaDuo("my_duo",
name="my_duo",
mount_accessor=userpass.accessor,
secret_key="8C7THtrIigh2rPZQMbguugt8IUftWhMRCOBzbuyz",
integration_key="BIACEUEAXI20BNWTEYXT",
api_hostname="api-2b5c39f5.duosecurity.com")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var userpass = new Vault.AuthBackend("userpass", new()
{
Type = "userpass",
Path = "userpass",
});
var myDuo = new Vault.MfaDuo("my_duo", new()
{
Name = "my_duo",
MountAccessor = userpass.Accessor,
SecretKey = "8C7THtrIigh2rPZQMbguugt8IUftWhMRCOBzbuyz",
IntegrationKey = "BIACEUEAXI20BNWTEYXT",
ApiHostname = "api-2b5c39f5.duosecurity.com",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
userpass, err := vault.NewAuthBackend(ctx, "userpass", &vault.AuthBackendArgs{
Type: pulumi.String("userpass"),
Path: pulumi.String("userpass"),
})
if err != nil {
return err
}
_, err = vault.NewMfaDuo(ctx, "my_duo", &vault.MfaDuoArgs{
Name: pulumi.String("my_duo"),
MountAccessor: userpass.Accessor,
SecretKey: pulumi.String("8C7THtrIigh2rPZQMbguugt8IUftWhMRCOBzbuyz"),
IntegrationKey: pulumi.String("BIACEUEAXI20BNWTEYXT"),
ApiHostname: pulumi.String("api-2b5c39f5.duosecurity.com"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.AuthBackend;
import com.pulumi.vault.AuthBackendArgs;
import com.pulumi.vault.MfaDuo;
import com.pulumi.vault.MfaDuoArgs;
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 userpass = new AuthBackend("userpass", AuthBackendArgs.builder()
.type("userpass")
.path("userpass")
.build());
var myDuo = new MfaDuo("myDuo", MfaDuoArgs.builder()
.name("my_duo")
.mountAccessor(userpass.accessor())
.secretKey("8C7THtrIigh2rPZQMbguugt8IUftWhMRCOBzbuyz")
.integrationKey("BIACEUEAXI20BNWTEYXT")
.apiHostname("api-2b5c39f5.duosecurity.com")
.build());
}
}
Content copied to clipboard
resources:
userpass:
type: vault:AuthBackend
properties:
type: userpass
path: userpass
myDuo:
type: vault:MfaDuo
name: my_duo
properties:
name: my_duo
mountAccessor: ${userpass.accessor}
secretKey: 8C7THtrIigh2rPZQMbguugt8IUftWhMRCOBzbuyz
integrationKey: BIACEUEAXI20BNWTEYXT
apiHostname: api-2b5c39f5.duosecurity.com
Content copied to clipboard
Import
Mounts can be imported using the path
, e.g.
$ pulumi import vault:index/mfaDuo:MfaDuo my_duo my_duo
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(apiHostname: Output<String>? = null, integrationKey: Output<String>? = null, mountAccessor: Output<String>? = null, name: Output<String>? = null, namespace: Output<String>? = null, pushInfo: Output<String>? = null, secretKey: Output<String>? = null, usernameFormat: Output<String>? = null)
Properties
Link copied to clipboard
(string: <required>)
- API hostname for Duo.
Link copied to clipboard
(string: <required>)
- Integration key for Duo.
Link copied to clipboard
(string: <required>)
- The mount to tie this method to for use in automatic mappings. The mapping will use the Name field of Aliases associated with this mount as the username in the mapping.
Link copied to clipboard
(string)
- A format string for mapping Identity names to MFA method names. Values to substitute should be placed in {{}}
. For example, "{{alias.name}}@example.com"
. If blank, the Alias's Name field will be used as-is. Currently-supported mappings: