Class Audit
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.Audit
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AuditBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Audit extends Object implements io.fabric8.kubernetes.api.builder.Editable<AuditBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Audit()No args constructor for use in serializationAudit(List<AuditCustomRule> customRules, String profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditBuilderedit()Map<String,Object>getAdditionalProperties()List<AuditCustomRule>getCustomRules()customRules specify profiles per group.StringgetProfile()profile specifies the name of the desired top-level audit profile to be applied to all requests sent to any of the OpenShift-provided API servers in the cluster (kube-apiserver, openshift-apiserver and oauth-apiserver), with the exception of those requests that match one or more of the customRules.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCustomRules(List<AuditCustomRule> customRules)customRules specify profiles per group.voidsetProfile(String profile)profile specifies the name of the desired top-level audit profile to be applied to all requests sent to any of the OpenShift-provided API servers in the cluster (kube-apiserver, openshift-apiserver and oauth-apiserver), with the exception of those requests that match one or more of the customRules.AuditBuildertoBuilder()
-
-
-
Constructor Detail
-
Audit
public Audit()
No args constructor for use in serialization
-
Audit
public Audit(List<AuditCustomRule> customRules, String profile)
-
-
Method Detail
-
getCustomRules
public List<AuditCustomRule> getCustomRules()
customRules specify profiles per group. These profile take precedence over the top-level profile field if they apply. They are evaluation from top to bottom and the first one that matches, applies.
-
setCustomRules
public void setCustomRules(List<AuditCustomRule> customRules)
customRules specify profiles per group. These profile take precedence over the top-level profile field if they apply. They are evaluation from top to bottom and the first one that matches, applies.
-
getProfile
public String getProfile()
profile specifies the name of the desired top-level audit profile to be applied to all requests sent to any of the OpenShift-provided API servers in the cluster (kube-apiserver, openshift-apiserver and oauth-apiserver), with the exception of those requests that match one or more of the customRules.The following profiles are provided: - Default: default policy which means MetaData level logging with the exception of events
(not logged at all), oauthaccesstokens and oauthauthorizetokens (both logged at RequestBody
level).
- WriteRequestBodies: like 'Default', but logs request and response HTTP payloads for write requests (create, update, patch). - AllRequestBodies: like 'WriteRequestBodies', but also logs request and response HTTP payloads for read requests (get, list). - None: no requests are logged at all, not even oauthaccesstokens and oauthauthorizetokens.
Warning: It is not recommended to disable audit logging by using the `None` profile unless you are fully aware of the risks of not logging data that can be beneficial when troubleshooting issues. If you disable audit logging and a support situation arises, you might need to enable audit logging and reproduce the issue in order to troubleshoot properly.
If unset, the 'Default' profile is used as the default.
-
setProfile
public void setProfile(String profile)
profile specifies the name of the desired top-level audit profile to be applied to all requests sent to any of the OpenShift-provided API servers in the cluster (kube-apiserver, openshift-apiserver and oauth-apiserver), with the exception of those requests that match one or more of the customRules.The following profiles are provided: - Default: default policy which means MetaData level logging with the exception of events
(not logged at all), oauthaccesstokens and oauthauthorizetokens (both logged at RequestBody
level).
- WriteRequestBodies: like 'Default', but logs request and response HTTP payloads for write requests (create, update, patch). - AllRequestBodies: like 'WriteRequestBodies', but also logs request and response HTTP payloads for read requests (get, list). - None: no requests are logged at all, not even oauthaccesstokens and oauthauthorizetokens.
Warning: It is not recommended to disable audit logging by using the `None` profile unless you are fully aware of the risks of not logging data that can be beneficial when troubleshooting issues. If you disable audit logging and a support situation arises, you might need to enable audit logging and reproduce the issue in order to troubleshoot properly.
If unset, the 'Default' profile is used as the default.
-
edit
public AuditBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AuditBuilder>
-
toBuilder
public AuditBuilder toBuilder()
-
-