1. Packages
  2. FusionAuth
  3. API Docs
  4. FusionAuthImportedKey
FusionAuth v6.0.2 published on Sunday, Feb 9, 2025 by Theo Gravity

fusionauth.FusionAuthImportedKey

Explore with Pulumi AI

# Imported Key Resource

Cryptographic keys are used in signing and verifying JWTs and verifying responses for third party identity providers. It is more likely you will interact with keys using the FusionAuth UI in the Key Master menu.

Keys API

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as fusionauth from "pulumi-fusionauth";

const name = new fusionauth.FusionAuthImportedKey("name", {
    kid: "8675309",
    privateKey: fs.readFileSync("./AuthKey_8675309.p8", "utf8"),
});
Copy
import pulumi
import theogravity_pulumi_fusionauth as fusionauth

name = fusionauth.FusionAuthImportedKey("name",
    kid="8675309",
    private_key=(lambda path: open(path).read())("./AuthKey_8675309.p8"))
Copy
package main

import (
	"os"

	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)

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 := fusionauth.NewFusionAuthImportedKey(ctx, "name", &fusionauth.FusionAuthImportedKeyArgs{
			Kid:        pulumi.String("8675309"),
			PrivateKey: pulumi.String(readFileOrPanic("./AuthKey_8675309.p8")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Fusionauth = theogravity.Fusionauth;

return await Deployment.RunAsync(() => 
{
    var name = new Fusionauth.FusionAuthImportedKey("name", new()
    {
        Kid = "8675309",
        PrivateKey = File.ReadAllText("./AuthKey_8675309.p8"),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fusionauth.FusionAuthImportedKey;
import com.pulumi.fusionauth.FusionAuthImportedKeyArgs;
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 name = new FusionAuthImportedKey("name", FusionAuthImportedKeyArgs.builder()
            .kid("8675309")
            .privateKey(Files.readString(Paths.get("./AuthKey_8675309.p8")))
            .build());

    }
}
Copy
resources:
  name:
    type: fusionauth:FusionAuthImportedKey
    properties:
      kid: '8675309'
      privateKey:
        fn::readFile: ./AuthKey_8675309.p8
Copy

Create FusionAuthImportedKey Resource

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

Constructor syntax

new FusionAuthImportedKey(name: string, args?: FusionAuthImportedKeyArgs, opts?: CustomResourceOptions);
@overload
def FusionAuthImportedKey(resource_name: str,
                          args: Optional[FusionAuthImportedKeyArgs] = None,
                          opts: Optional[ResourceOptions] = None)

@overload
def FusionAuthImportedKey(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          algorithm: Optional[str] = None,
                          certificate: Optional[str] = None,
                          key_id: Optional[str] = None,
                          kid: Optional[str] = None,
                          name: Optional[str] = None,
                          private_key: Optional[str] = None,
                          public_key: Optional[str] = None,
                          secret: Optional[str] = None,
                          type: Optional[str] = None)
func NewFusionAuthImportedKey(ctx *Context, name string, args *FusionAuthImportedKeyArgs, opts ...ResourceOption) (*FusionAuthImportedKey, error)
public FusionAuthImportedKey(string name, FusionAuthImportedKeyArgs? args = null, CustomResourceOptions? opts = null)
public FusionAuthImportedKey(String name, FusionAuthImportedKeyArgs args)
public FusionAuthImportedKey(String name, FusionAuthImportedKeyArgs args, CustomResourceOptions options)
type: fusionauth:FusionAuthImportedKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

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

var fusionAuthImportedKeyResource = new Fusionauth.FusionAuthImportedKey("fusionAuthImportedKeyResource", new()
{
    Algorithm = "string",
    Certificate = "string",
    KeyId = "string",
    Kid = "string",
    Name = "string",
    PrivateKey = "string",
    PublicKey = "string",
    Secret = "string",
    Type = "string",
});
Copy
example, err := fusionauth.NewFusionAuthImportedKey(ctx, "fusionAuthImportedKeyResource", &fusionauth.FusionAuthImportedKeyArgs{
	Algorithm:   pulumi.String("string"),
	Certificate: pulumi.String("string"),
	KeyId:       pulumi.String("string"),
	Kid:         pulumi.String("string"),
	Name:        pulumi.String("string"),
	PrivateKey:  pulumi.String("string"),
	PublicKey:   pulumi.String("string"),
	Secret:      pulumi.String("string"),
	Type:        pulumi.String("string"),
})
Copy
var fusionAuthImportedKeyResource = new FusionAuthImportedKey("fusionAuthImportedKeyResource", FusionAuthImportedKeyArgs.builder()
    .algorithm("string")
    .certificate("string")
    .keyId("string")
    .kid("string")
    .name("string")
    .privateKey("string")
    .publicKey("string")
    .secret("string")
    .type("string")
    .build());
Copy
fusion_auth_imported_key_resource = fusionauth.FusionAuthImportedKey("fusionAuthImportedKeyResource",
    algorithm="string",
    certificate="string",
    key_id="string",
    kid="string",
    name="string",
    private_key="string",
    public_key="string",
    secret="string",
    type="string")
Copy
const fusionAuthImportedKeyResource = new fusionauth.FusionAuthImportedKey("fusionAuthImportedKeyResource", {
    algorithm: "string",
    certificate: "string",
    keyId: "string",
    kid: "string",
    name: "string",
    privateKey: "string",
    publicKey: "string",
    secret: "string",
    type: "string",
});
Copy
type: fusionauth:FusionAuthImportedKey
properties:
    algorithm: string
    certificate: string
    keyId: string
    kid: string
    name: string
    privateKey: string
    publicKey: string
    secret: string
    type: string
Copy

FusionAuthImportedKey Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The FusionAuthImportedKey resource accepts the following input properties:

Algorithm Changes to this property will trigger replacement. string
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
Certificate Changes to this property will trigger replacement. string
The certificate to import. The publicKey will be extracted from the certificate.
KeyId string
The Id to use for the new key. If not specified a secure random UUID will be generated.
Kid Changes to this property will trigger replacement. string
The Key identifier 'kid'.
Name string
The name of the Key.
PrivateKey Changes to this property will trigger replacement. string
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
PublicKey Changes to this property will trigger replacement. string
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
Secret Changes to this property will trigger replacement. string
The Key secret. This field is required if importing an HMAC key type.
Type Changes to this property will trigger replacement. string
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
Algorithm Changes to this property will trigger replacement. string
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
Certificate Changes to this property will trigger replacement. string
The certificate to import. The publicKey will be extracted from the certificate.
KeyId string
The Id to use for the new key. If not specified a secure random UUID will be generated.
Kid Changes to this property will trigger replacement. string
The Key identifier 'kid'.
Name string
The name of the Key.
PrivateKey Changes to this property will trigger replacement. string
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
PublicKey Changes to this property will trigger replacement. string
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
Secret Changes to this property will trigger replacement. string
The Key secret. This field is required if importing an HMAC key type.
Type Changes to this property will trigger replacement. string
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. String
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. String
The certificate to import. The publicKey will be extracted from the certificate.
keyId String
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. String
The Key identifier 'kid'.
name String
The name of the Key.
privateKey Changes to this property will trigger replacement. String
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
publicKey Changes to this property will trigger replacement. String
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. String
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. String
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. string
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. string
The certificate to import. The publicKey will be extracted from the certificate.
keyId string
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. string
The Key identifier 'kid'.
name string
The name of the Key.
privateKey Changes to this property will trigger replacement. string
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
publicKey Changes to this property will trigger replacement. string
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. string
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. string
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. str
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. str
The certificate to import. The publicKey will be extracted from the certificate.
key_id str
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. str
The Key identifier 'kid'.
name str
The name of the Key.
private_key Changes to this property will trigger replacement. str
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
public_key Changes to this property will trigger replacement. str
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. str
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. str
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. String
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. String
The certificate to import. The publicKey will be extracted from the certificate.
keyId String
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. String
The Key identifier 'kid'.
name String
The name of the Key.
privateKey Changes to this property will trigger replacement. String
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
publicKey Changes to this property will trigger replacement. String
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. String
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. String
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing FusionAuthImportedKey Resource

Get an existing FusionAuthImportedKey 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?: FusionAuthImportedKeyState, opts?: CustomResourceOptions): FusionAuthImportedKey
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        algorithm: Optional[str] = None,
        certificate: Optional[str] = None,
        key_id: Optional[str] = None,
        kid: Optional[str] = None,
        name: Optional[str] = None,
        private_key: Optional[str] = None,
        public_key: Optional[str] = None,
        secret: Optional[str] = None,
        type: Optional[str] = None) -> FusionAuthImportedKey
func GetFusionAuthImportedKey(ctx *Context, name string, id IDInput, state *FusionAuthImportedKeyState, opts ...ResourceOption) (*FusionAuthImportedKey, error)
public static FusionAuthImportedKey Get(string name, Input<string> id, FusionAuthImportedKeyState? state, CustomResourceOptions? opts = null)
public static FusionAuthImportedKey get(String name, Output<String> id, FusionAuthImportedKeyState state, CustomResourceOptions options)
resources:  _:    type: fusionauth:FusionAuthImportedKey    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Algorithm Changes to this property will trigger replacement. string
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
Certificate Changes to this property will trigger replacement. string
The certificate to import. The publicKey will be extracted from the certificate.
KeyId string
The Id to use for the new key. If not specified a secure random UUID will be generated.
Kid Changes to this property will trigger replacement. string
The Key identifier 'kid'.
Name string
The name of the Key.
PrivateKey Changes to this property will trigger replacement. string
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
PublicKey Changes to this property will trigger replacement. string
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
Secret Changes to this property will trigger replacement. string
The Key secret. This field is required if importing an HMAC key type.
Type Changes to this property will trigger replacement. string
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
Algorithm Changes to this property will trigger replacement. string
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
Certificate Changes to this property will trigger replacement. string
The certificate to import. The publicKey will be extracted from the certificate.
KeyId string
The Id to use for the new key. If not specified a secure random UUID will be generated.
Kid Changes to this property will trigger replacement. string
The Key identifier 'kid'.
Name string
The name of the Key.
PrivateKey Changes to this property will trigger replacement. string
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
PublicKey Changes to this property will trigger replacement. string
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
Secret Changes to this property will trigger replacement. string
The Key secret. This field is required if importing an HMAC key type.
Type Changes to this property will trigger replacement. string
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. String
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. String
The certificate to import. The publicKey will be extracted from the certificate.
keyId String
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. String
The Key identifier 'kid'.
name String
The name of the Key.
privateKey Changes to this property will trigger replacement. String
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
publicKey Changes to this property will trigger replacement. String
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. String
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. String
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. string
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. string
The certificate to import. The publicKey will be extracted from the certificate.
keyId string
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. string
The Key identifier 'kid'.
name string
The name of the Key.
privateKey Changes to this property will trigger replacement. string
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
publicKey Changes to this property will trigger replacement. string
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. string
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. string
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. str
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. str
The certificate to import. The publicKey will be extracted from the certificate.
key_id str
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. str
The Key identifier 'kid'.
name str
The name of the Key.
private_key Changes to this property will trigger replacement. str
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
public_key Changes to this property will trigger replacement. str
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. str
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. str
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC
algorithm Changes to this property will trigger replacement. String
The algorithm used to encrypt the Key. The following values represent algorithms supported by FusionAuth:

  • ES256 - ECDSA using P-256 curve and SHA-256 hash algorithm
  • ES384 - ECDSA using P-384 curve and SHA-384 hash algorithm
  • ES512 - ECDSA using P-521 curve and SHA-512 hash algorithm
  • RS256 - RSA using SHA-256 hash algorithm
  • RS384 - RSA using SHA-384 hash algorithm
  • RS512 - RSA using SHA-512 hash algorithm
  • HS256 - HMAC using SHA-256 hash algorithm
  • HS384 - HMAC using SHA-384 hash algorithm
  • HS512 - HMAC using SHA-512 hash algorithm
certificate Changes to this property will trigger replacement. String
The certificate to import. The publicKey will be extracted from the certificate.
keyId String
The Id to use for the new key. If not specified a secure random UUID will be generated.
kid Changes to this property will trigger replacement. String
The Key identifier 'kid'.
name String
The name of the Key.
privateKey Changes to this property will trigger replacement. String
The Key private key. Optional if importing an RSA or EC key. If the key is only to be used for token validation, only a public key is necessary and this field may be omitted.
publicKey Changes to this property will trigger replacement. String
"The Key public key. Required if importing an RSA or EC key and a certificate is not provided."
secret Changes to this property will trigger replacement. String
The Key secret. This field is required if importing an HMAC key type.
type Changes to this property will trigger replacement. String
The Key type. This field is required if importing an HMAC key type, or if importing a public key / private key pair. The possible values are:

  • EC
  • RSA
  • HMAC

Package Details

Repository
fusionauth theogravity/pulumi-fusionauth
License
MIT
Notes
This Pulumi package is based on the fusionauth Terraform Provider.