> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# E_CHECK_SENSITIVE_INPUT

> A check: block reads the value of a sensitive input (@ui(sensitive=True) or @ui(widget="password")).

A `check:` block reads the value of a sensitive input (`@ui(sensitive=True)` or `@ui(widget="password")`). An install host keeps a sensitive value out of the render and passes a placeholder instead, so a check on the value tests the placeholder: a length check passes by chance and a pattern check always fails. `akua pkg check` reports it, `akua pkg publish` refuses it.

## How to fix it

Test a sensitive input only for presence and validate its value in the application:

```kcl theme={null}
check:
    api_key != "", "api_key is required"
```

Presence tests hold, because an empty value stays empty, an unset one stays unset and a set one stays non-empty: `x == ""`, `x != ""`, `x != None`, `x is not None`, `not x`, `x` as a condition, and `all v in [x, y] { v != "" }` (or `any`).

## Shape

```json theme={null}
{
  "level": "error",
  "code": "E_CHECK_SENSITIVE_INPUT",
  "message": "...",
  "docs": "https://docs.akua.dev/akua/errors/E_CHECK_SENSITIVE_INPUT"
}
```

## Related topics

> [card] [Error codes](https://docs.akua.dev/akua/errors.md)
>
> What each structured error means and how to resolve it.

> [card] [akua pkg commands](https://docs.akua.dev/akua/cli.md)
>
> Every command, the universal flags and the exit codes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.