Skip to content

[Throwaway] Editor secret tips on shared remote pipelines - #2857

Draft
morgan-wowk wants to merge 1 commit into
MB/pipeline-storage-consumersfrom
mw/throwaway-editor-secret-tips
Draft

morgan-wowk wants to merge 1 commit into
MB/pipeline-storage-consumersfrom
mw/throwaway-editor-secret-tips

Conversation

@morgan-wowk

Copy link
Copy Markdown

Warning

Throwaway, do not merge. This shows the editor experience the access-control MVP is aiming for. It's built on top of #2821 so the screenshots show the real remote-pipeline editor. Once remote editing lands, the real version should be rebuilt on that work.

Someone with edit on another person's saved pipeline can now change it. Secrets stay with the owner. Instead of refusing the save, the editor explains where the limit is and names the person to ask.

What the editor sees

A task that takes a secret is read-only, with one line saying who can change it:

Secret task

Adding a secret becomes a tip to ask the owner:

Add secret

Everything else saves as usual. The e2e test changes epochs on the other task and checks that the save leaves the secret task untouched.

Changes

  • Edit access. RemotePipelineFile.canEdit also allows a non-owner whose GET /api/access_control/pipeline/{id}/my_scopes includes pipeline:update. Without an edit grant (or on a backend without the endpoint) the pipeline stays read-only.
  • Saves. A non-owner saves through PUT /api/pipelines/{id}, where the backend checks edit access and the secrets rule. Owners still save through /api/users/me/pipelines. Deleting stays owner-only.
  • Secret tips. PipelineFile.secretsOwner names the owner when the viewer isn't the owner:
    • ArgumentRow locks every argument of a task that takes a secret and shows a FieldMessage tip.
    • DynamicDataSubmenu replaces "Select Secret..." with "Ask to add secrets."

Not covered

Deleting a secret task or swapping its component isn't blocked here. The backend still refuses that save with "Secrets are owner-only: save your other edits, then ask .", which shows in the Retry tooltip.

Related

🤖 Generated with Claude Code

Do not merge. A preview of the editor experience for the access-control MVP,
built on the remote pipeline stack so the screenshots show the real editor.

- A non-owner whose my_scopes includes pipeline:update can edit the pipeline.
  Their saves go to PUT /api/pipelines/{id}, which applies the owner-only
  secrets guard; owners keep saving through /api/users/me/pipelines.
- Tasks that take a secret are read-only for that editor, with one line naming
  who can change them.
- "Select Secret..." becomes a short tip to ask the owner.
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: mw/throwaway-editor-secret-tips/c7239a0

This branch has not been deployed

No deployments
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.

1 participant