jenkinsci / jenkinsci/openstack-cloud-plugin

Agent/Delete permission is not respected

Open
#325 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
49
Forks
97
Avg merge
13h 23m
Merged PRs (30d)
6

Description

### Version report

Jenkins and plugins versions report:

```
jenkins v.2.222.4
openstack-cloud:2.53
role-strategy:2.16
```

- What Operating System are you using (both controller, and any agents involved in the problem)?

```
Jenkins official image from docker hub.
```

### Reproduction steps

- I am trying to use role-based access strategy, permissions assigned to role:
```
permissions:
- "Agent/Build"
- "Agent/Configure"
- "Agent/Connect"
- "Agent/Create"
- "Agent/Delete"
- "Agent/Disconnect"
- "Agent/Provision"
- "Job/Build"
- "Job/Cancel"
- "Manage ownership/Nodes"
- "Overall/Read"
```
- when user with above role assigned is clicking in UI "Schedule Termination" node is not being terminated. In jenkins log I can see line:
`[INFO] - [org.eclipse.jetty.server.handler.ContextHandler$Context] - [log] - While serving http://XXX/computer/taborski-test-2/scheduleTermination: hudson.security.AccessDeniedException2: test is missing the N/A/GenericDelete permission`

### Results

Expected result:

Node is scheduled for termination.

Actual result:

Node is not terminated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.