{#if !can_write} You only have read access to this resource and cannot edit it {/if}
edit && loadVariable(initialPath)} bind:checked={variable.is_secret} disabled={edit && $userStore?.operator} options={{ right: 'Secret' }} /> {#if variable.is_secret} Every secret is encrypted at rest and in transit with a key specific to this workspace. In addition, any read of a secret variable generates an audit log whose operation name is: variables.decrypt_secret {/if}
{#snippet header()} ({variable.value.length}/{MAX_VARIABLE_LENGTH} characters) {/snippet}
{#if edit && variable.is_secret}{#if $userStore?.operator}
Operators cannot load secret value
{:else} {/if}{/if}
{#snippet children({ item })} {/snippet} {#if editorKind == 'plain'} {:else if editorKind == 'json'}
{#await import('$lib/components/SimpleEditor.svelte')} {:then Module} {/await}
{:else if editorKind == 'yaml'}
{#await import('$lib/components/SimpleEditor.svelte')} {:then Module} {/await}
{/if}
{#snippet actions()} {/snippet}