App Services Values and Secrets
Parent: MongoDB Atlas App Services · Published reference · snapshot 2026-10-15 · viability 3.00 / 5 (skip)
↓ Facts as markdownall context files
Depth-first rabbithole dossier for App Services Values and Secrets; source-anchored research pack.
These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.
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]
- [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]
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]
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]
- [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]
- [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]
- [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]
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
Children
- No children recorded.