Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for OmitStages (0.2 sec)

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

    				ResourceNames: []string{"edit"},
    			}},
    		},
    		"omit RequestReceived": {
    			Level: audit.LevelRequest,
    			OmitStages: []audit.Stage{
    				audit.StageRequestReceived,
    			},
    		},
    		"only audit panic": {
    			Level: audit.LevelRequest,
    			OmitStages: []audit.Stage{
    				audit.StageRequestReceived,
    				audit.StageResponseStarted,
    				audit.StageResponseComplete,
    			},
    		},
    	}
    )
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 12 15:06:14 UTC 2021
    - 15.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go

    	delay := 500 * time.Millisecond
    
    	for _, test := range []struct {
    		desc       string
    		path       string
    		verb       string
    		auditID    string
    		omitStages []auditinternal.Stage
    		handler    func(http.ResponseWriter, *http.Request)
    		expected   []auditinternal.Event
    		respHeader bool
    	}{
    		// short running requests with read-only verb
    		{
    			"read-only empty",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  7. cluster/gce/gci/audit_policy_test.go

    	t.Run(name, func(t *testing.T) {
    		auditConfig := evaluator.EvaluatePolicyRule(attrs)
    		assert.Equal(t, expected, auditConfig.Level)
    		if auditConfig.Level != audit.LevelNone {
    			assert.ElementsMatch(t, auditConfig.OmitStages, []audit.Stage{audit.StageRequestReceived})
    		}
    	})
    }
    
    func newUserInfo(name string, groups ...string) user.Info {
    	return &user.DefaultInfo{
    		Name:   name,
    		Groups: groups,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:23:50 UTC 2021
    - 9.8K bytes
    - Viewed (0)
  8. cluster/gce/gci/configure-helper.sh

            resources: ["tokenreviews"]
        omitStages:
          - "RequestReceived"
      # Get responses can be large; skip them.
      - level: Request
        verbs: ["get", "list", "watch"]
        resources: ${known_apis}
        omitStages:
          - "RequestReceived"
      # Default level for known APIs
      - level: RequestResponse
        resources: ${known_apis}
        omitStages:
          - "RequestReceived"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  9. pkg/generated/openapi/zz_generated.openapi.go

    									},
    								},
    							},
    						},
    					},
    					"omitStages": {
    						VendorExtensible: spec.VendorExtensible{
    							Extensions: spec.Extensions{
    								"x-kubernetes-list-type": "atomic",
    							},
    						},
    						SchemaProps: spec.SchemaProps{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
Back to top