# SecretValueInEnv

> Secret values reach a Job or Sandbox only through secrets or valueFrom.secretKeyRef, never as literals.

Source: https://nodus-platform-site.pages.dev/docs/reference/errors/secret-value-in-env/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

<!-- Code generated by tools/errgen. DO NOT EDIT. -->

**HTTP status:** 422 · **Retryable:** no

Secret values reach a Job or Sandbox only through secrets or valueFrom.secretKeyRef, never as literals.

## Message

```text
env contains the value of a Secret{where}
```

## What to do

reference the Secret with valueFrom.secretKeyRef or list it under secrets

## On the wire

The response is a Kubernetes `Status` with `reason: SecretValueInEnv` and `code: 422`, plus `fix`, `docs` (this page) and `requestId`. `details.causes` lists the fields involved, when there are any. The CLI prints the fix and the request id; the Python SDK raises `nodus.errors.SecretValueInEnv`.
