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

Build OPA docker image with builtin policies & Run OPA as a side car #3326

Closed
t83714 opened this issue Mar 7, 2022 · 1 comment
Closed

Comments

@t83714
Copy link
Contributor

t83714 commented Mar 7, 2022

Motivation

  • Build OPA docker image with builtin policies
    • Currently, built-in policies are deployed as part of helm chart content
    • Due to k8s etcd 1m limit, unless use other storage targets, helm chart deployment manifest (after compression) can't be larger than 1M.
    • We haven't reached the limit yet but it's still good to move built-in policies to prebuilt docker image to spare the room
    • the user should still be able to supply their own policies files (as part of helm config) to overwrite built-in policy files
  • Move OPA container into auth API pod as a sidecar container
    • Performance will be better & ensure it's highly available to auth API
    • In Magda, we never access auth API directly. Instead, we access it via auth API's decision endpoint to make sure the user profile has been prefilled during the policy evaluation.
    • To run opa as a sidecar in auth API pod will make management & scale up / down easier as we don't need to manage two pods anymore.

Acceptance Criteria

@t83714 t83714 added this to the Next milestone Mar 7, 2022
@t83714 t83714 changed the title Build OPA docker image with builtin policies & Move OPA container into auth API pod as side car Build OPA docker image with builtin policies & Run OPA as a side car Mar 8, 2022
@t83714
Copy link
Contributor Author

t83714 commented Mar 9, 2022

closed via #3327

@t83714 t83714 closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant