Skip to content

docs: add jwt_authn filter statistics section#43935

Merged
agrawroh merged 1 commit intoenvoyproxy:mainfrom
kovan:docs/jwt-authn-stats
Mar 13, 2026
Merged

docs: add jwt_authn filter statistics section#43935
agrawroh merged 1 commit intoenvoyproxy:mainfrom
kovan:docs/jwt-authn-stats

Conversation

@kovan
Copy link
Copy Markdown
Contributor

@kovan kovan commented Mar 12, 2026

Summary

Add a Statistics section to the jwt_authn filter documentation listing all 7 counter metrics defined in source/extensions/filters/http/jwt_authn/stats.h:

Metric Description
allowed Total requests that passed JWT authentication
denied Total requests that failed JWT authentication
cors_preflight_bypassed Total CORS preflight requests that bypassed JWT authentication
jwks_fetch_success Total successful JWKS remote fetches
jwks_fetch_failed Total failed JWKS remote fetch attempts
jwt_cache_hit Total JWT cache hits where a previously validated token was reused
jwt_cache_miss Total JWT cache misses requiring full token validation

Follows the same RST format (namespace description + csv-table) used by other filter docs (RBAC, local rate limit, ext_authz).

Test plan

  • Documentation builds correctly
  • Statistics table renders in the generated docs

Fixes #28051

The jwt_authn filter defines 7 counter metrics (allowed, denied,
cors_preflight_bypassed, jwks_fetch_success, jwks_fetch_failed,
jwt_cache_hit, jwt_cache_miss) but these are not documented.

Add a Statistics section following the same format used by other
filter docs (RBAC, local rate limit, ext_authz).

Fixes envoyproxy#28051

Signed-off-by: kovan <xaum.io@gmail.com>
@repokitteh-read-only
Copy link
Copy Markdown

Docs for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-cncf-pr/43935/docs/index.html

The docs are (re-)rendered each time the CI Envoy/Prechecks (docs) job completes.

🐱

Caused by: #43935 was opened by kovan.

see: more, trace.

@kovan kovan temporarily deployed to external-contributors March 12, 2026 23:45 — with GitHub Actions Inactive
@repokitteh-read-only
Copy link
Copy Markdown

Hi @kovan, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #43935 was opened by kovan.

see: more, trace.

@agrawroh agrawroh enabled auto-merge (squash) March 13, 2026 06:14
@agrawroh agrawroh merged commit 76f38f6 into envoyproxy:main Mar 13, 2026
28 checks passed
bmjask pushed a commit to bmjask/envoy that referenced this pull request Mar 14, 2026
## Summary
Add a Statistics section to the jwt_authn filter documentation listing
all 7 counter metrics defined in
`source/extensions/filters/http/jwt_authn/stats.h`:

| Metric | Description |
|--------|-------------|
| `allowed` | Total requests that passed JWT authentication |
| `denied` | Total requests that failed JWT authentication |
| `cors_preflight_bypassed` | Total CORS preflight requests that
bypassed JWT authentication |
| `jwks_fetch_success` | Total successful JWKS remote fetches |
| `jwks_fetch_failed` | Total failed JWKS remote fetch attempts |
| `jwt_cache_hit` | Total JWT cache hits where a previously validated
token was reused |
| `jwt_cache_miss` | Total JWT cache misses requiring full token
validation |

Follows the same RST format (namespace description + csv-table) used by
other filter docs (RBAC, local rate limit, ext_authz).

## Test plan
- [ ] Documentation builds correctly
- [ ] Statistics table renders in the generated docs

Fixes envoyproxy#28051

Signed-off-by: kovan <xaum.io@gmail.com>
Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
fishcakez pushed a commit to fishcakez/envoy that referenced this pull request Mar 25, 2026
## Summary
Add a Statistics section to the jwt_authn filter documentation listing
all 7 counter metrics defined in
`source/extensions/filters/http/jwt_authn/stats.h`:

| Metric | Description |
|--------|-------------|
| `allowed` | Total requests that passed JWT authentication |
| `denied` | Total requests that failed JWT authentication |
| `cors_preflight_bypassed` | Total CORS preflight requests that
bypassed JWT authentication |
| `jwks_fetch_success` | Total successful JWKS remote fetches |
| `jwks_fetch_failed` | Total failed JWKS remote fetch attempts |
| `jwt_cache_hit` | Total JWT cache hits where a previously validated
token was reused |
| `jwt_cache_miss` | Total JWT cache misses requiring full token
validation |

Follows the same RST format (namespace description + csv-table) used by
other filter docs (RBAC, local rate limit, ext_authz).

## Test plan
- [ ] Documentation builds correctly
- [ ] Statistics table renders in the generated docs

Fixes envoyproxy#28051

Signed-off-by: kovan <xaum.io@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs on jwt_authn metrics

2 participants