Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetConnectionAddress (0.13 sec)

  1. security/pkg/server/ca/server.go

    	if caller == nil || err != nil {
    		s.monitoring.AuthnError.Increment()
    		return nil, status.Error(codes.Unauthenticated, "request authenticate failure")
    	}
    
    	serverCaLog := serverCaLog.WithLabels("client", security.GetConnectionAddress(ctx))
    	// By default, we will use the callers identity for the certificate
    	sans := caller.Identities
    	crMetadata := request.Metadata.GetFields()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:26 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. pkg/security/security.go

    	// http request
    	Request *http.Request
    }
    
    // RemoteAddress returns the authenticated remote address from AuthContext.
    func (ac *AuthContext) RemoteAddress() string {
    	if ac.GrpcContext != nil {
    		return GetConnectionAddress(ac.GrpcContext)
    	} else if ac.Request != nil {
    		return ac.Request.RemoteAddr
    	}
    	return ""
    }
    
    // Header returns the authenticated remote address from AuthContext.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
Back to top