Skip to content

Commit

Permalink
[NCL-8155] Require role to blocklist artifact
Browse files Browse the repository at this point in the history
The role name is: pnc-users-da-admin
  • Loading branch information
thescouser89 committed Aug 30, 2023
1 parent ef558bd commit 5656702
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions reports-rest/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@
</web-resource-collection>
</security-constraint>

<security-constraint>
<web-resource-collection>
<web-resource-name>Access to lookups for all users on POST</web-resource-name>
<url-pattern>/rest/v-${version.reports.rest}/listings/blacklist/gav</url-pattern>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>pnc-users-da-admin</role-name>
</auth-constraint>
</security-constraint>

<!-- Allow all logged users to access the other endpoints -->
<security-constraint>
Expand All @@ -50,6 +61,9 @@
<security-role>
<role-name>*</role-name>
</security-role>
<security-role>
<role-name>pnc-users-da-admin</role-name>
</security-role>
<!-- SECURITY -->

<filter>
Expand Down

0 comments on commit 5656702

Please sign in to comment.