From 7944522cac99d91ac05c743661af68a2ed43df9b Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 25 Nov 2013 12:36:05 -0500 Subject: Added ACL for selftests. New ACL has been added to allow only the administrators in each subsystem to access the selftests. Ticket #652 --- base/ocsp/shared/conf/acl.ldif | 1 + base/ocsp/shared/conf/acl.properties | 2 ++ base/ocsp/shared/conf/auth-method.properties | 1 + base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml | 13 +++++++++++++ 4 files changed, 17 insertions(+) (limited to 'base/ocsp') diff --git a/base/ocsp/shared/conf/acl.ldif b/base/ocsp/shared/conf/acl.ldif index 14221f8bb..b66478b07 100644 --- a/base/ocsp/shared/conf/acl.ldif +++ b/base/ocsp/shared/conf/acl.ldif @@ -30,4 +30,5 @@ resourceACLS: certServer.ocsp.group:read,modify:allow (modify,read) group="Admin resourceACLS: certServer.clone.configuration:read,modify:allow (modify,read) group="Enterprise CA Administrators" || group="Enterprise KRA Administrators" || group="Enterprise OCSP Administrators" || group="Enterprise TKS Administrators":Only Enterprise Administrators are allowed to clone the configuration. resourceACLS: certServer.ocsp.account:login,logout:allow (login,logout) user="anybody":Anybody can login and logout resourceACLS: certServer.ocsp.groups:execute:allow (execute) group="Administrators":Admins may execute group operations +resourceACLS: certServer.ocsp.selftests:read,execute:allow (read,execute) group="Administrators":Only admins can access selftests. resourceACLS: certServer.ocsp.users:execute:allow (execute) group="Administrators":Admins may execute user operations diff --git a/base/ocsp/shared/conf/acl.properties b/base/ocsp/shared/conf/acl.properties index 67c68b37f..9528f11fa 100644 --- a/base/ocsp/shared/conf/acl.properties +++ b/base/ocsp/shared/conf/acl.properties @@ -8,4 +8,6 @@ account.login = certServer.ocsp.account,login account.logout = certServer.ocsp.account,logout groups = certServer.ocsp.groups,execute +selftests.read = certServer.ocsp.selftests,read +selftests.execute = certServer.ocsp.selftests,execute users = certServer.ocsp.users,execute diff --git a/base/ocsp/shared/conf/auth-method.properties b/base/ocsp/shared/conf/auth-method.properties index 5718fc6da..9f5a7a1d3 100644 --- a/base/ocsp/shared/conf/auth-method.properties +++ b/base/ocsp/shared/conf/auth-method.properties @@ -9,4 +9,5 @@ default = * account = certUserDBAuthMgr,passwdUserDBAuthMgr groups = certUserDBAuthMgr +selftests = certUserDBAuthMgr users = certUserDBAuthMgr diff --git a/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml b/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml index 9c86fa1f1..8002f749b 100644 --- a/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml +++ b/base/ocsp/shared/webapps/ocsp/WEB-INF/web.xml @@ -780,6 +780,19 @@ [PKI_CLOSE_STANDALONE_COMMENT] + + + Self Tests + /rest/selftests/* + + + * + + + CONFIDENTIAL + + + Online Certificate Status Protocol Manager -- cgit