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
Facilitate OPA decision correlation with business flows #3041
Open
JanardhanSharma
wants to merge
14
commits into
zalando:master
Choose a base branch
from
JanardhanSharma:facilitate-OPA-decision-correlation-with-business-flows
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Facilitate OPA decision correlation with business flows #3041
JanardhanSharma
wants to merge
14
commits into
zalando:master
from
JanardhanSharma:facilitate-OPA-decision-correlation-with-business-flows
+106
−15
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pushpalanka
reviewed
Apr 26, 2024
filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest_test.go
Outdated
Show resolved
Hide resolved
@JanardhanSharma please sign off your commits use |
szuecs
reviewed
Apr 26, 2024
JanardhanSharma
force-pushed
the
facilitate-OPA-decision-correlation-with-business-flows
branch
from
April 26, 2024 11:58
d3e8c4c
to
43f11eb
Compare
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
Signed-off-by: Magnus Jungsbluth <magnus.jungsbluth@zalando.de> Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
OpenTelemetry-OpenTracing bridge span kind can not be changed after creation, see open-telemetry/opentelemetry-go#3953 The workaround is to specify span kind on creation which works for both Open Tracing and Open Telemetry bridge spans. Note that this change removes non-standard "shedder" kind from spans created by `admissionControl` filter. Use operation name "admission_control" to query its spans instead if needed. For zalando#2104 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de> Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
Make `defaultConfig` return configuration equal to one created from default flags and modified by a helper function for defining expected test case values. Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de> Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
….sharma@outlook.com> Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
JanardhanSharma
force-pushed
the
facilitate-OPA-decision-correlation-with-business-flows
branch
from
April 26, 2024 17:07
65a1998
to
372e51e
Compare
szuecs
reviewed
Apr 29, 2024
|
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
@szuecs Could you may be add @mjungsbluth as reviewer as well, please. He can have a quick look as well. |
fixed |
mjungsbluth
reviewed
May 2, 2024
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
|
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
mjungsbluth
reviewed
May 6, 2024
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
szuecs
reviewed
May 10, 2024
szuecs
reviewed
May 10, 2024
Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Problem
Currently there is no recommended way of correlating OPA decisions with execution flows. This leaves the OPA integrators to take different approaches which could carry security risks and break as the platform evolves.
Correlation is required by two main use cases,
Solution
Improve the Skipper filter
opaAuthorizeRequest
to inject decisionID as an input to the policy. Add a new attribute to the filterMetadata calledopen_policy_agent
and under that add thedecision_id
.Similar solution for Envoy exists: open-policy-agent/opa#6519
Ref: dynamic meta-data
Changes
Decision id is added to the request object and is available to be used in the policies.