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

# Assert Gateway Secret Strong • AI Agent SDK

> assert_gateway_secret_strong: Fail closed if ``value`` is a known-weak/placeholder gateway secret.

# assert\_gateway\_secret\_strong

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**protocols**](../modules/protocols) module.

Fail closed if `value` is a known-weak/placeholder gateway secret.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def assert_gateway_secret_strong(value: Optional[str]) -> None
```

## Parameters

<ParamField query="value" type="Optional[str]" required={true}>
  The resolved secret to validate.
</ParamField>

### Exceptions

<AccordionGroup>
  <Accordion title="WeakGatewaySecretError">
    If `value` matches a known-weak value.
  </Accordion>
</AccordionGroup>

## Uses

* `is_weak_secret`
* `WeakGatewaySecretError`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L2062">
  `praisonaiagents/gateway/protocols.py` at line 2062
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Gateway Feature" icon="tower-broadcast" href="/docs/docs/features/gateway" />
</CardGroup>
