Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 119 for auditID (0.37 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    		if r.Context() != audit.WithAuditContext(r.Context()) {
    			t.Error("unexpected double wrapping of context")
    		}
    
    		// confirm that we have an audit event
    		ae := audit.AuditEventFrom(r.Context())
    		if ae == nil {
    			t.Error("unexpected nil audit event")
    		}
    
    		// confirm that the indirect way of setting audit annotations later in the chain also works
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/policy_decision.go

    const (
    	// AuditAnnotationActionPublish indicates that the audit annotation should be
    	// published with the audit event.
    	AuditAnnotationActionPublish PolicyAuditAnnotationAction = "publish"
    	// AuditAnnotationActionError indicates that the valueExpression resulted
    	// in an error.
    	AuditAnnotationActionError PolicyAuditAnnotationAction = "error"
    	// AuditAnnotationActionExclude indicates that the audit annotation should be excluded
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/recommended.go

    type RecommendedOptions struct {
    	Etcd           *EtcdOptions
    	SecureServing  *SecureServingOptionsWithLoopback
    	Authentication *DelegatingAuthenticationOptions
    	Authorization  *DelegatingAuthorizationOptions
    	Audit          *AuditOptions
    	Features       *FeatureOptions
    	CoreAPI        *CoreAPIOptions
    
    	// FeatureGate is a way to plumb feature gate through if you have them.
    	FeatureGate featuregate.FeatureGate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 18:51:27 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. common-protos/k8s.io/api/admissionregistration/v1alpha1/generated.proto

      // both for allowed or denied admission responses.
      //
      // "Audit" specifies that a validation failure is included in the published
      // audit event for the request. The audit event will contain a
      // `validation.policy.admission.k8s.io/validation_failure` audit annotation
      // with a value containing the details of the validation failures, formatted as
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go

    	}})
    	if err != nil {
    		klog.Warningf("Failed to set admission audit annotation %s for ValidatingAdmissionPolicy %s and ValidatingAdmissionPolicyBinding %s: %v", key, binding.Spec.PolicyName, binding.Name, err)
    	}
    	value := string(valueJSON)
    	if err := attributes.AddAnnotation(key, value); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/admissionregistration/v1alpha1/generated.proto

      // both for allowed or denied admission responses.
      //
      // "Audit" specifies that a validation failure is included in the published
      // audit event for the request. The audit event will contain a
      // `validation.policy.admission.k8s.io/validation_failure` audit annotation
      // with a value containing the details of the validation failures, formatted as
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  7. pilot/pkg/model/authorization.go

    		configs.Allow = append(configs.Allow, config)
    	case authpb.AuthorizationPolicy_DENY:
    		configs.Deny = append(configs.Deny, config)
    	case authpb.AuthorizationPolicy_AUDIT:
    		configs.Audit = append(configs.Audit, config)
    	case authpb.AuthorizationPolicy_CUSTOM:
    		configs.Custom = append(configs.Custom, config)
    	default:
    		log.Errorf("ignored authorization policy %s.%s with unsupported action: %s",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    					t.Errorf("Expected policy audit annotation action '%v' but got '%v'", auditAnnotation.Action, actual.Action)
    				}
    				if auditAnnotation.Error != actual.Error {
    					t.Errorf("Expected audit annotation error '%v' but got '%v'", auditAnnotation.Error, actual.Error)
    				}
    				if auditAnnotation.Value != actual.Value {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    	auditinternal "k8s.io/apiserver/pkg/apis/audit"
    	endpointsrequest "k8s.io/apiserver/pkg/endpoints/request"
    	webhookutil "k8s.io/apiserver/pkg/util/webhook"
    	"k8s.io/apiserver/pkg/warning"
    	"k8s.io/component-base/tracing"
    	"k8s.io/klog/v2"
    )
    
    const (
    	// PatchAuditAnnotationPrefix is a prefix for persisting webhook patch in audit annotation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. pkg/apis/admissionregistration/types.go

    	Warn ValidationAction = "Warn"
    	// Audit specifies that a validation failure is included in the published
    	// audit event for the request. The audit event will contain a
    	// `validation.policy.admission.k8s.io/validation_failure` audit annotation
    	// with a value containing the details of the validation failure.
    	Audit ValidationAction = "Audit"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 20:14:19 UTC 2024
    - 52.6K bytes
    - Viewed (0)
Back to top