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

Merge all entity groups into one #573

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

Ptroger
Copy link
Contributor

@Ptroger Ptroger commented Oct 30, 2024

Overview

This PR is updating entity schema. The first objective is to merge accountGroups and userGroups into groups
The other objective was to make this change non breakable.

Challenges

  • Entities is a shared schema across our stack that is validated
  • We have entities signed and used in prod.
  • We want to have a solution for any change, not just this one

Solution

  • Entities is an 'append only' schema
  • New fields and updated ones are optional
  • Default 'empty' entities used for management is up to date with latest schema
  • Policies will have versions when a schema change won't be reconcilable in rego
    • Currently doesn't have to be the case - rego v0 implementation supports this change
  • Deprecated fields still in usage are flagged at entity validation
  • Runbook for subsequent changes

Copy link

vercel bot commented Oct 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devtool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 5:47pm
manager 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 5:47pm

@Ptroger Ptroger marked this pull request as ready for review October 30, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant