Skip to content

Allow Google Docs modules to write into folders they create - #341

Merged
michelemin merged 3 commits into
mainfrom
harry/gdocs-created-folder-write
Jul 27, 2026
Merged

Allow Google Docs modules to write into folders they create#341
michelemin merged 3 commits into
mainfrom
harry/gdocs-created-folder-write

Conversation

@harry-anderson

@harry-anderson harry-anderson commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Static rw ACLs only cover preconfigured Drive folder IDs
  • create_folder then copy_file/upload_file into the new folder failed permission checks
  • Track creator ownership at runtime and grant the creating module write/read on those folders

This unblocks rules that clone a template workspace by creating a per-report folder and copying template docs into it.

Test plan

  • cargo test -p plaid --lib apis::gcp::google_docs::tests::permission_checks
  • Integration: create_folder under configured parent, then copy_file into the new folder ID

Static rw ACLs only cover preconfigured folder IDs, so create_folder
followed by copy/upload into the new folder failed. Track creator
ownership at runtime and grant the creating module write/read on those
folders so template workspace clones work.
@harry-anderson

Copy link
Copy Markdown
Collaborator Author

Unblocks bbqd Drive workspace clone:

@harry-anderson
harry-anderson marked this pull request as ready for review July 13, 2026 19:26

@michelemin michelemin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Main comment is about reboots.

Comment thread runtime/plaid/src/apis/gcp/google_docs.rs Outdated
Comment thread runtime/plaid/src/apis/gcp/google_docs.rs Outdated
@michelemin
michelemin merged commit 1ba7948 into main Jul 27, 2026
23 checks passed
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.

2 participants