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

OPA: Add response status to control plane traces #3118

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

mjungsbluth
Copy link
Collaborator

@mjungsbluth mjungsbluth commented Jun 19, 2024

The current span for control plane requests of the Open Policy Agent based filters does not include the actual response from the control plane.

Apart from hard network errors this makes it hard to pinpoint authN / authZ failures or intermittent unavailability (5xx status) of the control plane.

This PR both adds the control plane responses' http status code to the spans and also flags them as erroneous for all status with a value of 4xx or 5xx.

Signed-off-by: Magnus Jungsbluth <magnus.jungsbluth@zalando.de>
@AlexanderYastrebov AlexanderYastrebov added the minor no risk changes, for example new filters label Jun 19, 2024
@AlexanderYastrebov
Copy link
Member

👍

@MustafaSaber
Copy link
Member

Does this needs to be reflected in Open Policy Agent span docs?

@szuecs
Copy link
Member

szuecs commented Jun 19, 2024

👍

@szuecs
Copy link
Member

szuecs commented Jun 19, 2024

Does this needs to be reflected in Open Policy Agent span docs?

let's document operations things if we have more experience with operating it.

@szuecs szuecs merged commit ff44b6d into master Jun 19, 2024
13 of 14 checks passed
@szuecs szuecs deleted the opa_enhance_control_plane_tracing branch June 19, 2024 11:00
MustafaSaber referenced this pull request in zalando-incubator/kubernetes-on-aws Jun 20, 2024
* \[docs: cleanup deprecated -lb-healthcheck-interval flag\]\(https://github.com/zalando/skipper/pull/3099\)
* \[build(deps): bump amazonlinux from 5478f82 to 0d172f8 in /fuzz \]\(https://github.com/zalando/skipper/pull/3105\)
* \[build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0\]\(\zalando/skipper#3100)
* \[build(deps): bump github.com/instana/go-sensor from 1.62.1 to 1.63.0\]\(https://github.com/zalando/skipper/pull/3104\)
* \[build(deps): bump golang.org/x/oauth2 from 0.20.0 to 0.21.0\]\(https://github.com/zalando/skipper/pull/3102\)
* \[build(deps): bump docker/build-push-action from 5.3.0 to 5.4.0\]\(https://github.com/zalando/skipper/pull/3106\)
* \[build(deps): bump github.com/miekg/dns from 1.1.59 to 1.1.61\]\(https://github.com/zalando/skipper/pull/3109\)
* \[build(deps): bump github.com/redis/go-redis/v9 from 9.5.2 to 9.5.3\]\(https://github.com/zalando/skipper/pull/3110\)
* \[build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2\]\(https://github.com/zalando/skipper/pull/3108\)
* \[routing: log route update id\]\(https://github.com/zalando/skipper/pull/3112\)
* \[build(deps): bump actions/checkout from 4.1.6 to 4.1.7\]\(https://github.com/zalando/skipper/pull/3107\)
* \[routing: measure route update latency\]\(https://github.com/zalando/skipper/pull/3113\)
* \[doc: mention DCO and what to do in your commit\]\(https://github.com/zalando/skipper/pull/3114\)
* \[routing: refactor update id logging\]\(https://github.com/zalando/skipper/pull/3116\)
* \[OPA: Add response status to control plane traces\]\(https://github.com/zalando/skipper/pull/3118\)
* \[routing: measure CreateFilter latency\]\(https://github.com/zalando/skipper/pull/3115\)

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
MustafaSaber added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Jun 20, 2024
* docs: cleanup deprecated -lb-healthcheck-interval flag: zalando/skipper#3099
* build(deps): bump amazonlinux from 5478f82 to 0d172f8 in /fuzz: zalando/skipper#3105
* build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0: zalando/skipper#3100
* build(deps): bump github.com/instana/go-sensor from 1.62.1 to 1.63.0: zalando/skipper#3104
* build(deps): bump golang.org/x/oauth2 from 0.20.0 to 0.21.0: zalando/skipper#3102
* build(deps): bump docker/build-push-action from 5.3.0 to 5.4.0: zalando/skipper#3106
* build(deps): bump github.com/miekg/dns from 1.1.59 to 1.1.61: zalando/skipper#3109
* build(deps): bump github.com/redis/go-redis/v9 from 9.5.2 to 9.5.3: zalando/skipper#3110
* build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2: zalando/skipper#3108
* routing: log route update id: zalando/skipper#3112
* build(deps): bump actions/checkout from 4.1.6 to 4.1.7: zalando/skipper#3107
* routing: measure route update latency: zalando/skipper#3113
* doc: mention DCO and what to do in your commit: zalando/skipper#3114
* routing: refactor update id logging: zalando/skipper#3116
* OPA: Add response status to control plane traces: zalando/skipper#3118
* routing: measure CreateFilter latency: zalando/skipper#3115

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
MustafaSaber added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Jun 20, 2024
* docs: cleanup deprecated -lb-healthcheck-interval flag: zalando/skipper#3099
* build(deps): bump amazonlinux from 5478f82 to 0d172f8 in /fuzz: zalando/skipper#3105
* build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0: zalando/skipper#3100
* build(deps): bump github.com/instana/go-sensor from 1.62.1 to 1.63.0: zalando/skipper#3104
* build(deps): bump golang.org/x/oauth2 from 0.20.0 to 0.21.0: zalando/skipper#3102
* build(deps): bump docker/build-push-action from 5.3.0 to 5.4.0: zalando/skipper#3106
* build(deps): bump github.com/miekg/dns from 1.1.59 to 1.1.61: zalando/skipper#3109
* build(deps): bump github.com/redis/go-redis/v9 from 9.5.2 to 9.5.3: zalando/skipper#3110
* build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2: zalando/skipper#3108
* routing: log route update id: zalando/skipper#3112
* build(deps): bump actions/checkout from 4.1.6 to 4.1.7: zalando/skipper#3107
* routing: measure route update latency: zalando/skipper#3113
* doc: mention DCO and what to do in your commit: zalando/skipper#3114
* routing: refactor update id logging: zalando/skipper#3116
* OPA: Add response status to control plane traces: zalando/skipper#3118
* routing: measure CreateFilter latency: zalando/skipper#3115

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
MustafaSaber added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Jun 20, 2024
* docs: cleanup deprecated -lb-healthcheck-interval flag: zalando/skipper#3099
* build(deps): bump amazonlinux from 5478f82 to 0d172f8 in /fuzz: zalando/skipper#3105
* build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0: zalando/skipper#3100
* build(deps): bump github.com/instana/go-sensor from 1.62.1 to 1.63.0: zalando/skipper#3104
* build(deps): bump golang.org/x/oauth2 from 0.20.0 to 0.21.0: zalando/skipper#3102
* build(deps): bump docker/build-push-action from 5.3.0 to 5.4.0: zalando/skipper#3106
* build(deps): bump github.com/miekg/dns from 1.1.59 to 1.1.61: zalando/skipper#3109
* build(deps): bump github.com/redis/go-redis/v9 from 9.5.2 to 9.5.3: zalando/skipper#3110
* build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2: zalando/skipper#3108
* routing: log route update id: zalando/skipper#3112
* build(deps): bump actions/checkout from 4.1.6 to 4.1.7: zalando/skipper#3107
* routing: measure route update latency: zalando/skipper#3113
* doc: mention DCO and what to do in your commit: zalando/skipper#3114
* routing: refactor update id logging: zalando/skipper#3116
* OPA: Add response status to control plane traces: zalando/skipper#3118
* routing: measure CreateFilter latency: zalando/skipper#3115

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
MustafaSaber added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Jun 20, 2024
* docs: cleanup deprecated -lb-healthcheck-interval flag: zalando/skipper#3099
* build(deps): bump amazonlinux from 5478f82 to 0d172f8 in /fuzz: zalando/skipper#3105
* build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0: zalando/skipper#3100
* build(deps): bump github.com/instana/go-sensor from 1.62.1 to 1.63.0: zalando/skipper#3104
* build(deps): bump golang.org/x/oauth2 from 0.20.0 to 0.21.0: zalando/skipper#3102
* build(deps): bump github.com/miekg/dns from 1.1.59 to 1.1.61: zalando/skipper#3109
* build(deps): bump github.com/redis/go-redis/v9 from 9.5.2 to 9.5.3: zalando/skipper#3110
* build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2: zalando/skipper#3108
* routing: log route update id: zalando/skipper#3112
* build(deps): bump actions/checkout from 4.1.6 to 4.1.7: zalando/skipper#3107
* routing: measure route update latency: zalando/skipper#3113
* doc: mention DCO and what to do in your commit: zalando/skipper#3114
* routing: refactor update id logging: zalando/skipper#3116
* OPA: Add response status to control plane traces: zalando/skipper#3118
* routing: measure CreateFilter latency: zalando/skipper#3115

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
JanardhanSharma pushed a commit to JanardhanSharma/skipper that referenced this pull request Jul 19, 2024
Signed-off-by: Magnus Jungsbluth <magnus.jungsbluth@zalando.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor no risk changes, for example new filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants