> For the complete documentation index, see [llms.txt](https://docs.healthuniverse.com/overview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.healthuniverse.com/overview/building-apps-in-health-universe/deploying-your-app-to-health-universe/secret-management.md). Agents can also search and read this documentation through its [MCP server](https://docs.healthuniverse.com/overview/~gitbook/mcp).

# Secret Management

If you have API keys or database passwords that you cannot store in your public GitHub repository, you should create a secret and access it in your code using the following approach. For example, if you want to access a private database, or use an LLM like ChatGPT, you'll need to have API keys to manage access.

**1)** First click **Deployments** on the top right of the navigation bar.

<figure><img src="https://1951440936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS80fbh8wWG71Qtm77IKh%2Fuploads%2FjIhdZzwJdzsfBlYEThGT%2FScreenshot%202025-05-28%20at%2010.37.25%E2%80%AFAM.png?alt=media&amp;token=48295e92-54ac-4491-8101-db8efed0db2c" alt=""><figcaption></figcaption></figure>

**2)** Click the **production box**

<figure><img src="https://1951440936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS80fbh8wWG71Qtm77IKh%2Fuploads%2FyHL6aulObdkKGEjG6H22%2FScreenshot%202025-05-28%20at%2010.41.11%E2%80%AFAM.png?alt=media&amp;token=b676b36c-d6f0-4e95-9595-1f971ab3e605" alt=""><figcaption></figcaption></figure>

**3)** Click the **secrets dropdown box**

<figure><img src="https://1951440936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS80fbh8wWG71Qtm77IKh%2Fuploads%2FicVTmFuv6AmrXSXnYa75%2FScreenshot%202025-05-28%20at%2010.42.20%E2%80%AFAM.png?alt=media&amp;token=94d7c326-c045-4ea3-814e-c762b320080d" alt=""><figcaption></figcaption></figure>

**4)** Click the **secrets dropdown box**

* Here you can create a secret using this form
* Important: Secrets can contain letters, numbers or the "-" and "\_" characters only. They must start with a letter or number. Access your secret using UPPERCASE from your code.

  ```
  import os
  foo = os.environ.get("FOO")
  ```
* Note, when you access a secret using os.environ.get() you access the secret using UPPERCASE variable names. If you do not use uppercase, you will not be able to access your secret.

<figure><img src="https://1951440936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS80fbh8wWG71Qtm77IKh%2Fuploads%2F2aryB6PduNryUYxzfkcT%2Fimage.png?alt=media&amp;token=c733dc87-3997-4824-bf94-762bde9578f0" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.healthuniverse.com/overview/building-apps-in-health-universe/deploying-your-app-to-health-universe/secret-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
