Files
Chris Farhood 46d59b48b5 chore: migrate repository to privilegedescalation organization
Updated all GitHub URLs from cpfarhood to privilegedescalation organization:
- Repository URLs in package.json and Artifact Hub metadata
- Documentation links and references
- Git remote updated

No functional changes - this is purely an organizational migration.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-12 10:50:30 -05:00

1.3 KiB

Headlamp Sealed Secrets API v0.2.0


Headlamp Sealed Secrets API / lib/crypto / encryptValue

Function: encryptValue()

encryptValue(publicKey, value, namespace, name, key, scope): Result<Base64String, string>

Defined in: src/lib/crypto.ts:55

Encrypt a secret value using the kubeseal format

Parameters

publicKey

PublicKey

RSA public key from the controller's certificate

value

PlaintextValue

The plaintext secret value to encrypt (branded type)

namespace

string

The namespace (for strict/namespace-wide scoping)

name

string

The secret name (for strict scoping)

key

string

The key name within the secret

scope

SealedSecretScope

The encryption scope

Returns

Result<Base64String, string>

Result containing base64-encoded encrypted value or error message