fix(secrets): add CE teaser EE-6568 (#11001)

pull/11007/head
Dakota Walsh 2024-01-24 09:44:50 +13:00 committed by GitHub
parent 7bf346bd2d
commit fc7d9ca2cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions

View File

@ -283,6 +283,20 @@ function InnerForm({
/>
</div>
</div>
<div className="form-group">
<div className="col-sm-12">
<SwitchField
name="restrictSecrets"
data-cy="kubeSetup-restrictSecretsToggle"
label="In the UI, only admins may view and edit the contents of secrets that are not their own"
tooltip="This hides the ability to view or edit in the UI the contents of secrets that a non-admin user did not create themselves but does not prevent it via the command line."
labelClass="col-sm-5 col-lg-4"
checked={false}
featureId={FeatureId.K8S_ADM_ONLY_SECRETS}
onChange={() => {}}
/>
</div>
</div>
</FormSection>
<FormSection title="Resources and Metrics">
<InsightsBox

View File

@ -36,6 +36,7 @@ export enum FeatureId {
CUSTOM_LOGIN_BANNER = 'custom-login-banner',
ENFORCE_DEPLOYMENT_OPTIONS = 'k8s-enforce-deployment-options',
K8S_ADM_ONLY_USR_INGRESS_DEPLY = 'k8s-admin-only-ingress-deploy',
K8S_ADM_ONLY_SECRETS = 'k8s-admin-only-secrets',
K8S_ROLLING_RESTART = 'k8s-rolling-restart',
K8SINSTALL = 'k8s-install',
K8S_ANNOTATIONS = 'k8s-annotations',

View File

@ -42,6 +42,7 @@ export async function init(edition: Edition) {
[FeatureId.K8S_EDIT_YAML]: Edition.BE,
[FeatureId.ENFORCE_DEPLOYMENT_OPTIONS]: Edition.BE,
[FeatureId.K8S_ADM_ONLY_USR_INGRESS_DEPLY]: Edition.BE,
[FeatureId.K8S_ADM_ONLY_SECRETS]: Edition.BE,
[FeatureId.K8S_ROLLING_RESTART]: Edition.BE,
[FeatureId.K8S_ANNOTATIONS]: Edition.BE,
[FeatureId.CA_FILE]: Edition.BE,