Create opaque credential references
Declare system, environment, managed file and explicit dotenv references without resolving values or reading credentials.
// Runnable without configured credentials: creates references and prints opaque handles.
// No store is read, no credential is written, and no network request is made.
import aner.secrets
let stored = secrets.stored("example-service-key")
let environment = secrets.env("EXAMPLE_SERVICE_KEY")
let managed_file = secrets.file("example-service-key")
let project_file = secrets.dotenv(path: ".env.local", name: "EXAMPLE_SERVICE_KEY")
print(stored)
print(environment)
print(managed_file)
print(project_file)
Make it your experiment.
Use Aner 0.0.3 or newer. Save this program as examples/secrets_references.aner inside a folder for your experiment. Open a terminal in that folder, then check and run the program.
aner check examples/secrets_references.aner
aner run examples/secrets_references.anerThe aner command must be on your PATH. Follow the installation guide if your terminal cannot find it.
Use Aner 0.0.4 or newer with secrets.dotenv support. This reference only example sends no network request and does not resolve or display credentials; none of the referenced stores, variables or project files must exist to run it.
Bundled datasets retain their own source attribution and license notices. Example outcomes are not comparative benchmarks or evidence of clinical validity.
Dataset sources & attribution