published on Saturday, Nov 21, 2026 by Pulumi
published on Saturday, Nov 21, 2026 by Pulumi
Allows for creating and managing ecdh-generated Realm keystores within Keycloak.
A realm keystore manages generated elliptic curve key pairs that are used by Keycloak to perform encryption with ECDH-ES based JWE algorithms.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as keycloak from "@pulumi/keycloak";
const realm = new keycloak.Realm("realm", {realm: "my-realm"});
const keystoreEcdhGenerated = new keycloak.RealmKeystoreEcdhGenerated("keystore_ecdh_generated", {
name: "my-ecdh-generated-key",
realmId: realm.id,
enabled: true,
active: true,
priority: 100,
ellipticCurveKey: "P-256",
algorithm: "ECDH-ES",
});
import pulumi
import pulumi_keycloak as keycloak
realm = keycloak.Realm("realm", realm="my-realm")
keystore_ecdh_generated = keycloak.RealmKeystoreEcdhGenerated("keystore_ecdh_generated",
name="my-ecdh-generated-key",
realm_id=realm.id,
enabled=True,
active=True,
priority=100,
elliptic_curve_key="P-256",
algorithm="ECDH-ES")
package main
import (
"github.com/pulumi/pulumi-keycloak/sdk/v6/go/keycloak"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
realm, err := keycloak.NewRealm(ctx, "realm", &keycloak.RealmArgs{
Realm: pulumi.String("my-realm"),
})
if err != nil {
return err
}
_, err = keycloak.NewRealmKeystoreEcdhGenerated(ctx, "keystore_ecdh_generated", &keycloak.RealmKeystoreEcdhGeneratedArgs{
Name: pulumi.String("my-ecdh-generated-key"),
RealmId: realm.ID(),
Enabled: pulumi.Bool(true),
Active: pulumi.Bool(true),
Priority: pulumi.Int(100),
EllipticCurveKey: pulumi.String("P-256"),
Algorithm: pulumi.String("ECDH-ES"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Keycloak = Pulumi.Keycloak;
return await Deployment.RunAsync(() =>
{
var realm = new Keycloak.Realm("realm", new()
{
RealmName = "my-realm",
});
var keystoreEcdhGenerated = new Keycloak.RealmKeystoreEcdhGenerated("keystore_ecdh_generated", new()
{
Name = "my-ecdh-generated-key",
RealmId = realm.Id,
Enabled = true,
Active = true,
Priority = 100,
EllipticCurveKey = "P-256",
Algorithm = "ECDH-ES",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.keycloak.Realm;
import com.pulumi.keycloak.RealmArgs;
import com.pulumi.keycloak.RealmKeystoreEcdhGenerated;
import com.pulumi.keycloak.RealmKeystoreEcdhGeneratedArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 realm = new Realm("realm", RealmArgs.builder()
.realm("my-realm")
.build());
var keystoreEcdhGenerated = new RealmKeystoreEcdhGenerated("keystoreEcdhGenerated", RealmKeystoreEcdhGeneratedArgs.builder()
.name("my-ecdh-generated-key")
.realmId(realm.id())
.enabled(true)
.active(true)
.priority(100)
.ellipticCurveKey("P-256")
.algorithm("ECDH-ES")
.build());
}
}
resources:
realm:
type: keycloak:Realm
properties:
realm: my-realm
keystoreEcdhGenerated:
type: keycloak:RealmKeystoreEcdhGenerated
name: keystore_ecdh_generated
properties:
name: my-ecdh-generated-key
realmId: ${realm.id}
enabled: true
active: true
priority: 100
ellipticCurveKey: P-256
algorithm: ECDH-ES
terraform {
required_providers {
keycloak = {
source = "pulumi/keycloak"
}
}
}
resource "keycloak_realm" "realm" {
lifecycle {
create_before_destroy = true
}
realm = "my-realm"
}
resource "keycloak_realm_keystore_ecdh_generated" "keystore_ecdh_generated" {
lifecycle {
create_before_destroy = true
}
name = "my-ecdh-generated-key"
realm_id = keycloak_realm.realm.id
enabled = true
active = true
priority = 100
elliptic_curve_key = "P-256"
algorithm = "ECDH-ES"
}
Create RealmKeystoreEcdhGenerated Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RealmKeystoreEcdhGenerated(name: string, args?: RealmKeystoreEcdhGeneratedArgs, opts?: CustomResourceOptions);@overload
def RealmKeystoreEcdhGenerated(resource_name: str,
args: Optional[RealmKeystoreEcdhGeneratedArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RealmKeystoreEcdhGenerated(resource_name: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
algorithm: Optional[str] = None,
elliptic_curve_key: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
realm_id: Optional[str] = None,
realm_internal_id: Optional[str] = None)func NewRealmKeystoreEcdhGenerated(ctx *Context, name string, args *RealmKeystoreEcdhGeneratedArgs, opts ...ResourceOption) (*RealmKeystoreEcdhGenerated, error)public RealmKeystoreEcdhGenerated(string name, RealmKeystoreEcdhGeneratedArgs? args = null, CustomResourceOptions? opts = null)
public RealmKeystoreEcdhGenerated(String name, RealmKeystoreEcdhGeneratedArgs args)
public RealmKeystoreEcdhGenerated(String name, RealmKeystoreEcdhGeneratedArgs args, CustomResourceOptions options)
type: keycloak:RealmKeystoreEcdhGenerated
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "keycloak_realm_keystore_ecdh_generated" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RealmKeystoreEcdhGeneratedArgs
- 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 RealmKeystoreEcdhGeneratedArgs
- 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 RealmKeystoreEcdhGeneratedArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RealmKeystoreEcdhGeneratedArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RealmKeystoreEcdhGeneratedArgs
- 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 realmKeystoreEcdhGeneratedResource = new Keycloak.RealmKeystoreEcdhGenerated("realmKeystoreEcdhGeneratedResource", new()
{
Active = false,
Algorithm = "string",
EllipticCurveKey = "string",
Enabled = false,
Name = "string",
Priority = 0,
RealmId = "string",
RealmInternalId = "string",
});
example, err := keycloak.NewRealmKeystoreEcdhGenerated(ctx, "realmKeystoreEcdhGeneratedResource", &keycloak.RealmKeystoreEcdhGeneratedArgs{
Active: pulumi.Bool(false),
Algorithm: pulumi.String("string"),
EllipticCurveKey: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Priority: pulumi.Int(0),
RealmId: pulumi.String("string"),
RealmInternalId: pulumi.String("string"),
})
resource "keycloak_realm_keystore_ecdh_generated" "realmKeystoreEcdhGeneratedResource" {
lifecycle {
create_before_destroy = true
}
active = false
algorithm = "string"
elliptic_curve_key = "string"
enabled = false
name = "string"
priority = 0
realm_id = "string"
realm_internal_id = "string"
}
var realmKeystoreEcdhGeneratedResource = new RealmKeystoreEcdhGenerated("realmKeystoreEcdhGeneratedResource", RealmKeystoreEcdhGeneratedArgs.builder()
.active(false)
.algorithm("string")
.ellipticCurveKey("string")
.enabled(false)
.name("string")
.priority(0)
.realmId("string")
.realmInternalId("string")
.build());
realm_keystore_ecdh_generated_resource = keycloak.RealmKeystoreEcdhGenerated("realmKeystoreEcdhGeneratedResource",
active=False,
algorithm="string",
elliptic_curve_key="string",
enabled=False,
name="string",
priority=0,
realm_id="string",
realm_internal_id="string")
const realmKeystoreEcdhGeneratedResource = new keycloak.RealmKeystoreEcdhGenerated("realmKeystoreEcdhGeneratedResource", {
active: false,
algorithm: "string",
ellipticCurveKey: "string",
enabled: false,
name: "string",
priority: 0,
realmId: "string",
realmInternalId: "string",
});
type: keycloak:RealmKeystoreEcdhGenerated
properties:
active: false
algorithm: string
ellipticCurveKey: string
enabled: false
name: string
priority: 0
realmId: string
realmInternalId: string
RealmKeystoreEcdhGenerated 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 RealmKeystoreEcdhGenerated resource accepts the following input properties:
- Active bool
- When
false, key is not used for encryption. Defaults totrue. - Algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- Elliptic
Curve stringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - Enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - Name string
- Display name of provider when linked in admin console.
- Priority int
- Priority for the provider. Defaults to
0. - Realm
Id string - The realm this keystore exists in.
- Realm
Internal stringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- Active bool
- When
false, key is not used for encryption. Defaults totrue. - Algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- Elliptic
Curve stringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - Enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - Name string
- Display name of provider when linked in admin console.
- Priority int
- Priority for the provider. Defaults to
0. - Realm
Id string - The realm this keystore exists in.
- Realm
Internal stringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active bool
- When
false, key is not used for encryption. Defaults totrue. - algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic_
curve_ stringkey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - name string
- Display name of provider when linked in admin console.
- priority number
- Priority for the provider. Defaults to
0. - realm_
id string - The realm this keystore exists in.
- realm_
internal_ stringid - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active Boolean
- When
false, key is not used for encryption. Defaults totrue. - algorithm String
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic
Curve StringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled Boolean
- When
false, key is not accessible in this realm. Defaults totrue. - name String
- Display name of provider when linked in admin console.
- priority Integer
- Priority for the provider. Defaults to
0. - realm
Id String - The realm this keystore exists in.
- realm
Internal StringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active boolean
- When
false, key is not used for encryption. Defaults totrue. - algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic
Curve stringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled boolean
- When
false, key is not accessible in this realm. Defaults totrue. - name string
- Display name of provider when linked in admin console.
- priority number
- Priority for the provider. Defaults to
0. - realm
Id string - The realm this keystore exists in.
- realm
Internal stringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active bool
- When
false, key is not used for encryption. Defaults totrue. - algorithm str
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic_
curve_ strkey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - name str
- Display name of provider when linked in admin console.
- priority int
- Priority for the provider. Defaults to
0. - realm_
id str - The realm this keystore exists in.
- realm_
internal_ strid - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active Boolean
- When
false, key is not used for encryption. Defaults totrue. - algorithm String
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic
Curve StringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled Boolean
- When
false, key is not accessible in this realm. Defaults totrue. - name String
- Display name of provider when linked in admin console.
- priority Number
- Priority for the provider. Defaults to
0. - realm
Id String - The realm this keystore exists in.
- realm
Internal StringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
Outputs
All input properties are implicitly available as output properties. Additionally, the RealmKeystoreEcdhGenerated 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 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 RealmKeystoreEcdhGenerated Resource
Get an existing RealmKeystoreEcdhGenerated 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?: RealmKeystoreEcdhGeneratedState, opts?: CustomResourceOptions): RealmKeystoreEcdhGenerated@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
algorithm: Optional[str] = None,
elliptic_curve_key: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
realm_id: Optional[str] = None,
realm_internal_id: Optional[str] = None) -> RealmKeystoreEcdhGeneratedfunc GetRealmKeystoreEcdhGenerated(ctx *Context, name string, id IDInput, state *RealmKeystoreEcdhGeneratedState, opts ...ResourceOption) (*RealmKeystoreEcdhGenerated, error)public static RealmKeystoreEcdhGenerated Get(string name, Input<string> id, RealmKeystoreEcdhGeneratedState? state, CustomResourceOptions? opts = null)public static RealmKeystoreEcdhGenerated get(String name, Output<String> id, RealmKeystoreEcdhGeneratedState state, CustomResourceOptions options)resources: existingRealmKeystoreEcdhGenerated: type: keycloak:RealmKeystoreEcdhGenerated get: id: ${id}import {
to = keycloak_realm_keystore_ecdh_generated.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state RealmKeystoreEcdhGeneratedState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state RealmKeystoreEcdhGeneratedState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state RealmKeystoreEcdhGeneratedState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state RealmKeystoreEcdhGeneratedState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Active bool
- When
false, key is not used for encryption. Defaults totrue. - Algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- Elliptic
Curve stringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - Enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - Name string
- Display name of provider when linked in admin console.
- Priority int
- Priority for the provider. Defaults to
0. - Realm
Id string - The realm this keystore exists in.
- Realm
Internal stringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- Active bool
- When
false, key is not used for encryption. Defaults totrue. - Algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- Elliptic
Curve stringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - Enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - Name string
- Display name of provider when linked in admin console.
- Priority int
- Priority for the provider. Defaults to
0. - Realm
Id string - The realm this keystore exists in.
- Realm
Internal stringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active bool
- When
false, key is not used for encryption. Defaults totrue. - algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic_
curve_ stringkey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - name string
- Display name of provider when linked in admin console.
- priority number
- Priority for the provider. Defaults to
0. - realm_
id string - The realm this keystore exists in.
- realm_
internal_ stringid - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active Boolean
- When
false, key is not used for encryption. Defaults totrue. - algorithm String
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic
Curve StringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled Boolean
- When
false, key is not accessible in this realm. Defaults totrue. - name String
- Display name of provider when linked in admin console.
- priority Integer
- Priority for the provider. Defaults to
0. - realm
Id String - The realm this keystore exists in.
- realm
Internal StringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active boolean
- When
false, key is not used for encryption. Defaults totrue. - algorithm string
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic
Curve stringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled boolean
- When
false, key is not accessible in this realm. Defaults totrue. - name string
- Display name of provider when linked in admin console.
- priority number
- Priority for the provider. Defaults to
0. - realm
Id string - The realm this keystore exists in.
- realm
Internal stringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active bool
- When
false, key is not used for encryption. Defaults totrue. - algorithm str
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic_
curve_ strkey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled bool
- When
false, key is not accessible in this realm. Defaults totrue. - name str
- Display name of provider when linked in admin console.
- priority int
- Priority for the provider. Defaults to
0. - realm_
id str - The realm this keystore exists in.
- realm_
internal_ strid - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
- active Boolean
- When
false, key is not used for encryption. Defaults totrue. - algorithm String
Algorithm for processing the Content Encryption Key. Possible values are
ECDH-ES,ECDH-ES+A128KW,ECDH-ES+A192KWandECDH-ES+A256KW. Defaults toECDH-ES.Changing
ellipticCurveKeymakes Keycloak generate a new key pair, which gets a new key ID (kid). Changes to the other arguments keep the existing key pair.- elliptic
Curve StringKey - Elliptic Curve used in ECDH. Possible values are
P-256,P-384andP-521. Defaults toP-256. - enabled Boolean
- When
false, key is not accessible in this realm. Defaults totrue. - name String
- Display name of provider when linked in admin console.
- priority Number
- Priority for the provider. Defaults to
0. - realm
Id String - The realm this keystore exists in.
- realm
Internal StringId - The internal id of the realm, as an alternative to realm_id. Unlike the realm name, it does not change when the realm is renamed.
Import
Realm keys can be imported using realm name and keystore id, you can find it in web UI.
Example:
$ pulumi import keycloak:index/realmKeystoreEcdhGenerated:RealmKeystoreEcdhGenerated keystore_ecdh_generated my-realm/618cfba7-49aa-4c09-9a19-2f699b576f0b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Keycloak pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloakTerraform Provider.
published on Saturday, Nov 21, 2026 by Pulumi