Clarify Job view permissions for REST lifecycle actions

Open Beginner friendly
#235 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

Read docs/administration/permissions.md and locate the guidance for polling Jobs created through the reconcile/ and validate/ REST actions. Clarify that core.view_job must include these Jobs even when permission constraints limit access to a user's own Jobs; done when the documentation explains why such constraints can cause an HTTP 404.

Written by the indexing model from the issue text.

Description

app: scripts status: backlog type: documentation
Change Type

Correction

Proposed Changes

The permissions documentation states that pipelines polling Jobs queued through the reconcile/ and validate/ REST actions require core.view_job.

These Jobs have no associated user. A permission constrained to the requesting user's own Jobs, such as {"user": "$user"}, therefore excludes them, resulting in an HTTP 404 when polling their status.

Clarify in docs/administration/permissions.md that the Job view permission must also cover the Jobs created by these actions.

Dominant language
Python
Stars
8
Forks
0
Avg merge
12h 46m
Merged PRs (30d)
83

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from netbox-community/netbox-scripts

All issues in netbox-community/netbox-scripts

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.