Eliminate AuthorizationSession::hasInternalAuthorization()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Replication, Security
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The AuthorizationSession::hasInternalAuthorization() method is implemented in terms of an outdated notion of "internal user". The only callers of the method are two implementations of replAuthentication(), which are essentially trying to provide a runtime check of a programming error. Specifically, the checks try to prevent a command running on behalf of a user (and not the cluster) from establishing a connection to another cluster member as a cluster member. However, this check provides no real safety. The errant programmer could simply pass "true" to the "skipAuthChecks" parameter of replAuthenticate() on the bad code path, or invoke a method that does.

            Assignee:
            Andy Schwerin
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: