<!-- llms-explorer concept facts · https://llms-explorer.com/tree/app-services-values-and-secrets/ · pack 2026-10-15 · ~840 tokens -->

# App Services Values and Secrets

> Depth-first rabbithole dossier for App Services Values and Secrets; source-anchored research pack.

Parent: [MongoDB Atlas App Services](https://llms-explorer.com/tree/mongodb-atlas-app-services/) · 3 facets · 7 facts · page: https://llms-explorer.com/tree/app-services-values-and-secrets/

## How it works

- [low] A Value is a named reference to static data stored by Atlas that can be accessed in Atlas Functions, resolving to either plain text (JSON object, array, or string) or a Secret. Sources: https://www.mongodb.com/docs/atlas/atlas-ui/triggers/functions/values.md — source: `~/.global-ai-hub/research/.pipeline/mongodb-2026-10-14/frb/app-services-values-and-secrets-8f4bd5ec63/rabbithole-synthesis.md#core`
- [low] You can access a Value's stored data from an Atlas Function using the context.values module. Sources: https://www.mongodb.com/docs/atlas/atlas-ui/triggers/functions/values.md — source: `~/.global-ai-hub/research/.pipeline/mongodb-2026-10-14/frb/app-services-values-and-secrets-8f4bd5ec63/rabbithole-synthesis.md#core`

## Problems, failure modes and limitations

- [low] Value names cannot exceed 64 characters, must start with a letter or number, and may only contain ASCII letters, numbers, underscores, and hyphens. Sources: https://www.mongodb.com/docs/atlas/atlas-ui/triggers/functions/values.md — source: `~/.global-ai-hub/research/.pipeline/mongodb-2026-10-14/frb/app-services-values-and-secrets-8f4bd5ec63/rabbithole-synthesis.md#core`

## Facts and statements

- [low] In previous MongoDB versions, Values and Secrets were distinct entities, allowing users to create secrets and link them to values. (verified as of 2026-10-15) Sources: https://www.mongodb.com/community/forums/t/using-secret-in-function-with-new-values-system/158875.json — source: `~/.global-ai-hub/research/.pipeline/mongodb-2026-10-14/frb/app-services-values-and-secrets-8f4bd5ec63/rabbithole-synthesis.md#core`
- [low] In newer MongoDB versions where secrets are values with a 'secret' type, users have reported inability to access newly created secrets in Realm functions. (verified as of 2026-10-15) Sources: https://www.mongodb.com/community/forums/t/using-secret-in-function-with-new-values-system/158875.json — source: `~/.global-ai-hub/research/.pipeline/mongodb-2026-10-14/frb/app-services-values-and-secrets-8f4bd5ec63/rabbithole-synthesis.md#troubleshooting`
- [low] To link a secret to a value in the Mongo console, first create a 'secret', then create a 'value' and choose 'link' to that secret. Sources: https://www.mongodb.com/community/forums/t/using-secret-in-function-with-new-values-system/158875.json — source: `~/.global-ai-hub/research/.pipeline/mongodb-2026-10-14/frb/app-services-values-and-secrets-8f4bd5ec63/rabbithole-synthesis.md#tools`
- [low] In a function, use context.values.get to retrieve the value, which in turn retrieves the linked secret. Sources: https://www.mongodb.com/community/forums/t/using-secret-in-function-with-new-values-system/158875.json — source: `~/.global-ai-hub/research/.pipeline/mongodb-2026-10-14/frb/app-services-values-and-secrets-8f4bd5ec63/rabbithole-synthesis.md#tools`

## Related concepts

- Values — is a part of App Services Values and Secrets
- and — is a part of App Services Values and Secrets
- Secrets — is a part of App Services Values and Secrets
