Title: OPA filter smoke tests · Issue #157 · hypertrace/javaagent · GitHub
Open Graph Title: OPA filter smoke tests · Issue #157 · hypertrace/javaagent
X Title: OPA filter smoke tests · Issue #157 · hypertrace/javaagent
Description: This is a tracking issue for discussing OPA filter testing. The idea is that in agent we want to be able to test OPA filter https://github.com/hypertrace/javaagent/tree/main/filter-custom-opa against running https://github.com/open-polic...
Open Graph Description: This is a tracking issue for discussing OPA filter testing. The idea is that in agent we want to be able to test OPA filter https://github.com/hypertrace/javaagent/tree/main/filter-custom-opa again...
X Description: This is a tracking issue for discussing OPA filter testing. The idea is that in agent we want to be able to test OPA filter https://github.com/hypertrace/javaagent/tree/main/filter-custom-opa again...
Opengraph URL: https://github.com/hypertrace/javaagent/issues/157
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OPA filter smoke tests","articleBody":"This is a tracking issue for discussing OPA filter testing. The idea is that in agent we want to be able to test OPA filter https://github.com/hypertrace/javaagent/tree/main/filter-custom-opa against running https://github.com/open-policy-agent/opa. The filter gets data from `/v1/data` and runs evaluation on every request.\r\n\r\nI would like to package https://github.com/open-policy-agent/opa into a docker container and make `data.json` and `/v1/policies/remote-bundle/traceable/http/request/policy.rego` configurable. This container could be used in smoke tests in all Hypertrace agents. There is already a docker container https://hub.docker.com/r/openpolicyagent/opa - we should have a look if it could be used. \r\n\r\nIn the meantime the OPA filter can be tested by:\r\n1. port-forwarding OPA agent from `traceableai` namespace `k port-forward service/opa 8181:8181 -n traceableai` \r\n2. get the data from OPA agent `curl localhost:8181/v1/data` and pick some IP address from `denylist`\r\n3. run agent on a test/demo app and do `curl localhost:8080 -H \"X-Forwarded-For: \u003cIP from deny list\u003e` - the request should be blocked with 403\r\n\r\ncc) @mohit-a21 @jcchavezs @davexroth ","author":{"url":"https://github.com/pavolloffay","@type":"Person","name":"pavolloffay"},"datePublished":"2020-12-07T15:25:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/157/javaagent/issues/157"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:37315a9f-efd4-e975-834e-d71f3c100f4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EC6:38A7FD:127CF90:19A747F:6A4DE63F |
| html-safe-nonce | 1d2318a48bf6989212a49f617a9bacba488a57405dc1ea8d01b1a317d20f854f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUM2OjM4QTdGRDoxMjdDRjkwOjE5QTc0N0Y6NkE0REU2M0YiLCJ2aXNpdG9yX2lkIjoiMTQ5NTA1MDk5OTA5NzU4MzE2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cbd9d6dbc45a9ef43bcb6d82fe4cabb1fdc14cc44d18142f67a6fdd919c7b15c |
| hovercard-subject-tag | issue:758608727 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hypertrace/javaagent/157/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78fd740777880a58ca93e35c599ccc56174832a48c48dcfda1ed30d8bcda1ba0/hypertrace/javaagent/issues/157 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78fd740777880a58ca93e35c599ccc56174832a48c48dcfda1ed30d8bcda1ba0/hypertrace/javaagent/issues/157 |
| og:image:alt | This is a tracking issue for discussing OPA filter testing. The idea is that in agent we want to be able to test OPA filter https://github.com/hypertrace/javaagent/tree/main/filter-custom-opa again... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pavolloffay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/hypertrace/javaagent git https://github.com/hypertrace/javaagent.git |
| octolytics-dimension-user_id | 65374698 |
| octolytics-dimension-user_login | hypertrace |
| octolytics-dimension-repository_id | 302314733 |
| octolytics-dimension-repository_nwo | hypertrace/javaagent |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 302314733 |
| octolytics-dimension-repository_network_root_nwo | hypertrace/javaagent |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width