Skip to content

bug(drive): --drive-scope=readonly still grants full read-write access #111

Closed

Description

@a-b13

Problem

Using --drive-scope=readonly during auth still results in full read-write access to Drive. The flag doesn't appear to restrict permissions as expected.

Steps to Reproduce

gog auth add user@gmail.com --services=drive --drive-scope=readonly --force-consent

After completing OAuth flow, the token still has write access to Drive.

Expected Behavior

The resulting token should only have drive.readonly scope, preventing file creation/modification/deletion.

Actual Behavior

Full read-write access is granted despite the --drive-scope=readonly flag.

Environment

  • gog version: v0.9.0
  • OS: Ubuntu (WSL2)

Additional Context

This may be related to how scopes are combined when multiple services are authorized, or the scope may not be getting passed correctly to the OAuth flow.

I'm trying to set up a secure configuration where an AI assistant can read Drive files but cannot modify them. Currently this isn't possible even with the readonly flag.

Activity

  1. deleted a comment from andyg2 on Feb 4, 2026
  2. a-b13 commented on Feb 4, 2026

    @a-b13
    Author

    Related: #110 (Gmail doesn't even have a readonly scope option yet). Both issues are about enforcing least-privilege OAuth scopes.

  3. a-b13 commented on Feb 5, 2026

    @a-b13
    Author

    Related: #110 (gmail readonly scope request) — both involve scope control for different services. Would be great to solve these together.

  4. andyg2 commented on Feb 23, 2026

    @andyg2

    Oh if only there were a read only mode!

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions