[jboss-jira] [JBoss JIRA] (WFLY-11933) Error when accessing metrics with RBAC enabled
Michal Petrov (Jira)
issues at jboss.org
Tue Jun 18 06:34:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-11933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748210#comment-13748210 ]
Michal Petrov commented on WFLY-11933:
--------------------------------------
[~dlofthouse], [~jmesnil], what I'm observing is this:
{code:title=CLI user}
SecurityIdentity{
principal=$local at ManagementRealm,
securityDomain=org.wildfly.security.auth.server.SecurityDomain at f08ba56,
authorizationIdentity=EMPTY,
realmInfo=RealmInfo{
name='LOCAL',
securityRealm=org.jboss.as.domain.management.security.SecurityRealmService$SharedStateSecurityRealm at e88dd09
},
creationTime=2019-06-13T12:37:22.741Z
}
{code}
{code:title=Web user}
SecurityIdentity{
principal=anonymous,
securityDomain=org.wildfly.security.auth.server.SecurityDomain at 453bb70,
authorizationIdentity=EMPTY,
realmInfo=RealmInfo{
name='default',
securityRealm=EMPTY_REALM
},
creationTime=2019-06-13T12:33:24.307Z
}
{code}
The user accessing localhost has no authorization, should they be granted a SuperUser status?
> Error when accessing metrics with RBAC enabled
> ----------------------------------------------
>
> Key: WFLY-11933
> URL: https://issues.jboss.org/browse/WFLY-11933
> Project: WildFly
> Issue Type: Bug
> Components: Management, MP Metrics
> Affects Versions: 16.0.0.Final, 17.0.0.Final
> Reporter: Claudio Weiler
> Assignee: Jeff Mesnil
> Priority: Major
>
> When RBAC is enabled for management in Wildfly 16, metrics throws exception:
> java.lang.IllegalStateException: WFLYMETRICS0003: Unable to read attribute XAForgetAverageTime on [
> ("subsystem" => "datasources"),
> ("data-source" => "ExampleDS"),
> ("statistics" => "pool")
> ]: "WFLYCTL0216: Management resource '[
> (\"subsystem\" => \"datasources\"),
> (\"data-source\" => \"ExampleDS\"),
> (\"statistics\" => \"pool\")
> ]' not found".
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list