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

[front] Give access to all groups for system key #9401

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

tdraier
Copy link
Contributor

@tdraier tdraier commented Dec 16, 2024

Description

This revert the previous quick fix ( granting document post for system key ) and instead grant all groups access to system key authenticator, not just only system and global groups. This allows system key to be able to read/write documents into any space.

Risk

Deploy Plan

deploy front

@tdraier tdraier requested a review from spolu December 16, 2024 10:34
Copy link

github-actions bot commented Dec 16, 2024

Warnings
⚠️

Files in **/api/v1/ have been modified and the PR has the documentation-ack label.
Don't forget to run npm run docs and use the Deploy OpenAPI Docs Github action to update https://docs.dust.tt/reference.

Generated by 🚫 dangerJS against e3656da

@tdraier tdraier added the documentation-ack Used to acknowledge that documentation is up-to-date with this PR label Dec 16, 2024
@@ -129,10 +129,6 @@ export class GroupResource extends BaseResource<GroupModel> {
if (key.isSystem) {
whereCondition = {
...whereCondition,
[Op.or]: [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually not sure I understand the diff here can you explain a bit more?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm removing the constraint on kind, so that we get all groups of the workspace, not only system or global

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I see that makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix/update the comment above 🙏

@tdraier tdraier changed the title Thomas/system key access [fromt]Give access to all groups for system key Dec 16, 2024
@tdraier tdraier changed the title [fromt]Give access to all groups for system key [front] Give access to all groups for system key Dec 16, 2024
@tdraier tdraier merged commit 9d95583 into main Dec 16, 2024
6 checks passed
@tdraier tdraier deleted the thomas/system-key-access branch December 16, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation-ack Used to acknowledge that documentation is up-to-date with this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants