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

Question: Config Sync between fga and keycloak #8

Open
marcportabellaclotet-mt opened this issue Nov 16, 2024 · 3 comments
Open

Question: Config Sync between fga and keycloak #8

marcportabellaclotet-mt opened this issue Nov 16, 2024 · 3 comments
Labels
question Further information is requested

Comments

@marcportabellaclotet-mt

Thank you for sharing this PoC! It's both fascinating and incredibly useful.

I have a question regarding how Keycloak roles are kept in sync with OpenFGA.

From my understanding, this PoC leverages the Keycloak listener to publish events for created or deleted roles and users to OpenFGA.

However, there could be scenarios where the sync might get out of date or missed. Could you share how you ensure that Keycloak roles and users remain consistent with OpenFGA tuples in such cases?

@embesozzi
Copy link
Owner

Hi @marcportabellaclotet-mt, thanks for the feedback!

Currently, the keycloak-openfga-event-publisher does not have a retry feature. I have an idea of how to implement this (with a custom transaction in order to have rollback capability), but it’s currently in the backlog.

For more complex scenarios, I’ve ended up synchronizing the events using an IGA (Identity Governance Platform) to enable retry/reconciliation of events between the identity model and the OpenFGA authorization model within the Identity Access Plus Platform.

@embesozzi embesozzi added the question Further information is requested label Nov 19, 2024
@marcportabellaclotet-mt
Copy link
Author

Thanks for sharing.

I was thinking in other scenarios, where for example, the config in openfga is deleted by mistake, failure,.. Even having a retry feature in the event publisher it won't cover this scenario.

I was thinking something like a background check, to ensure that config is in sync, similar to this

How does the reconcilliation of events work with identity access plus plaftorm?

@embesozzi
Copy link
Owner

embesozzi commented Nov 20, 2024

I was thinking in other scenarios, where for example, the config in openfga is deleted by mistake, failure,.. Even having a retry feature in the event publisher it won't cover this scenario.

I was thinking something like a background check, to ensure that config is in sync, similar to this

Yes, implementing the ScheduledTask can also help to schedule processes for syncing the objects

How does the reconcilliation of events work with identity access plus plaftorm?

When you have an IGA platform, you can work with connectors/drivers that support syncing processes through reconciliation or live sync actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants