---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Capabilities](/capabilities)
3.  Secrets Management

Back to Capabilities

# Secrets Management

Secure storage for API keys, credentials, and sensitive configuration with Fernet encryption and namespace isolation

[Configure Secrets](/start)

### Why do anything?

ML pipelines need API keys for external services (OpenAI, cloud storage, webhooks). Hardcoding credentials creates security risks and makes rotation difficult.

### Why now?

SOC 2-grade security requires encrypted credential storage with audit trails. Manual secret management doesn't scale across namespaces.

### Why this feature?

Fernet-encrypted secret storage with namespace isolation. Supports API keys (mxp\_sk\_, ret\_sk\_ prefixes), OAuth tokens, and vault references. Full audit logging of access patterns.

## How It Works

Secrets are encrypted at rest using Fernet symmetric encryption and stored in namespace-isolated MongoDB collections. Access is logged for compliance.

1

#### Encryption

Fernet symmetric encryption with organization-specific keys

2

#### Storage

Namespace-isolated MongoDB collection with encrypted payloads

3

#### Access Control

API key validation with namespace scope verification

4

#### Audit Logging

All secret access logged with timestamp, accessor, and action

### Why This Approach

Fernet provides authenticated encryption (confidentiality + integrity). Namespace isolation prevents cross-tenant access. Audit logging enables compliance reporting.

## Where This Is Used

[

Enterprise

#### Centralized Credential Management



](/enterprise)

[

Healthcare

#### HIPAA-Compliant Secret Storage



](/solutions/healthcare)

## Integration

PythonAPI

client.organizations.secrets.create(secret\_name="openai\_key", secret\_value="sk-...")

[View Documentation](https://mixpeek.com/docs/overview/concepts)

## Related Capabilities

[

prerequisite

#### Namespaces

Secrets are scoped to namespaces



](/capabilities/namespaces)

[

often combined

#### Webhooks

Webhooks use secrets for authentication



](/capabilities/webhooks)