M1 (1): stored secrets are write-only
smtpPassword and turnstileSecretKey in the Site integrations global are returned
as '********' to every read that goes through access control (REST, GraphQL, the
panel's form state); the Local API with access control off still gets the value.
A save that sends nothing, an empty value or the mask keeps the stored one;
'[[clear]]' removes it. MaskedField says that a value is set and offers to
remove it. Off: secrets: { writeOnly: false }. writeOnlySecret(s) and the hooks
are exported for a project's own fields.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
cff355a541
commit
8fa71238ce
@@ -10,6 +10,10 @@ export const integrationsTexts = defineTexts({
|
||||
|
||||
// Masked secret field
|
||||
maskedHide: 'Hide',
|
||||
maskedKeep: 'Keep the stored value',
|
||||
maskedRemove: 'Remove the stored value',
|
||||
maskedRemoved: 'The stored value will be removed when you save.',
|
||||
maskedSet: 'A value is set. It is not shown; type a new one to replace it.',
|
||||
maskedShow: 'Show',
|
||||
|
||||
// Status banner on an integration's tab (IntegrationStatusBanner)
|
||||
@@ -63,6 +67,10 @@ export const integrationsTexts = defineTexts({
|
||||
alertsUnknownError: 'Nieznany błąd.',
|
||||
|
||||
maskedHide: 'Ukryj',
|
||||
maskedKeep: 'Zostaw zapisaną wartość',
|
||||
maskedRemove: 'Usuń zapisaną wartość',
|
||||
maskedRemoved: 'Zapisana wartość zostanie usunięta po zapisaniu.',
|
||||
maskedSet: 'Wartość jest ustawiona. Nie jest wyświetlana; wpisz nową, aby ją zastąpić.',
|
||||
maskedShow: 'Pokaż',
|
||||
|
||||
statusCode: 'Kod: {{code}}.',
|
||||
|
||||
Reference in New Issue
Block a user