Skip to content

docs: complete owner-only job access policy - #254

Merged
uniqueg merged 2 commits into
mainfrom
docs/owner-only-jobs
Dec 2, 2026
Merged

uniqueg merged 2 commits into
mainfrom
docs/owner-only-jobs

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Completes the owner-only job access policy decided in elixir-cloud-aai/generic-issues#124 (confirmed 20 Nov 2026):

  • docs/operators/policies.md ("Access control for compute"): two new MUST rules: no sharing in the service (sharing is up to clients, under their own data agreements), and operators act through the infrastructure (e.g. kubectl, logs without job data), not the API; groups only decide who may create jobs.
  • docs/operators/services/protes.md: the configuration table now shows the 0.8.0 deployment (Helm revision 18, release chart and image by digest from runbooks/pins.env of the project, live since 1 Dec 2026): the role admin no longer has FOCA's permissions API (off since proTES 0.8.0, fix: keep admins away from others' tasks protes#515 / #539), listing own tasks needs no role (proTES#519 / #518), links point to the 0.8.0 docs; the Version row says 0.8.0 (patch releases by Pubgrade since 2 Dec).
  • After Sourcery's review (edb21de): the policy names what it protects (job, inputs, outputs, logs, environment; accounting data without job content isn't a view of a job), groups never widen who sees a job, no claim about data agreements; the proTES "Other tokens" row clarified; docs/operators/node-onboarding-tutorial.md moved to proTES 0.8.0 (component table, Poiesis note, doc links); docs/researchers/krini.md says the federation's TES services list only your own tasks.

Closes #253

Verification

  • python scripts/check_names.py: OK.
  • mkdocs build --strict (with registry access): OK.
  • pytest: 356 passed, coverage 100% (both commits).
  • CI on cdace49 and edb21de: CI passed; Sourcery review passed, all threads answered and resolved.
  • Live check of the facts: GET https://gateway-tes.elixir-on.cloud/admin/access-control/permissions returns 404 (API off), GET /ga4gh/tes/v1/tasks without token 401; service info reports version 0.8.0.

Light lane: docs-only text change (no code, CI, secrets or permissions); diff reviewed by the author.

