mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-22 14:32:35 +00:00
Remove "Replay" function functionality (#1563)
This commit is contained in:
parent
e7778fe537
commit
c88b3b0ba7
@ -64,7 +64,6 @@ func CreateDefaultConfig() ConfigStruct {
|
|||||||
Roles: map[string]configStructs.Role{
|
Roles: map[string]configStructs.Role{
|
||||||
"admin": {
|
"admin": {
|
||||||
Filter: "",
|
Filter: "",
|
||||||
CanReplayTraffic: true,
|
|
||||||
CanDownloadPCAP: true,
|
CanDownloadPCAP: true,
|
||||||
CanUseScripting: true,
|
CanUseScripting: true,
|
||||||
CanUpdateTargetedPods: true,
|
CanUpdateTargetedPods: true,
|
||||||
|
@ -91,7 +91,6 @@ type ResourcesConfig struct {
|
|||||||
|
|
||||||
type Role struct {
|
type Role struct {
|
||||||
Filter string `yaml:"filter" json:"filter" default:""`
|
Filter string `yaml:"filter" json:"filter" default:""`
|
||||||
CanReplayTraffic bool `yaml:"canReplayTraffic" json:"canReplayTraffic" default:"false"`
|
|
||||||
CanDownloadPCAP bool `yaml:"canDownloadPCAP" json:"canDownloadPCAP" default:"false"`
|
CanDownloadPCAP bool `yaml:"canDownloadPCAP" json:"canDownloadPCAP" default:"false"`
|
||||||
CanUseScripting bool `yaml:"canUseScripting" json:"canUseScripting" default:"false"`
|
CanUseScripting bool `yaml:"canUseScripting" json:"canUseScripting" default:"false"`
|
||||||
CanUpdateTargetedPods bool `yaml:"canUpdateTargetedPods" json:"canUpdateTargetedPods" default:"false"`
|
CanUpdateTargetedPods bool `yaml:"canUpdateTargetedPods" json:"canUpdateTargetedPods" default:"false"`
|
||||||
@ -187,7 +186,6 @@ type TapConfig struct {
|
|||||||
KernelModule KernelModuleConfig `yaml:"kernelModule" json:"kernelModule"`
|
KernelModule KernelModuleConfig `yaml:"kernelModule" json:"kernelModule"`
|
||||||
Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"`
|
Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"`
|
||||||
DefaultFilter string `yaml:"defaultFilter" json:"defaultFilter"`
|
DefaultFilter string `yaml:"defaultFilter" json:"defaultFilter"`
|
||||||
ReplayDisabled bool `yaml:"replayDisabled" json:"replayDisabled" default:"false"`
|
|
||||||
ScriptingDisabled bool `yaml:"scriptingDisabled" json:"scriptingDisabled" default:"false"`
|
ScriptingDisabled bool `yaml:"scriptingDisabled" json:"scriptingDisabled" default:"false"`
|
||||||
TargetedPodsUpdateDisabled bool `yaml:"targetedPodsUpdateDisabled" json:"targetedPodsUpdateDisabled" default:"false"`
|
TargetedPodsUpdateDisabled bool `yaml:"targetedPodsUpdateDisabled" json:"targetedPodsUpdateDisabled" default:"false"`
|
||||||
RecordingDisabled bool `yaml:"recordingDisabled" json:"recordingDisabled" default:"false"`
|
RecordingDisabled bool `yaml:"recordingDisabled" json:"recordingDisabled" default:"false"`
|
||||||
|
@ -157,7 +157,7 @@ Please refer to [metrics](./metrics.md) documentation for details.
|
|||||||
| `tap.auth.saml.x509crt` | A self-signed X.509 `.cert` contents <br/>(effective, if `tap.auth.type = saml`) | `` |
|
| `tap.auth.saml.x509crt` | A self-signed X.509 `.cert` contents <br/>(effective, if `tap.auth.type = saml`) | `` |
|
||||||
| `tap.auth.saml.x509key` | A self-signed X.509 `.key` contents <br/>(effective, if `tap.auth.type = saml`) | `` |
|
| `tap.auth.saml.x509key` | A self-signed X.509 `.key` contents <br/>(effective, if `tap.auth.type = saml`) | `` |
|
||||||
| `tap.auth.saml.roleAttribute` | A SAML attribute name corresponding to user's authorization role <br/>(effective, if `tap.auth.type = saml`) | `role` |
|
| `tap.auth.saml.roleAttribute` | A SAML attribute name corresponding to user's authorization role <br/>(effective, if `tap.auth.type = saml`) | `role` |
|
||||||
| `tap.auth.saml.roles` | A list of SAML authorization roles and their permissions <br/>(effective, if `tap.auth.type = saml`) | `{"admin":{"canDownloadPCAP":true,"canReplayTraffic":true,"canUpdateTargetedPods":true,"canUseScripting":true,"filter":"","showAdminConsoleLink":true}}` |
|
| `tap.auth.saml.roles` | A list of SAML authorization roles and their permissions <br/>(effective, if `tap.auth.type = saml`) | `{"admin":{"canDownloadPCAP":true,"canUpdateTargetedPods":true,"canUseScripting":true,"filter":"","showAdminConsoleLink":true}}` |
|
||||||
| `tap.ingress.enabled` | Enable `Ingress` | `false` |
|
| `tap.ingress.enabled` | Enable `Ingress` | `false` |
|
||||||
| `tap.ingress.className` | Ingress class name | `""` |
|
| `tap.ingress.className` | Ingress class name | `""` |
|
||||||
| `tap.ingress.host` | Host of the `Ingress` | `ks.svc.cluster.local` |
|
| `tap.ingress.host` | Host of the `Ingress` | `ks.svc.cluster.local` |
|
||||||
|
@ -38,8 +38,6 @@ spec:
|
|||||||
value: '{{ not (eq .Values.tap.auth.saml.idpMetadataUrl "") | ternary .Values.tap.auth.saml.idpMetadataUrl " " }}'
|
value: '{{ not (eq .Values.tap.auth.saml.idpMetadataUrl "") | ternary .Values.tap.auth.saml.idpMetadataUrl " " }}'
|
||||||
- name: REACT_APP_TIMEZONE
|
- name: REACT_APP_TIMEZONE
|
||||||
value: '{{ not (eq .Values.timezone "") | ternary .Values.timezone " " }}'
|
value: '{{ not (eq .Values.timezone "") | ternary .Values.timezone " " }}'
|
||||||
- name: REACT_APP_REPLAY_DISABLED
|
|
||||||
value: '{{ .Values.tap.replayDisabled }}'
|
|
||||||
- name: REACT_APP_SCRIPTING_DISABLED
|
- name: REACT_APP_SCRIPTING_DISABLED
|
||||||
value: '{{ .Values.tap.scriptingDisabled }}'
|
value: '{{ .Values.tap.scriptingDisabled }}'
|
||||||
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
||||||
|
@ -25,7 +25,6 @@ data:
|
|||||||
AUTH_SAML_ROLE_ATTRIBUTE: '{{ .Values.tap.auth.saml.roleAttribute }}'
|
AUTH_SAML_ROLE_ATTRIBUTE: '{{ .Values.tap.auth.saml.roleAttribute }}'
|
||||||
AUTH_SAML_ROLES: '{{ .Values.tap.auth.saml.roles | toJson }}'
|
AUTH_SAML_ROLES: '{{ .Values.tap.auth.saml.roles | toJson }}'
|
||||||
TELEMETRY_DISABLED: '{{ not .Values.tap.telemetry.enabled | ternary "true" "" }}'
|
TELEMETRY_DISABLED: '{{ not .Values.tap.telemetry.enabled | ternary "true" "" }}'
|
||||||
REPLAY_DISABLED: '{{ .Values.tap.replayDisabled | ternary "true" "" }}'
|
|
||||||
SCRIPTING_DISABLED: '{{ .Values.tap.scriptingDisabled | ternary "true" "" }}'
|
SCRIPTING_DISABLED: '{{ .Values.tap.scriptingDisabled | ternary "true" "" }}'
|
||||||
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.targetedPodsUpdateDisabled | ternary "true" "" }}'
|
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.targetedPodsUpdateDisabled | ternary "true" "" }}'
|
||||||
RECORDING_DISABLED: '{{ .Values.tap.recordingDisabled | ternary "true" "" }}'
|
RECORDING_DISABLED: '{{ .Values.tap.recordingDisabled | ternary "true" "" }}'
|
||||||
|
@ -75,7 +75,6 @@ tap:
|
|||||||
roles:
|
roles:
|
||||||
admin:
|
admin:
|
||||||
filter: ""
|
filter: ""
|
||||||
canReplayTraffic: true
|
|
||||||
canDownloadPCAP: true
|
canDownloadPCAP: true
|
||||||
canUseScripting: true
|
canUseScripting: true
|
||||||
canUpdateTargetedPods: true
|
canUpdateTargetedPods: true
|
||||||
@ -95,7 +94,6 @@ tap:
|
|||||||
telemetry:
|
telemetry:
|
||||||
enabled: true
|
enabled: true
|
||||||
defaultFilter: ""
|
defaultFilter: ""
|
||||||
replayDisabled: false
|
|
||||||
scriptingDisabled: false
|
scriptingDisabled: false
|
||||||
targetedPodsUpdateDisabled: false
|
targetedPodsUpdateDisabled: false
|
||||||
recordingDisabled: false
|
recordingDisabled: false
|
||||||
|
@ -234,9 +234,8 @@ data:
|
|||||||
AUTH_TYPE: 'oidc'
|
AUTH_TYPE: 'oidc'
|
||||||
AUTH_SAML_IDP_METADATA_URL: ''
|
AUTH_SAML_IDP_METADATA_URL: ''
|
||||||
AUTH_SAML_ROLE_ATTRIBUTE: 'role'
|
AUTH_SAML_ROLE_ATTRIBUTE: 'role'
|
||||||
AUTH_SAML_ROLES: '{"admin":{"canDownloadPCAP":true,"canReplayTraffic":true,"canUpdateTargetedPods":true,"canUseScripting":true,"filter":"","showAdminConsoleLink":true}}'
|
AUTH_SAML_ROLES: '{"admin":{"canDownloadPCAP":true,"canUpdateTargetedPods":true,"canUseScripting":true,"filter":"","showAdminConsoleLink":true}}'
|
||||||
TELEMETRY_DISABLED: ''
|
TELEMETRY_DISABLED: ''
|
||||||
REPLAY_DISABLED: ''
|
|
||||||
SCRIPTING_DISABLED: ''
|
SCRIPTING_DISABLED: ''
|
||||||
TARGETED_PODS_UPDATE_DISABLED: ''
|
TARGETED_PODS_UPDATE_DISABLED: ''
|
||||||
RECORDING_DISABLED: ''
|
RECORDING_DISABLED: ''
|
||||||
@ -765,8 +764,6 @@ spec:
|
|||||||
value: ' '
|
value: ' '
|
||||||
- name: REACT_APP_TIMEZONE
|
- name: REACT_APP_TIMEZONE
|
||||||
value: ' '
|
value: ' '
|
||||||
- name: REACT_APP_REPLAY_DISABLED
|
|
||||||
value: 'false'
|
|
||||||
- name: REACT_APP_SCRIPTING_DISABLED
|
- name: REACT_APP_SCRIPTING_DISABLED
|
||||||
value: 'false'
|
value: 'false'
|
||||||
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user