# Handling Secrets

### Dynamic Secret Substitution

<figure><img src="/files/AcFugaDlLUMDtyc4bniz" alt=""><figcaption></figcaption></figure>

Stakpak can read, compare, and write secret values without seeing them. Secrets are substituted at runtime and never exposed in logs or memory.

{% hint style="info" %}
To disable secret redaction, open your terminal and write `stakpak --disable-secret-redaction`
{% endhint %}

### Secure Password Generation

<figure><img src="/files/Y3Xme3SiOs2Smuttabsm" alt=""><figcaption></figcaption></figure>

Generate cryptographically secure passwords with configurable complexity

### Privacy Mode

<figure><img src="/files/35kcnvj3m964bdeKcrUO" alt=""><figcaption></figcaption></figure>

Redacts sensitive data like IP addresses and AWS account IDs

{% hint style="info" %}
To disable privacy mode, open your terminal and write `stakpak --privacy-mode`
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stakpak.gitbook.io/docs/how-it-works/handling-secrets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
