Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for auditlog (0.17 sec)

  1. cmd/listen-notification-handlers.go

    	"github.com/minio/pkg/v3/policy"
    )
    
    func (api objectAPIHandlers) ListenNotificationHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "ListenNotification")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    	// Validate if bucket exists.
    	objAPI := api.ObjectAPI()
    	if objAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. cmd/auth-handler.go

    				}
    
    				// All our internal APIs are sensitive towards Date
    				// header, for all requests where Date header is not
    				// present we will reject such clients.
    				defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    				writeErrorResponse(r.Context(), w, errorCodes.ToAPIErr(errCode), r.URL)
    				atomic.AddUint64(&globalHTTPStats.rejectedRequestsTime, 1)
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. cmd/admin-router.go

    // handlers:
    //
    // - updates request context with `logger.ReqInfo` and api name based on the
    // name of the function handler passed (this handler must be a method of
    // `adminAPIHandlers`).
    //
    // - sets up call to send AuditLog
    //
    // While this is a middleware function (i.e. it takes a handler function and
    // returns one), due to flags being passed based on required conditions, it is
    // done per-"handler function registration" in the router.
    //
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. cmd/handler-utils.go

    	return func(w http.ResponseWriter, r *http.Request) {
    		resource, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    		if err != nil {
    			defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    
    			apiErr := errorCodes.ToAPIErr(ErrUnsupportedHostHeader)
    			apiErr.Description = fmt.Sprintf("%s: %v", apiErr.Description, err)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. cmd/utils.go

    	// set during decommissioning.
    	if reqInfo := logger.GetReqInfo(ctx); reqInfo != nil {
    		reqInfo.PopulateTagsMap(opts.Tags)
    	}
    	ctx = logger.SetAuditEntry(ctx, &entry)
    	logger.AuditLog(ctx, nil, nil, nil)
    }
    
    func newTLSConfig(getCert certs.GetCertificateFunc) *tls.Config {
    	if getCert == nil {
    		return nil
    	}
    
    	tlsConfig := &tls.Config{
    		PreferServerCipherSuites: true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom.go

    			VersionID:    objInfo.VersionID,
    			UserDefined:  objInfo.UserDefined,
    			NoAuditLog:   true,
    			SrcPoolIdx:   idx,
    			DataMovement: true,
    		})
    		if err != nil {
    			return fmt.Errorf("decommissionObject: NewMultipartUpload() %w", err)
    		}
    		defer z.AbortMultipartUpload(ctx, bucket, objInfo.Name, res.UploadID, ObjectOptions{NoAuditLog: true})
    		parts := make([]CompletePart, len(objInfo.Parts))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool-rebalance.go

    			VersionID:    oi.VersionID,
    			UserDefined:  oi.UserDefined,
    			NoAuditLog:   true,
    			DataMovement: true,
    			SrcPoolIdx:   poolIdx,
    		})
    		if err != nil {
    			return fmt.Errorf("rebalanceObject: NewMultipartUpload() %w", err)
    		}
    		defer z.AbortMultipartUpload(ctx, bucket, oi.Name, res.UploadID, ObjectOptions{NoAuditLog: true})
    
    		parts := make([]CompletePart, len(oi.Parts))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  8. cmd/metrics-v3.go

    		[]MetricDescriptor{
    			webhookFailedMessagesMD,
    			webhookQueueLengthMD,
    			webhookTotalMessagesMD,
    		},
    		loadLoggerWebhookMetrics,
    	)
    
    	auditMG := NewMetricsGroup(auditCollectorPath,
    		[]MetricDescriptor{
    			auditFailedMessagesMD,
    			auditTargetQueueLengthMD,
    			auditTotalMessagesMD,
    		},
    		loadAuditMetrics,
    	)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 02 00:55:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. cmd/erasure-multipart.go

    //
    // Implements S3 compatible initiate multipart API.
    func (er erasureObjects) NewMultipartUpload(ctx context.Context, bucket, object string, opts ObjectOptions) (*NewMultipartUploadResult, error) {
    	if !opts.NoAuditLog {
    		auditObjectErasureSet(ctx, "NewMultipartUpload", object, &er)
    	}
    
    	return er.newMultipartUpload(ctx, bucket, object, opts)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  10. internal/http/response-recorder.go

    	if lrw.ttfbBody != 0 {
    		return lrw.ttfbBody
    	}
    	return lrw.ttfbHeader
    }
    
    // NewResponseRecorder - returns a wrapped response writer to trap
    // http status codes for auditing purposes.
    func NewResponseRecorder(w http.ResponseWriter) *ResponseRecorder {
    	rf, _ := w.(io.ReaderFrom)
    	return &ResponseRecorder{
    		ResponseWriter: w,
    		ReaderFrom:     rf,
    		StatusCode:     http.StatusOK,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top