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

Add permission queue workflow to update space permissions #8378

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

Conversation

flvndvd
Copy link
Contributor

@flvndvd flvndvd commented Oct 31, 2024

Description

See #8267.

This PR introduces a new temporal queue responsible for updating all agent_configurations when a space transitions between restricted and open. Although this pattern isn't ideal, it's acceptable for a first iteration since such transitions are not expected to occur frequently.

Ultimately, we know that resolving this issue would require storing the space ID within the agent_configurations. However, this would create a duplicated source of truth. In this scenario, spaceIds would be used to filter who can list an agent or access a conversation, while the registry would rely on the data source view to verify if the user is permitted to read data when running the assistant. Until we reach the point where we need to address User provisioning, this approach should be sufficient.

Right now this PR only partially works, it only support the case a space transitions from restricted to open. We need to tackle #8268 to support the way around.

Risk

Deploy Plan

@flvndvd flvndvd marked this pull request as ready for review October 31, 2024 14:27
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