How to improve the javamelody plugin in Bitbucket (Spring post-processor and get current user)

Emeric Vernat
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 11, 2018

The javamelody plugin is now compatible with Bitbucket. See doc.

1. But currently, jdbc connections and SQL requests are not monitored by the plugin.

How would it be possible to import in Bitbucket from the plugin a Spring post-processor for Bitbucket's datasource, like this one which exists in the javamelody spring-boot-starter ?

2. And currently, the plugin does not restrict access to the monitoring page to the Bitbucket's administrator using Bitbucket's login. It's because there is no easy access to the user from the http session and Bitbucket's AuthenticationContext does not give access to the user given the order of filters (that is AuthenticationContext and Spring's SecurityContext do not contain the user yet in the plugin's filter).

Would it be possible, in the plugin's filter, to get the current authenticated user if any from a http session or a http request? Possibly with changes to some Bitbucket's classes which Atlassian may accept.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events