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

CLI should expose fqn-reindex functionality #157

Open
jakedoublev opened this issue May 15, 2024 · 0 comments
Open

CLI should expose fqn-reindex functionality #157

jakedoublev opened this issue May 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jakedoublev
Copy link
Contributor

Background

The platform binary has a command to trigger reindexing of attribute FQNs as they are eventually consistent. Updates to the names of attribute namespaces or definitions and the values of attribute values trigger changes to FQNs, and manual database changes do not trigger the FQNs table to update, so this is a valuable tool for admins who may find themselves with that need.

Platform command: https://github.com/opentdf/platform/blob/main/service/cmd/policy.go#L29

As the CLI UX of the OpenTDF Platform, otdfctl could support this functionality.

Acceptance Criteria

  1. The platform command runs on a db connection, but that should not be exposed to clients outside the platform, so an RPC must be added to the policy services.
    1. new protos
    2. new RPC to handle those protos
    3. new integration tests
  2. Otdfctl should utilize that new rpc to allow reindexing of FQNs for platform admins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants