CipherStash Docs
StackLatestTypes publicType aliases

ClientConfig

API reference for ClientConfig

@cipherstash/stack


Type Alias: ClientConfig

type ClientConfig = {
  workspaceCrn?: string;
  accessKey?: string;
  clientId?: string;
  clientKey?: string;
  keyset?: KeysetIdentifier;
};

Defined in: .tmp-stack/packages/stack/src/types.ts:43

Properties

workspaceCrn?

optional workspaceCrn: string;

Defined in: .tmp-stack/packages/stack/src/types.ts:50

The CipherStash workspace CRN (Cloud Resource Name). Format: crn:<region>.aws:<workspace-id>. Can also be set via the CS_WORKSPACE_CRN environment variable. If omitted, the SDK reads from the environment or TOML config files.


accessKey?

optional accessKey: string;

Defined in: .tmp-stack/packages/stack/src/types.ts:57

The API access key used for authenticating with the CipherStash API. Can also be set via the CS_CLIENT_ACCESS_KEY environment variable. Obtain this from the CipherStash dashboard after creating a workspace.


clientId?

optional clientId: string;

Defined in: .tmp-stack/packages/stack/src/types.ts:64

The client identifier used to authenticate with CipherStash services. Can also be set via the CS_CLIENT_ID environment variable. Generated during workspace onboarding in the CipherStash dashboard.


clientKey?

optional clientKey: string;

Defined in: .tmp-stack/packages/stack/src/types.ts:71

The client key material used in combination with ZeroKMS for encryption operations. Can also be set via the CS_CLIENT_KEY environment variable. Generated during workspace onboarding in the CipherStash dashboard.


keyset?

optional keyset: KeysetIdentifier;

Defined in: .tmp-stack/packages/stack/src/types.ts:79

An optional keyset identifier for multi-tenant encryption. Each keyset provides cryptographic isolation, giving each tenant its own keyspace. Specify by name ({ name: "tenant-a" }) or UUID ({ id: "..." }). Keysets are created and managed in the CipherStash dashboard.

On this page