Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-14852

User Attribute "lastLoggedIn" shall log API/Repo access as well

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.8.1
    • Component/s: Binary Provider , REST API
    • Labels:
      None

      Description

      I Recognized that the
      User Attribute "lastLoggedIn" in Artifactory:

      application/vnd.org.jfrog.artifactory.security.User+json
      {{{

      • "name": "davids",
        + "email" : "davids@jfrog.com",
        + "password": "***" (write-only, never returned),
      • "admin": false (default),
      • "profileUpdatable": true (default),
      • "disableUIAccess" : true,
      • "internalPasswordDisabled": false (default),
        ! "lastLoggedIn": ISO8601 (yyyy-MM-dd'T'HH:mm:ss.SSSZ),
        ! "realm": "Internal",
      • "groups" : [ "deployers", "users" ]
        }}}

      is only updated if the User logged in via GUI.
      We have lots of automation users and while analyzing login/authorisation Incidents/Problems we mostly use "lastLoggedIn" as indication to validate the most common answer "worked before". Thus it's sad it does not show the last log in/usage on Artifactory.
      Currently the workaround is to grep the access.log for the username that shall have been logged in... voila.

      My suggestion of two possible approaches:
      1) also log the lastLoggedIn for api/repo access
      2) or add a new attribute: lastAccess (and maybe rename lastLoggedIn to lastGUILogIn) loggin the last access with that username.

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              felix.herzog Felix Herzog
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: