This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c54fe93d0 Remove deuplicate permission from route (#7368)
9c54fe93d0 is described below

commit 9c54fe93d08362388cadd6adc8de4047a5ea2f41
Author: Srijeet Chatterjee <[email protected]>
AuthorDate: Mon Feb 27 15:14:00 2023 -0700

    Remove deuplicate permission from route (#7368)
---
 traffic_ops/traffic_ops_golang/routing/routes.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/traffic_ops_golang/routing/routes.go 
b/traffic_ops/traffic_ops_golang/routing/routes.go
index d541086108..725456bf9e 100644
--- a/traffic_ops/traffic_ops_golang/routing/routes.go
+++ b/traffic_ops/traffic_ops_golang/routing/routes.go
@@ -561,7 +561,7 @@ func Routes(d ServerData) ([]Route, http.Handler, error) {
                {Version: api.Version{Major: 4, Minor: 0}, Method: 
http.MethodDelete, Path: `acme_accounts/{provider}/{email}?$`, Handler: 
acme.Delete, RequiredPrivLevel: auth.PrivLevelAdmin, RequiredPermissions: 
[]string{"ACME:DELETE", "ACME:READ"}, Authenticated: Authenticated, 
Middlewares: nil, ID: 4034390564},
 
                //Delivery service ACME
-               {Version: api.Version{Major: 4, Minor: 0}, Method: 
http.MethodPost, Path: `deliveryservices/xmlId/{xmlid}/sslkeys/renew$`, 
Handler: deliveryservice.RenewAcmeCertificate, RequiredPrivLevel: 
auth.PrivLevelOperations, RequiredPermissions: []string{"ACME:READ", 
"DS-SECURITY-KEY:DELETE", "DS-SECURITY-KEY:CREATE", "DS-SECURITY-KEY:UPDATE", 
"DS-SECURITY-KEY:READ", "DELIVERY-SERVICE:READ", "DELIVERY-SERVICE:UPDATE", 
"DS-SECURITY-KEY:CREATE"}, Authenticated: Authenticated, Middlewares: nil, ID: 
[...]
+               {Version: api.Version{Major: 4, Minor: 0}, Method: 
http.MethodPost, Path: `deliveryservices/xmlId/{xmlid}/sslkeys/renew$`, 
Handler: deliveryservice.RenewAcmeCertificate, RequiredPrivLevel: 
auth.PrivLevelOperations, RequiredPermissions: []string{"ACME:READ", 
"DS-SECURITY-KEY:DELETE", "DS-SECURITY-KEY:CREATE", "DS-SECURITY-KEY:UPDATE", 
"DS-SECURITY-KEY:READ", "DELIVERY-SERVICE:READ", "DELIVERY-SERVICE:UPDATE"}, 
Authenticated: Authenticated, Middlewares: nil, ID: 2534390573},
                {Version: api.Version{Major: 4, Minor: 0}, Method: 
http.MethodPost, Path: `acme_autorenew/?$`, Handler: 
deliveryservice.RenewCertificates, RequiredPrivLevel: auth.PrivLevelOperations, 
RequiredPermissions: []string{"ACME:READ", "DS-SECURITY-KEY:UPDATE", 
"DELIVERY-SERVICE:UPDATE"}, Authenticated: Authenticated, Middlewares: nil, ID: 
2534390574},
                {Version: api.Version{Major: 4, Minor: 0}, Method: 
http.MethodGet, Path: `async_status/{id}$`, Handler: api.GetAsyncStatus, 
RequiredPrivLevel: auth.PrivLevelOperations, RequiredPermissions: 
[]string{"ASYNC-STATUS:READ"}, Authenticated: Authenticated, Middlewares: nil, 
ID: 2534390575},
 

Reply via email to