We have Confluence DC (2 nodes) with direct connection do database (without DS) defined in server.xml.
We want to from script runner (console) get current connected and read / write some information to database without providing credentials. We know that they are resources to define, but for Jira we was able to read current APP context and do the db query directly. We don't won't multiple places where password is stored. Can anyone help mi wi this? Probably the same way is implemented in every custom plugin developed for confluence, to have ability to read database.