Declined review findings

  • Sourcery (2nd review, medium) "specify client data agreements": declined, because its first review asked to remove that wording (no legal claims in docs, see docs: add privacy notice for submitter tags #241); the decision text stays in generic-issues#124.

Open questions

  • None.

🤖 Generated with Claude Code

State in the operator policies that services don't share jobs
(sharing is up to clients) and that operators act through the
infrastructure, as decided in generic-issues#124. Update the proTES
service page to the 0.8.0 deployment: the permissions API is off,
so admins can't make themselves owners of other users' tasks.

Closes #253

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@read-the-docs-community

read-the-docs-community Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

📖 4 files modified


Preview · build overview · elixir-on-cloud-docs · built Dec. 2, 2026, 7:05 p.m. UTC

@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Documentation

Establish the owner-only policy: services must not share job content, operators act through infrastructure rather than the API, and groups control job creation but not visibility.

  • docs/operators/policies.md L123-133

Document how proTES 0.8.0 implements the policy, including its deployment, role permissions, owner-only task access, and removal of the permissions API.

  • docs/operators/services/protes.md L39, L61-75, L190

Bring the onboarding tutorial's proTES version and gateway requirements up to date with 0.8.0.

  • docs/operators/node-onboarding-tutorial.md L27, L702, L886-889

Clarify for Krini users that the ELIXIR On-Cloud gateway and Node services list only the caller's tasks.

  • docs/researchers/krini.md L182-185

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@uniqueg
uniqueg marked this pull request as ready for review December 2, 2026 18:50
@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit edb21de

#253 docs: complete owner-only job access policy · 2 of 3 met

# Requirement Status Notes
1 Services do not share jobs; clients that share store and share the information under their own data agreements. 🟡 Partly met The policy makes sharing the client's responsibility and says the client stores and shares the information, but omits the issue's explicit condition that this be under the client's own data agreements.
2 Operators handle stuck or abusive jobs through infrastructure and logs that do not expose job data, not through the API. ✅ Met The new operator rule specifies infrastructure tools and logs that do not expose job data.
3 Show the proTES 0.8.0 deployment and an admin role without the permissions API. ✅ Met The configuration table documents the 0.8.0 deployment and says the permissions API is off and returns 404.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 6 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/operators/policies.md" line_range="124" />
<code_context>
 - **Listing jobs shows only the caller's own jobs.** There is no admin
   view of other users' jobs, not even a list.
+- **No sharing in your service.** Your service MUST NOT show a job to
+  anyone but its owner, neither to the members of a group nor to admins.
+  Sharing is up to the clients: a client that wants it stores the job
+  information it gets as the owner and shares it there, under its own
</code_context>
<issue_to_address>
**Admins see other users’ job details**

When an admin requests provenance or per-user resource usage for another user's task, the owner-only policy forbids showing a job to anyone but its owner, while proTES gives admins access to provenance and per-user resource usage that reveals other users’ task details. The policy and documented access therefore conflict.

Restrict admin access to other users’ task details, or revise the policy to state clearly which metadata admins may access.

Also at `docs/operators/services/protes.md:73`, `docs/operators/policies.md:131`.
</issue_to_address>

### Comment 2
<location path="docs/operators/services/protes.md" line_range="75" />
<code_context>
+| Own tasks | only the user who created a task can list, read and cancel it, also after leaving `ECP_CLN:EOC-Compute`; admins can read the provenance of any task, not the task |
</code_context>
<issue_to_address>
**Owners are told access is denied**

When a task owner has a valid token but no longer belongs to either mapped group, the “Other tokens” row says requests on tasks return `403`, while “Own tasks” promises that owners can still list, read, and cancel their tasks. Operators and callers cannot tell whether those owner-scoped requests succeed.

Clarify that the `403` applies to task requests by non-owners, not owners accessing their existing tasks.

Also at `docs/operators/services/protes.md:76`.
</issue_to_address>

### Comment 3
<location path="docs/operators/policies.md" line_range="131" />
<code_context>
+- **Operators act through the infrastructure, not through the API.** You
+  handle stuck or abusive jobs with the tools of your platform, for
+  example, `kubectl`, and with logs that don't expose the data of jobs.
+  The groups only decide who may create jobs.
 - **Service clients**, such as the [gateway](services/protes.md): your
   service recognises a service client by the issuer and its `client_id`,
</code_context>
<issue_to_address>
**Group access rules are unclear**

When an operator configures group-gated access to plugins or admin endpoints, the policy says groups only decide who may create jobs, but the proTES documentation assigns plugin access and admin reports and provenance to groups. Operators cannot follow both descriptions when configuring access.

Clarify that groups may govern access to the documented non-creation endpoints as well as job creation.

Also at `docs/operators/services/protes.md:73`.
</issue_to_address>

### Comment 4
<location path="docs/operators/services/protes.md" line_range="68" />
<code_context>
+| Deployment | since 1 December 2026 (Helm revision 18): the chart and image of the [v0.8.0 release](https://github.com/elixir-cloud-aai/proTES/releases/tag/v0.8.0) on CSC's Rahti, image `elixircloud/protes:0.8.0@sha256:bf1e689a21f3e13091a853c29974762b8a9edd538a1369783c0cf13e4355962b` (signed by proTES' release workflow), with MongoDB 7.0 and RabbitMQ 4.3 from the chart. Before: the chart in `deployment/` of the `dev` commit `8e31da3` with its image (Helm revisions 16 and 17, from 29 November 2026) |
</code_context>
<issue_to_address>
**Operators get conflicting release guidance**

When an operator consults the onboarding or service overview after the 1 December 2026 upgrade, the deployment row says proTES 0.8.0 is running, while the unchanged overview and onboarding guidance say the gateway runs a 0.7.0 development build and that 0.8.0 is unreleased. Operators cannot tell which release is deployed.

Update the deployment overview and onboarding guidance to reflect the 0.8.0 deployment.
</issue_to_address>

### Comment 5
<location path="docs/operators/policies.md" line_range="123" />
<code_context>
   these, as for every endpoint (see [Authentication](#authentication)).
 - **Listing jobs shows only the caller's own jobs.** There is no admin
   view of other users' jobs, not even a list.
+- **No sharing in your service.** Your service MUST NOT show a job to
+  anyone but its owner, neither to the members of a group nor to admins.
+  Sharing is up to the clients: a client that wants it stores the job
</code_context>
<issue_to_address>
**Other services appear shareable**

When a Krini user selects a TES service run by a Node in the federation, the Krini guide still says services other than proTES may list all users’ tasks, and its tutorial repeats that claim, so readers are told that cross-user listings are acceptable despite this rule.

Update the Krini guide and tutorial to state that federation Node services are owner-only, while distinguishing services outside the federation if needed.
</issue_to_address>

### Comment 6
<location path="docs/operators/policies.md" line_range="127" />
<code_context>
+  anyone but its owner, neither to the members of a group nor to admins.
+  Sharing is up to the clients: a client that wants it stores the job
+  information it gets as the owner and shares it there, under its own
+  data agreements.
+- **Operators act through the infrastructure, not through the API.** You
+  handle stuck or abusive jobs with the tools of your platform, for
</code_context>
<issue_to_address>
**Unsupported client agreement claim**

When a reader relies on the policy’s guidance about sharing job information, the policy says clients share jobs under their own data agreements without establishing that such agreements exist or govern the sharing, giving operators unsupported legal guidance.

Remove the data-agreements claim or have it substantiated with the maintainers and a data protection officer before including it.
</issue_to_address>

Sourcery assessment

Approval pending. 6 findings to address first.

Blocking findings: docs/operators/policies.md:124, docs/operators/services/protes.md:75, docs/operators/policies.md:131, docs/operators/services/protes.md:68, docs/operators/policies.md:123, and 1 more


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread docs/operators/policies.md Resolved
Comment thread docs/operators/services/protes.md Resolved
Comment thread docs/operators/policies.md Resolved
Comment thread docs/operators/services/protes.md Resolved
Comment thread docs/operators/policies.md Resolved
Comment thread docs/operators/policies.md Resolved
Say which job data the policy protects (accounting data without job
content isn't a view of a job), that groups never widen who sees a
job, and that a sharing client is responsible for who sees the data,
without a claim about data agreements. Clarify the 403 row of the
proTES page, move its version row and the Node tutorial to proTES
0.8.0, and say in the Krini guide that the federation's TES services
list only the caller's tasks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New gaps against the linked issues

Comment thread docs/operators/policies.md Resolved
@uniqueg
uniqueg merged commit 9cba4d3 into main Dec 2, 2026
21 checks passed
@uniqueg
uniqueg deleted the docs/owner-only-jobs branch December 2, 2026 19:11
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.

docs: complete owner-only job access policy

1 participant