Skip to content

fix(plugin): scope digitalocean oauth to genai#27599

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
Spherrrical:musa/digitalocean-oauth-scope-genai-create
May 14, 2026
Merged

fix(plugin): scope digitalocean oauth to genai#27599
rekram1-node merged 1 commit into
anomalyco:devfrom
Spherrrical:musa/digitalocean-oauth-scope-genai-create

Conversation

@Spherrrical
Copy link
Copy Markdown
Contributor

@Spherrrical Spherrrical commented May 14, 2026

Issue for this PR

Closes #27600

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The DigitalOcean OAuth flow currently requests read write, which expands to account-wide api:read/api:write — far more than the inference hub needs. This narrows the authorize request to genai:create genai:read, which is the minimum required to create a Model Access Key and list Inference Routers.

How did you verify your code works?

Ran bun typecheck from packages/opencode (passes) and manually walked through /connect to confirm DigitalOcean's consent screen now shows only the GenAI scopes instead of account-wide read/write.

Screenshots / recordings

n/a — no UI change

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

The DigitalOcean OAuth flow was requesting account-wide read/write,
which is far broader than what the inference hub needs. Narrow the
authorize request to genai:create so users only grant access to
create Model Access Keys + Inference Routers.
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added contributor and removed needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@rekram1-node rekram1-node merged commit 83c145f into anomalyco:dev May 14, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DigitalOcean OAuth requests account-wide read+write instead of GenAI-only scopes

2 participants