Context propagation in OPA #455
-
Hi, I have a question regarding the context propagation support in OPA. My use case looks like this: We are using the discovery feature with the bundle API and we have some OPA pods that are using a control plane service to download and activate the bundle. My question is, how can i trace all this actions? My first idea was to start a trace in the service that builds the bundle, propagate the context to the .manifest file and then, using the Status API, to push the context from OPA pods to the control plane service. However, this workaround is not working because we are using the discovery feature and I saw in the documentation that the manual status reporting is not working with the discovery feature. Is there any out of the box support for context propagation in OPA via the bundle API? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
No. The bundle API will retrieve something from the bundle server -- it would be quite uncommon to use the response headers from that for subsequent status POSTs, I think. But every bundle has a hash associated (called "revision", I think) and that'll be used in decision logs -- so it should give you some idea of where the bundle goes. You can surely figure that rev out on your bundle service, too. Is this helpful at all? 🙃 hope a little. |
Beta Was this translation helpful? Give feedback.
You can think of discovery mode as having OPA purely remote controlled: every aspect is controlled by the control plane which does that via discovery bundles. So it's a limitation by design.