Resolve AccessControl Exceptions in Registry

Description

Updating the Description in the local node

13:54:55,544 | WARN | eHandlerThread 0 | hiro.authc.pam.ModularRealmAuthenticator 224 | rg.apache.shiro.core | Realm [ddf.security.realm.sts.StsRealm@6a4e7717] threw an exception during a multi-realm authentication attempt:
org.apache.shiro.authc.AuthenticationException: Error requesting the security token from STS at: https://<hostname>:<port>/services/SecurityTokenService?wsdl.
at ddf.security.realm.sts.AbstractStsRealm.requestSecurityToken(AbstractStsRealm.java:225) ~[?:?]
at ddf.security.realm.sts.AbstractStsRealm.doGetAuthenticationInfo(AbstractStsRealm.java:176) ~[?:?]
at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568) ~[?:?]
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" …/ddf-2.13.0-SNAPSHOT/etc/ws-security/server/signature.properties" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:?]
at java.security.AccessController.checkPermission(AccessController.java:884) ~[?:?]
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) ~[?:?]
at java.lang.SecurityManager.checkRead(SecurityManager.java:888) ~[?:?]
at java.io.File.exists(File.java:814) ~[?:?]
at org.codice.ddf.platform.util.properties.PropertiesLoader.attemptLoadWithFileSystem(PropertiesLoader.java:209) ~[?:?]
at org.codice.ddf.platform.util.properties.PropertiesLoader.loadProperties(PropertiesLoader.java:138) ~[?:?]
at ddf.security.PropertiesLoader.loadProperties(PropertiesLoader.java:47) ~[?:?]
at ddf.security.realm.sts.AbstractStsRealm.addStsProperties(AbstractStsRealm.java:318) ~[?:?]
at ddf.security.realm.sts.AbstractStsRealm.configureStsClient(AbstractStsRealm.java:382) ~[?:?]
at ddf.security.realm.sts.AbstractStsRealm.requestSecurityToken(AbstractStsRealm.java:209) ~[?:?]
... 28 more

Adding contact to registry identity node

AccessControlException when trying to add a Contact/content collection, going to /services/describe/records
org.apache.shiro.authc.AuthenticationException: Error requesting the security token from STS at: https://<hostname>:<port>/services/SecurityTokenService?wsdl.
at ddf.security.realm.sts.AbstractStsRealm.requestSecurityToken(AbstractStsRealm.java:225) ~[?:?]
at ddf.security.realm.sts.AbstractStsRealm.doGetAuthenticationInfo(AbstractStsRealm.java:176) ~[?:?]
at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568) ~[?:?]
at Proxy3d536819_fe3f_4cae_9599_35c8d4ed5ed5.getAuthenticationInfo(Unknown Source) ~[?:?]

Environment

None

Status

Assignee

Unassigned

Reporter

Shaun Morris

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure