M1 review round 2: docs, agent guide, skills, changelog; the reference types without the removed field
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
7002ebbfa6
commit
3e44863c98
+13
-16
@@ -943,7 +943,7 @@ size while reading, content signature, container and macro checks, an optional `
|
||||
| nothing for the field, an empty value, `null`, or `'********'` back | the stored value is kept |
|
||||
| a new value | replaces it (the answer shows `'********'`) |
|
||||
| `'[[clear]]'` (`SECRET_CLEAR`) | removes it |
|
||||
| the server, the port, the user name, "Require encryption" **changed**, or the transport switched to SMTP, and **no** new password | **refused** (`400`, on the password field): "Enter the password again…" |
|
||||
| the server, the port or the user name **changed** (whatever the transport), and **no** new password | **refused** (`400`, on the password field): "Enter the password again…" |
|
||||
|
||||
In the panel the field says "A value is set. It is not shown; type a new one to replace it." and offers "Remove
|
||||
the stored value".
|
||||
@@ -951,25 +951,22 @@ the stored value".
|
||||
**The SMTP password stays with the server it was saved for** (`secrets.reenterOnChange`). Hiding the value is
|
||||
not enough on its own: an admin session could point `smtpHost` / `smtpPort` at a machine of its own, press
|
||||
"Send test e-mail", and read the password off the connection. So a save **through access control** (the panel,
|
||||
REST, GraphQL) that changes `smtpHost`, `smtpPort`, `smtpUser`, `smtpRequireTls`, or `emailTransport` to SMTP,
|
||||
while a password is stored, must send the password again — or remove it (`'[[clear]]'`, "Remove the stored
|
||||
value") for a server without one. Values are compared as trimmed, lower-case text, and a value never saved
|
||||
counts as the field's default, so saving the form unchanged asks for nothing. Switching to Microsoft Graph asks
|
||||
for nothing either (the password is not used there). Server code — a seed, a script with the Local API and
|
||||
access control off — is not asked. `ipalKit({ secrets: { reenterOnChange: false } })` = the stored password
|
||||
follows the new server, as before.
|
||||
|
||||
**"Require encryption"** (`smtpRequireTls`, Site integrations → E-mail sending, off by default). On port 465 the
|
||||
connection is TLS from the start. On any other port the mail library upgrades with STARTTLS **when the server
|
||||
offers it** — a server (or someone in between) that does not offer it gets the user name and password in clear
|
||||
text. With the box ticked nothing is sent without encryption: no login, no e-mail, and the test e-mail says
|
||||
"Error upgrading connection with STARTTLS". Tick it on every site whose server supports it (all the usual
|
||||
providers on 587 do). It is a new field: **Postgres / SQLite need a migration** ([deployment.md](./deployment.md)).
|
||||
REST, GraphQL) that changes `smtpHost`, `smtpPort` or `smtpUser` while a password is stored must send the
|
||||
password again — or remove it (`'[[clear]]'`, "Remove the stored value") for a server without one. **Whatever
|
||||
the transport says:** "Microsoft Graph" in the panel does not mean Graph sends — the mail adapter falls back to
|
||||
SMTP when Graph is not configured, and for attachments Graph cannot take. A change of `emailTransport` alone
|
||||
asks for nothing. Values are compared exactly (`587` and `'587'` are the same; another letter case or a space
|
||||
is a change), and a value never saved — or a `NULL` in a SQL row — counts as the field's default, so saving
|
||||
the form unchanged asks for nothing. Server code — a seed, a script with the Local API and access control off
|
||||
— is not asked. `ipalKit({ secrets: { reenterOnChange: false } })` = the stored password follows the new
|
||||
server, as before.
|
||||
|
||||
A stolen admin session, or any way past the global's read rule, no longer yields a working mailbox password.
|
||||
What it does **not** protect: the database and its backups hold the value in plain text (encryption at rest is
|
||||
a separate, open question); whoever can change the config or run server code can read it; and a session that
|
||||
knows nothing but may send e-mail can still **use** the mailbox through the site (send, not read).
|
||||
knows nothing but may send e-mail can still **use** the mailbox through the site (send, not read). On a port
|
||||
other than 465 the connection is encrypted only when the server offers STARTTLS; requiring it is a possible
|
||||
later option, not part of this release.
|
||||
|
||||
**Versions.** The global has no versions by default. A project that turns them on
|
||||
(`globalOverrides: { 'site-integrations': { versions: … } }`) stores the secret in every version — as in the
|
||||
|
||||
Reference in New Issue
Block a user