Skip to content

Let a trusted operator edit the allowed token URLs on a Workspace Secret #6141

Backlog

Description

@stevenlee-oai

User story

I'd like a trusted operator to add or remove an exact token URL on a Workspace Secret without reading the value, uploading it again, or replacing the Secret. This should work with Secret reveal disabled.

Today the URLs are fixed at creation. Rotating the value preserves the list. Changing the list means creating a new Secret and updating the Providers that use it.

Two cases where the list changes

GitHub Apps. I register a signing key for installation 123 and approve https://github.com/proxy/api.github.com/app/installations/123/access_tokens. Next week I approve installation 456. I'd like to add its exact URL to the same Secret while the Providers for 123 keep renewing. Adding the URL alone grants no sandbox access.

OAuth. Several accounts share one client secret. We may know the issuer at registration and verify the token URL only when someone connects an account. We tested early discovery with a controlled issuer on OpenShell 0.1.11. It worked, but required a live issuer at registration and left us with the same problem if the URL changed.

Proposed behavior

The API proposal in my fork sketches an operator-only edit with auditing. It includes an example and test plan. There is no runtime implementation yet.

  • Allow a trusted operator to replace refresh_use.allowed_endpoints in place. Keep the Secret identity, value and each Provider's configured URL. Key rotation remains a separate operation.
  • Keep edits disabled by default. An operator who approves an OAuth endpoint can cause OpenShell to send the client secret there. Treat that authority as sensitive as reading the value. Workspace admins and ordinary Secret or Provider writers should need separate authorization.
  • Keep exact URL checks when binding and when minting. Once a Provider sees that 123 was removed, it must stop before contacting that endpoint. Renewal for 456 should still work. Already issued tokens may remain valid until expiry or revocation.
  • Allow starting with no destinations and explicitly clearing the list. In the proposed API, an explicit empty refresh_use clears the list. A missing refresh_use is an error. No existing Secret gains a destination automatically.

RFC 0024 raises this question and describes the trust boundary. The 16-URL limit is a separate question.

Related work includes #5563, #5699 and discovering repositories within an approved installation.

Activity

  1. added
    state:triage-needed
    on Dec 1, 2026
  2. changed the title [-]Let a Workspace Secret owner approve an OAuth issuer for client secret refresh[/-] [+]Let a controller register a shared Workspace Secret before it knows the token URL[/+] on Dec 1, 2026
  3. changed the title [-]Let a controller register a shared Workspace Secret before it knows the token URL[/-] [+]Let a trusted operator edit the allowed token URLs on a Workspace Secret[/+] on Dec 1, 2026
  4. FrostGod commented on Dec 2, 2026

    @FrostGod
    Contributor

    @mrunalp or @derekwaynecarr , can you take a look at this.

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

    state:triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions