Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for OmitStages (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go

    			return auditinternal.RequestAuditConfig{
    				Level:             rule.Level,
    				OmitStages:        rule.OmitStages,
    				OmitManagedFields: isOmitManagedFields(&rule, p.OmitManagedFields),
    			}
    		}
    	}
    
    	return auditinternal.RequestAuditConfig{
    		Level:             DefaultAuditLevel,
    		OmitStages:        p.OmitStages,
    		OmitManagedFields: p.OmitManagedFields,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/apis/audit/validation/validation_test.go

    	}
    	successCases = append(successCases, audit.Policy{})                         // Empty policy is valid.
    	successCases = append(successCases, audit.Policy{OmitStages: []audit.Stage{ // Policy with omitStages
    		audit.Stage("RequestReceived")}})
    	successCases = append(successCases, audit.Policy{Rules: validRules}) // Multiple rules.
    
    	for i, policy := range successCases {
    		if errs := ValidatePolicy(&policy); len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go

    			return
    		}
    
    		if !ac.Enabled() {
    			handler.ServeHTTP(w, req)
    			return
    		}
    		ev := &ac.Event
    
    		ctx := req.Context()
    		omitStages := ac.RequestAuditConfig.OmitStages
    
    		ev.Stage = auditinternal.StageRequestReceived
    		if processed := processAuditEvent(ctx, sink, ev, omitStages); !processed {
    			audit.ApiserverAuditDroppedCounter.WithContext(ctx).Inc()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/types.go

    	Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"`
    
    	// OmitStages is a list of stages for which no events are created. Note that this can also
    	// be specified per rule in which case the union of both are omitted.
    	// +optional
    	// +listType=atomic
    	OmitStages []Stage `json:"omitStages,omitempty" protobuf:"bytes,3,rep,name=omitStages"`
    
    	// OmitManagedFields indicates whether to omit the managed fields of the request
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:24:10 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/generated.pb.go

    	if m.OmitManagedFields {
    		dAtA[i] = 1
    	} else {
    		dAtA[i] = 0
    	}
    	i--
    	dAtA[i] = 0x20
    	if len(m.OmitStages) > 0 {
    		for iNdEx := len(m.OmitStages) - 1; iNdEx >= 0; iNdEx-- {
    			i -= len(m.OmitStages[iNdEx])
    			copy(dAtA[i:], m.OmitStages[iNdEx])
    			i = encodeVarintGenerated(dAtA, i, uint64(len(m.OmitStages[iNdEx])))
    			i--
    			dAtA[i] = 0x1a
    		}
    	}
    	if len(m.Rules) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 81.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/audit/evaluator.go

    type RequestAuditConfig struct {
    	// Level at which the request is being audited at
    	Level audit.Level
    
    	// OmitStages is the stages that need to be omitted from being audited.
    	OmitStages []audit.Stage
    
    	// OmitManagedFields indicates whether to omit the managed fields of the request
    	// and response bodies from being written to the API audit log.
    	OmitManagedFields bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/generated.proto

      // PolicyRules are strictly ordered.
      // +listType=atomic
      repeated PolicyRule rules = 2;
    
      // OmitStages is a list of stages for which no events are created. Note that this can also
      // be specified per rule in which case the union of both are omitted.
      // +optional
      // +listType=atomic
      repeated string omitStages = 3;
    
      // OmitManagedFields indicates whether to omit the managed fields of the request
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/audit/types.go

    	// PolicyRules are strictly ordered.
    	Rules []PolicyRule
    
    	// OmitStages is a list of stages for which no events are created. Note that this can also
    	// be specified per rule in which case the union of both are omitted.
    	// +optional
    	OmitStages []Stage
    
    	// OmitManagedFields indicates whether to omit the managed fields of the request
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 09:18:23 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit.go

    		ev.ResponseStatus = &metav1.Status{}
    		ev.ResponseStatus.Message = getAuthMethods(req)
    		ev.Stage = auditinternal.StageResponseStarted
    
    		rw := decorateResponseWriter(req.Context(), w, ev, sink, ac.RequestAuditConfig.OmitStages)
    		failedHandler.ServeHTTP(rw, req)
    	})
    }
    
    func getAuthMethods(req *http.Request) string {
    	authMethods := []string{}
    
    	if _, _, ok := req.BasicAuth(); ok {
    		authMethods = append(authMethods, "basic")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline.go

    		ev.Stage = auditinternal.StageResponseStarted
    		if statusErr != nil {
    			ev.ResponseStatus.Message = statusErr.Error()
    		}
    
    		rw := decorateResponseWriter(req.Context(), w, ev, sink, ac.RequestAuditConfig.OmitStages)
    		failedHandler.ServeHTTP(rw, req)
    	})
    }
    
    // failedErrorHandler returns an http.Handler that uses the specified StatusError object
    // to render an error response to the request.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 21:12:12 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top