feat: add file ACL management via Drive PRIVATE Properties#14
Open
44103 wants to merge 2 commits into
Open
Conversation
Add 'myg file props id=<ID> set=<-|r|w>' to explicitly set file access control. Includes interactive confirmation prompt and TTY check to block non-interactive (LLM/pipe) execution. Also add checkAcl() enforcement on read/write operations for sheets, docs, files, and slides.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Drive ファイルに対するアクセス制御(ACL)を PRIVATE Properties で管理する機能を追加。
変更内容
ファイル追跡 (b7cc534)
myg file props id=<ID>で追跡状態を確認可能ACL 手動設定 (608a8c8)
myg file props id=<ID> set=<-|r|w>で明示的に ACL を設定-: アクセス拒否(read/write 両方ブロック)r: 読み取り専用w: 読み書き許可checkAcl()を挿入対象ファイル
src/drive.ts— checkAcl, setFileAcl, trackFileAccess/Write/Creationsrc/main.ts— 各アクションへの ACL チェック挿入 + file:props:set ハンドラcli/myg/cli/myg.ps1— set= パラメータ対応 (bash/PowerShell)README.md/cli/help.txt— ドキュメント更新設計判断
今後の拡張候補