Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-25035

audited remoteconnectionstatusevent does not include repository status

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.26.1
    • Fix Version/s: None
    • Component/s: Audit
    • Labels:

      Description

      When a proxy repository remote status changes, and Auditing is enabled. an event is recorded inside the audit.log:

      Examples:

      {"timestamp":"2020-08-24 15:24:05,954+0000","nodeId":"EBF05288-483E630D-143F8F80-3A84FB5C-4F47B75F","initiator":"admin/127.0.0.1","domain":"repository","type":"remoteconnectionstatusevent","context":"atlassian-maven","thread":"qtp394429141-37860","attributes":{"name":"atlassian-maven","format":"maven2","type":"proxy"}}
      
      {"timestamp":"2020-08-24 15:25:46,618+0000","nodeId":"EBF05288-483E630D-143F8F80-3A84FB5C-4F47B75F","initiator":"admin/127.0.0.1","domain":"repository","type":"remoteconnectionstatusevent","context":"atlassian-maven","thread":"qtp394429141-37846","attributes":{"name":"atlassian-maven","format":"maven2","type":"proxy"}}
      
      {"timestamp":"2020-08-24 15:25:48,410+0000","nodeId":"EBF05288-483E630D-143F8F80-3A84FB5C-4F47B75F","initiator":"admin/127.0.0.1","domain":"repository","type":"remoteconnectionstatusevent","context":"atlassian-maven","thread":"qtp394429141-38291","attributes":{"name":"atlassian-maven","format":"maven2","type":"proxy"}} 
      

      The events are missing what the status of the proxy repository was changed to and from. This information is only available inside the nexus.log.

      2020-08-24 14:30:47,821+0000 INFO [qtp394429141-34093] admin org.sonatype.nexus.repository.httpclient.internal.HttpClientCustomConfigFacetImpl - Repository status for atlassian-maven changed from AVAILABLE to AUTO_BLOCKED_UNAVAILABLE until 2020-08-24T14:31:27.821Z - reason Unauthorized for https://packages.atlassian.com

      2020-08-24 15:25:48,410+0000 INFO [qtp394429141-38291] admin org.sonatype.nexus.repository.httpclient.internal.HttpClientCustomConfigFacetImpl - Repository status for atlassian-maven changed from AVAILABLE to UNAVAILABLE - reason Unauthorized for https://packages.atlassian.com

      Expected

      Record the before and after status of the repo remoteconnectionstatusevent in the audit.log with the log entry.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Wes Wannemacher [X] Wes Wannemacher [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title