Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata jwt failed status #419

Merged
merged 6 commits into from
Jul 24, 2024
Merged

Metadata jwt failed status #419

merged 6 commits into from
Jul 24, 2024

Conversation

kozjan
Copy link
Collaborator

@kozjan kozjan commented Jun 20, 2024

Add JWT failure reason to metadata and use it in jwt-status field on denied requests

Tested and got log:
{"time":"2024-07-18T10:43:59.510562439Z","level":"INFO","message":"blocked requests[1]: GET /service-mesh-service-second/resources/slow*, client: {MISSING}, ip: <hidden>, protocol: http, statusCode: 403, authority: <hidden>:31000, lua_authority: , jwt-token-status: Jwt is expired\nsampled requests[1]:\npath: /service-mesh-service-second/resources/slow?delayMs=100, ip: <hidden>, request id: <hidden>\n","logger":"envoy.OutputLog[incoming_permissions]","thread":"log-summarizer","first_request_time":"2024-07-18T12:43:51.920+02:00"}

@kozjan kozjan force-pushed the metadata-jwt-failed-status branch 5 times, most recently from bcc2420 to 08d964e Compare June 25, 2024 07:05
@kozjan kozjan changed the base branch from master to java-control-plane-1.0.45 June 25, 2024 07:06
@kozjan kozjan force-pushed the metadata-jwt-failed-status branch from 08d964e to 7c6c414 Compare June 25, 2024 10:03
@kozjan kozjan force-pushed the java-control-plane-1.0.45 branch from 71dd46a to ffc1ac0 Compare June 25, 2024 11:04
@kozjan kozjan marked this pull request as ready for review July 2, 2024 07:39
Ferdudas97
Ferdudas97 previously approved these changes Jul 4, 2024
@kozjan kozjan force-pushed the java-control-plane-1.0.45 branch from ffc1ac0 to 65c4f01 Compare July 4, 2024 13:04
@kozjan kozjan force-pushed the metadata-jwt-failed-status branch from 3c3a8f3 to 5b67453 Compare July 4, 2024 17:42
@kozjan kozjan force-pushed the java-control-plane-1.0.45 branch from 65c4f01 to 1fc756d Compare July 4, 2024 17:43
@kozjan kozjan force-pushed the metadata-jwt-failed-status branch 2 times, most recently from ef19cff to 75eb287 Compare July 4, 2024 17:47
@kozjan kozjan changed the base branch from java-control-plane-1.0.45 to master July 17, 2024 06:19
@kozjan kozjan dismissed stale reviews from nastassia-dailidava and Ferdudas97 July 17, 2024 06:19

The base branch was changed.

KSmigielski
KSmigielski previously approved these changes Jul 18, 2024
@kozjan kozjan force-pushed the metadata-jwt-failed-status branch 3 times, most recently from 0800a1d to 3e41da1 Compare July 22, 2024 12:27
@kozjan kozjan force-pushed the metadata-jwt-failed-status branch from 3e41da1 to b9b82a2 Compare July 23, 2024 06:33
@kozjan kozjan merged commit 875069b into master Jul 24, 2024
8 checks passed
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.

4 participants