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

add support for http mw in v2 version #30

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

cbarik-infoblox
Copy link

@cbarik-infoblox cbarik-infoblox commented Feb 1, 2024

Create a v2 version as specified in go.mod as github.com/infobloxopen/atlas-authz-middleware/v2

Since this version is specific to HTTP middleware without any support for grpc interceptors, for any consumer, who is supposed to use both grpc interceptor and http middleware, need to download both the versions (main and v2)

The middleware will validate the incoming HTTP requests by forwarding the endpoint and jwt token to the OPA engine running in the sidecar.

For the opa client, it expects a jwt token in the Authorization header, prefixed with Bearer and an optional X-Request-ID header.

Unauthorised requests will usually be rejected with a status of 401 Unauthorized

@cbarik-infoblox cbarik-infoblox changed the base branch from main to v2 February 6, 2024 12:59
@cbarik-infoblox cbarik-infoblox changed the title reorganize code for grpc and http mw in v2 folder reorganize code for grpc and http mw for v2 version Feb 6, 2024
@cbarik-infoblox cbarik-infoblox changed the title reorganize code for grpc and http mw for v2 version add support for http mw in v2 version Feb 7, 2024
common/authorizer/authorizer.go Outdated Show resolved Hide resolved
cmd/authz_mw_cli/authz_mw_cli.go Show resolved Hide resolved
@kumaya kumaya merged commit 515846d into infobloxopen:v2 Feb 8, 2024
2 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.

None yet

3 participants