Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for auditID (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/audit/context.go

    	auditID, ok := AuditIDFrom(ctx)
    	if !ok {
    		return ""
    	}
    
    	// if the user has specified a very long audit ID then we will use the first N characters
    	// Note: assuming Audit-ID header is in ASCII
    	const maxAuditIDLength = 64
    	if len(auditID) > maxAuditIDLength {
    		auditID = auditID[:maxAuditIDLength]
    	}
    
    	return string(auditID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_init.go

    		ctx := audit.WithAuditContext(r.Context())
    		r = r.WithContext(ctx)
    
    		auditID := r.Header.Get(auditinternal.HeaderAuditID)
    		if len(auditID) == 0 {
    			auditID = newAuditIDFunc()
    		}
    
    		// Note: we save the user specified value of the Audit-ID header as is, no truncation is performed.
    		audit.WithAuditID(ctx, types.UID(auditID))
    
    		// We echo the Audit-ID in to the response header.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:35 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/audit/request.go

    		}
    		if ok {
    			obj = copy
    		}
    	}
    
    	// TODO(audit): hook into the serializer to avoid double conversion
    	var err error
    	ae.RequestObject, err = encodeObject(obj, objGV, s)
    	if err != nil {
    		// TODO(audit): add error slice to audit event struct
    		klog.ErrorS(err, "Encoding failed of request object", "auditID", ae.AuditID, "gvr", gvr.String(), "obj", obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    			return
    		}
    		http.Error(w, "This request caused apiserver to panic. Look in the logs for details.", http.StatusInternalServerError)
    		klog.ErrorS(nil, "apiserver panic'd", "method", req.Method, "URI", req.RequestURI, "auditID", audit.GetAuditIDTruncated(req.Context()))
    	})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go

    	newReq.URL = location
    	newReq.Host = location.Host
    
    	// If the original request has an audit ID, let's make sure we propagate this
    	// to the aggregated server.
    	if auditID, found := audit.AuditIDFrom(req.Context()); found {
    		newReq.Header.Set(auditinternal.HeaderAuditID, string(auditID))
    	}
    
    	return newReq, cancelFn
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 19 00:36:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/httplog/httplog.go

    		rl.StacktraceWhen(pred)
    	}
    }
    
    // Log is intended to be called once at the end of your request handler, via defer
    func (rl *respLogger) Log() {
    	latency := time.Since(rl.startTime)
    	auditID := audit.GetAuditIDTruncated(rl.req.Context())
    	verb := metrics.NormalizedVerb(rl.req)
    
    	keysAndValues := []interface{}{
    		"verb", verb,
    		"URI", rl.req.RequestURI,
    		"latency", latency,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 10:10:35 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline.go

    // with the appropriate deadline.
    // auditWrapper provides an http.Handler that audits a failed request.
    // longRunning returns true if he given request is a long running request.
    // requestTimeoutMaximum specifies the default request timeout value.
    func WithRequestDeadline(handler http.Handler, sink audit.Sink, policy audit.PolicyRuleEvaluator, longRunning request.LongRunningRequestCheck,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 21:12:12 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    	Size         int64
    	Atim31       [4]byte
    	Mtim31       [4]byte
    	Ctim31       [4]byte
    	Rdev         uint32
    	Auditoraudit uint32
    	Useraudit    uint32
    	Blksize      int32
    	Creatim31    [4]byte
    	AuditID      [16]byte
    	_            [4]byte // rsrvd1
    	File_tag     struct {
    		Ccsid   uint16
    		Txtflag uint16 // aggregating Txflag:1 deferred:1 rsvflags:14
    	}
    	CharsetID [8]byte
    	Blocks    int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. internal/logger/audit.go

    	internalAudit "github.com/minio/minio/internal/logger/message/audit"
    	"github.com/minio/minio/internal/mcontext"
    	"github.com/minio/pkg/v3/logger/message/audit"
    
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    const contextAuditKey = contextKeyType("audit-entry")
    
    // SetAuditEntry sets Audit info in the context.
    func SetAuditEntry(ctx context.Context, audit *audit.Entry) context.Context {
    	if ctx == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go

    // evaluatePolicyAndCreateAuditEvent is responsible for evaluating the audit
    // policy configuration applicable to the request and create a new audit
    // event that will be written to the API audit log.
    // - error if anything bad happened
    func evaluatePolicyAndCreateAuditEvent(req *http.Request, policy audit.PolicyRuleEvaluator) (*audit.AuditContext, error) {
    	ctx := req.Context()
    	ac := audit.AuditContextFrom(ctx)
    	if ac == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top