[ 
https://issues.apache.org/jira/browse/ARTEMIS-3765?focusedWorklogId=753655&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-753655
 ]

ASF GitHub Bot logged work on ARTEMIS-3765:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Apr/22 20:16
            Start Date: 06/Apr/22 20:16
    Worklog Time Spent: 10m 
      Work Description: ahoffer commented on code in PR #4019:
URL: https://github.com/apache/activemq-artemis/pull/4019#discussion_r844371477


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java:
##########
@@ -2651,7 +2651,7 @@ public void buildSessionJSON(JsonArrayBuilder array, 
ServerSession sess) {
       JsonObjectBuilder obj = 
JsonLoader.createObjectBuilder().add("sessionID", 
sess.getName()).add("creationTime", 
sess.getCreationTime()).add("consumerCount", sess.getServerConsumers().size());
 
       if (sess.getValidatedUser() != null) {
-         obj.add("principal", sess.getValidatedUser());
+         obj.add("validatedUser", sess.getValidatedUser());

Review Comment:
   I'm fine with either validated user or principal. I think it was Justin (?) 
who said to keep "validated user" to keep things consistent.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 753655)
    Time Spent: 40m  (was: 0.5h)

> Display validated user in Hawtio
> --------------------------------
>
>                 Key: ARTEMIS-3765
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3765
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>            Reporter: Aaron Hoffer
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> As a troubleshooter in the field, I would like to see the validated username 
> of a client in Hawtio, so that I can understand which client is producing or 
> consuming certain messages.
>  
> Our project use Hawtio to view the state of Artemis, and to troubleshoot 
> problems in the field. We recently switched to 2-way TLS for authentication. 
> A side effect of the change was that the "User" field  in Hawtio became blank 
> for some clients, probably because they stopped sending username to 
> authenticate. 
>  
> I have forked the Artemis GitHub repos, and I am ready to push a PR. I will 
> use this ticket number in the branch and PR names.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to