Re: Artemis - audit logging and anonymous user

2020-04-27 Thread Stephen M Groucutt
Thanks Andy, I added a comment to that issue to track. > On Apr 27, 2020, at 10:38 AM, andytaylor wrote: > > https://issues.apache.org/jira/browse/ARTEMIS-2648 > > feel free to add extra requirements > > > > -- > Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis - audit logging and anonymous user

2020-04-27 Thread andytaylor
https://issues.apache.org/jira/browse/ARTEMIS-2648 feel free to add extra requirements -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis - audit logging and anonymous user

2020-04-27 Thread andytaylor
just fyi, Im currently doing some workaround this to improve audit logging. basically being able to log the user and ip address in certain events and also refining the granularity, should have something in a week or so. -- Sent from:

Re: Artemis - audit logging and anonymous user

2020-04-26 Thread brusdev
Hi Steve, the AuditLogger is often called in a context without a `Subject`[1] so it can't log the right username. To avoid this issue the username could be passed explicitly as suggested by Howard. Each AuditLogger entry has 2 methods and adding the `user` parameter to the static one would allow

Re: Artemis - audit logging and anonymous user

2020-04-25 Thread Howard Gao
Some of the audit log method have the username passed in explicitly and so get correctly logged. Some others however don't, in which case the audit logger uses Subject.getSubject(context) in an attempt to acquire the caller. But within broker I believe most of the operations doesn't associated the

Artemis - audit logging and anonymous user

2020-04-24 Thread Stephen M Groucutt
Hi, We’re using Artemis 2.11.0 running on Red Hat 8 in a pod. We use the TextFileCertificateLoginModule for authentication, which has been working well for us. We are configured only for the AMQP acceptor using amqps on port 5671. My question is about the audit log output from the logger with