You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// +kubebuilder:validation:XValidation:rule="self.type == 'file' || !has(self.fileOptions)",message="fileOptions is only supported when type is file"
1054
+
// +kubebuilder:validation:XValidation:rule="self.type != 'file' || has(self.fileOptions)",message="fileOptions is required when type is file"
1055
+
// +kubebuilder:validation:XValidation:rule="self.type == 'http' || !has(self.httpOptions)",message="httpOptions is only supported when type is http"
1056
+
// +kubebuilder:validation:XValidation:rule="self.type != 'http' || has(self.httpOptions)",message="httpOptions is required when type is http"
1057
+
// +kubebuilder:validation:XValidation:rule="self.type == 'syslog' || !has(self.syslogOptions)",message="syslogOptions is only supported when type is syslog"
1058
+
// +kubebuilder:validation:XValidation:rule="self.type == 'socket' || !has(self.socketOptions)",message="socketOptions is only supported when type is socket"
1053
1059
typeSelfInitAuditDevicestruct {
1054
1060
// Type is the type of audit device (e.g., "file", "syslog", "socket", "http").
// +kubebuilder:validation:XValidation:rule="self.type == 'file' || !has(self.fileOptions)",message="fileOptions is only supported when type is file"
2493
+
// +kubebuilder:validation:XValidation:rule="self.type == 'http' || !has(self.httpOptions)",message="httpOptions is only supported when type is http"
2494
+
// +kubebuilder:validation:XValidation:rule="self.type == 'syslog' || !has(self.syslogOptions)",message="syslogOptions is only supported when type is syslog"
2495
+
// +kubebuilder:validation:XValidation:rule="self.type == 'socket' || !has(self.socketOptions)",message="socketOptions is only supported when type is socket"
2484
2496
typeAuditDevicestruct {
2485
2497
// Type is the type of audit device (e.g., "file", "syslog", "socket", "http").
Copy file name to clipboardExpand all lines: docs/reference/api.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ _Appears in:_
160
160
|`httpOptions`_[HTTPAuditOptions](#httpauditoptions)_| HTTPOptions configures options for HTTP audit devices.<br />Only used when Type is "http". || Optional: \{\} <br /> |
161
161
|`syslogOptions`_[SyslogAuditOptions](#syslogauditoptions)_| SyslogOptions configures options for syslog audit devices.<br />Only used when Type is "syslog". || Optional: \{\} <br /> |
162
162
|`socketOptions`_[SocketAuditOptions](#socketauditoptions)_| SocketOptions configures options for socket audit devices.<br />Only used when Type is "socket". || Optional: \{\} <br /> |
163
-
|`options`_[JSON](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#json-v1-apiextensions-k8s-io)_| Options contains device-specific configuration options as a map.<br />This is a fallback for backward compatibility and advanced use cases.<br />If structured options (FileOptions, HTTPOptions, etc.) are provided, they take precedence.<br />The structure depends on the audit device type. || Optional: \{\} <br /> |
163
+
|`options`_[JSON](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#json-v1-apiextensions-k8s-io)_| Options contains device-specific configuration options as a string map.<br />This is a fallback for backward compatibility and advanced use cases.<br />If structured options (FileOptions, HTTPOptions, etc.) are provided, they take precedence.<br />OpenBao audit options are string-to-string; scalar JSON values are rendered as strings,<br />while nested objects and arrays are rejected. For HTTP headers, prefer httpOptions.headers. || Optional: \{\} <br /> |
164
164
165
165
166
166
#### AutoRollbackConfig
@@ -642,7 +642,7 @@ _Appears in:_
642
642
| Field | Description | Default | Validation |
643
643
| --- | --- | --- | --- |
644
644
|`uri`_string_| URI is the URI of the remote server where the audit logs will be written. || MinLength: 1 <br /> |
645
-
|`headers`_[JSON](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#json-v1-apiextensions-k8s-io)_| Headers is a JSON object describing headers. Must take the shape map[string][]string,<br />i.e., an object of headers, with each having one or more values.<br />Headers without values will be ignored. || Optional: \{\} <br /> |
645
+
|`headers`_[JSON](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#json-v1-apiextensions-k8s-io)_| Headers is a JSON object describing headers. Must take the shape map[string][]string,<br />i.e., an object of headers, with each having one or more values.<br />Headers without values will be ignored. The operator renders this object as OpenBao's<br />expected JSON-encoded options.headers string. || Optional: \{\} <br /> |
0 commit comments