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

[Epic Blob-CSI] Query the OPA instance via controller to get buckets. Add this to controller. #1084

Closed
Tracked by #1001
blairdrummond opened this issue May 4, 2022 · 1 comment
Assignees
Labels
size/M 2-3 days

Comments

@blairdrummond
Copy link
Contributor

No description provided.

@cboin1996
Copy link

cboin1996 commented May 4, 2022

Ticket is enveloped in this issue:

High level summary:

  • Modify the instances variable here to contain dynamic values queried from OPA endpoints.
    • minio-gateway-opa.fdi-gateway-unclassified-system:8181
    • minio-gateway-opa.fdi-gateway-protected-b-system:8181
  • Basically, I need to do get requests to those above endpoints, parse out any data that is not needed.
    • Example for unclassified through kubectl : kubectl exec minio-gateway-69569fbdc6-4n2x2 -n fdi-gateway-unclassified-system -- curl -s http://minio-gateway-opa:8181/v1/data | jq '.result | del(.httpapi)'
    • Output:
  "2021-12-aaw-unclassified-dev": {
    "readers": [
      "blair-drummond",
      "salwa-mohamedd",
      "charles-belisle"
    ]
  }
}
  • The idea is I would need to analyse the json response, parsing and formatting to the instances struct within the blobcsi controller.

Roadmap to success:

  • Develop local environment for threaded querying of http endpoints
  • Add environment into golang controller:
    • Place thread code into go controller
    • Integrate the thread code with cobra cli
    • Add environment variables where necessary for local testing
    • Update taskfile for somewhat useful instructions/dev tools for future testing
    • Update vscode debugger in order to run locally in the dev cluster
    • Modify the thread code in order to query both unclassified minio-opa-gateway and prot-b minio-opa-gateway
    • Implement schema for the json response, parsing responses and format them to the instances struct within the blobcsi controller.
    • Investigate existing FDI architecture with FDI team, and establish connection from minio bucket to FDI.

Relevant Links:

Existing Blob storage solution: #999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M 2-3 days
Projects
None yet
Development

No branches or pull requests

2 participants