Basic concepts
Last updated on
This page explains the cryptographic key flow of Client-Side Encryption (CSE) with STACKIT KACLS and outlines the shared responsibility model between STACKIT and your organization.
Decryption flow
Section titled “Decryption flow”When a user creates encrypted content, the browser locally encrypts the data with an ephemeral Data Encryption Key (DEK) and requests STACKIT KACLS to encrypt (wrap) that key before uploading the ciphertext and wrapped key (wDEK) to Google Workspace.
When an authorized user opens an encrypted document, the reverse unwrap and decryption sequence executes in five steps across your browser, your Identity Provider (IdP), Google Workspace, and STACKIT KACLS:
- Authenticate (OIDC): The user browser authenticates against the Customer IdP via OpenID Connect (OIDC) and receives a cryptographically signed authentication token (
IdP Auth JWT). - Request encrypted document: The browser requests the document from Google Workspace. Google evaluates the file-level access control lists (ACLs) and returns the encrypted payload (
ciphertext), the wrapped Data Encryption Key (wDEK), and a Google-signed authorization token (GWS Auth JWT). - Request key unwrap (
POST /v1/unwrap): The browser sends the unwrap request containing thewDEKand both JWTs over an encrypted TLS channel directly to STACKIT KACLS, which performs three internal steps:- Signature and ingress policy validation: Verifies both JWT signatures against their respective public keys (JWKS), enforces exact cross-token identity matching (such as the
emailclaim), validates resource scoping (resource_name), and checks tenant perimeter policies (allowed owner domains, client IDs, and guest IdP isolation). - Master key retrieval: Fetches the tenant-specific Key Encryption Key (KEK) from the isolated STACKIT Secrets / KMS infrastructure.
- In-memory key unwrapping: Unwraps the
wDEKstrictly within ephemeral RAM.
- Signature and ingress policy validation: Verifies both JWT signatures against their respective public keys (JWKS), enforces exact cross-token identity matching (such as the
- Return plaintext DEK and flush RAM: STACKIT KACLS returns the plaintext
DEKto the client browser over TLS and immediately flushes theDEKfrom ephemeral RAM. The unencryptedDEKis never persisted to disk or exposed to logging systems, and Google at no point possesses, processes, or sees it. - Local decryption: The client browser decrypts the ciphertext locally (
Ciphertext + DEK = Plaintext) and renders the document exclusively in volatile browser memory. Plaintext document content is never transmitted to, stored by, or processed on either Google’s or STACKIT’s infrastructure (see Architecture concepts).

Shared responsibility
Section titled “Shared responsibility”To get started, you provide your initial IdP and domain parameters to STACKIT as described in Request a new CSE instance. STACKIT then provisions and operates a dedicated STACKIT KACLS instance for your organization.
Security and compliance in a CSE environment rely on a clear division of responsibilities:
- STACKIT responsibilities: Operating and patching your dedicated STACKIT KACLS cluster, safeguarding tenant-isolated Key Encryption Keys (KEKs) in STACKIT Secrets / KMS, enforcing dual-token cryptographic verification, and maintaining immutable audit logs.
- Your responsibilities: Securing and operating your external Identity Provider (including user authentication policies, MFA, and credential protection), configuring CSE assignments and access controls in Google Workspace (unless you request STACKIT to handle initial setup; see Configure Google Workspace), managing user S/MIME certificates if enabled, and migrating or decrypting protected data prior to offboarding.