-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: System Administration - Audit Logs
-
None
-
0
-
1
Bitbucket Mirrors follows the same log files organization as the Primary instances which consists of log files stored under <bitbucket_data_dir>/log and the main audit log files under <bitbucket_data_dir>/log/audit. While it's possible to configure audit log for the Primary instances (https://confluence.atlassian.com/bitbucketserver/view-and-configure-the-audit-log-776640417.html) the similar is not possible for the Mirror ones. This leaves Mirror instances without possibility to audit log some events. One notable example would be git-over-ssh operations for which an audit event is never logged, which may be main if not only user activity for Mirrors instances. This may be easily unacceptable for teams with a high requirements on audit logging. Additionally, having an audit.log file should inherently imply that user activities are logged and since that is the case with Primary instances, teams may naively assume that Primary and Mirror instances share the same behavior on the audit logging.
Today's workaround to trace git-over-ssh operations would be to include <bitbucket_data_dir>/log/atlassian-bitbucket-access.log into teams' audit routines. The workaround opens few questions though. Should atlassian-bitbucket-access.log be included alongside audit.log which would require handling of two different file formats for auditing? Or the atlassian-bitbucket-access.log could be used as single "source of truth", which would eliminate the intended purpose of audit logs and the important feature of tuning it up through the audit log settings page. Should the same solution be used for the Primary and Mirror instances for the sake of consistency?
The goal of this feature is to bring audit logging to Mirror instances as it was designed for Primary instances. There might be few different solutions but propagating at least most critical configurations settings from Primary to Mirror instances seems as a natural one to us. If a configuration settings is or is not applied on Mirror instances, it should be stated in front-end and/or documentation, to inform admins that Mirror instances do or do not mirror the configuration setting. Since this feature is focused on mirroring the audit logging configuration behavior, the expected use-case would be when admin alters the audit log settings on a Primary instance, the same settings will get applied to all Mirror instances. Preferably, admin users should be able to see if the settings have been synced to Mirror instances either from the audit log settings page under "Audit Log -> Settings" or the Mirror page under "Mirrors".