etlmcp sends the saved secret of a PostgreSQL or webhook destination only to the server it was saved for. A PostgreSQL password belongs to one host, port and user; a webhook's secret headers belong to one URL scheme and host. If you edit any of those and leave the secret blank, etlmcp refuses the change with enter the secret again: the saved one is only ever sent to the server it was saved for. Type the password or header again in the same form and save. Edits that do not change where the secret goes, such as the database name or the URL's path, keep the saved secret.
Why the check exists
A destination's secret is stored encrypted, and the edit form never shows it again. When you edit a destination, a blank secret field means "keep what is saved", so the form leaves the field out of the request and etlmcp reuses the stored value. Without a check, anyone who can edit the destination could point it at a server they control and let the next run or test deliver the saved password or header there, without ever having seen it. Tying the secret to its target means that to send a secret to a new server, you have to know it and type it.
What counts as a change of server
| Destination | The secret | Changing these asks for it again | Changing these keeps it |
|---|---|---|---|
| PostgreSQL | the password | Host, Port, User | Database, Schema, Table, the destination's name |
| Webhook (HTTPS POST) | the secret header | the URL's host, a port included | the URL's path and query, the destination's name |
How etlmcp compares the old and new settings:
- The host, port, user and URL host are compared exactly as written. Changing only the capitalization of a host name, for example, counts as a new host.
- A PostgreSQL port left blank counts as the default port the form fills in. Clearing the field when it held that default, or typing the default into an empty field, is not a change.
- For a webhook, etlmcp compares the scheme and the whole host part of the URL, the port included. The scheme is always
https, since etlmcp refuses any other, so in practice the host and port decide. Moving from one path to another on the same host keeps the header; moving to another host, or adding a port, does not. - The check only applies when a secret is saved. A destination with no saved secret can change its settings freely.
How to make the change
- On the Destinations page, open Amend particulars under the destination.
- Change the host, port, user or URL.
- Type the password in the Password field, or the header as
Name: valuein the Headers field. Both say "saved — leave blank to keep" while a secret is saved. If the credentials are the same on the new server, type the same value again. - Click Save. etlmcp checks the settings and stores the new secret encrypted, in place of the old one.
When you type a new secret, it replaces the whole saved secret, whichever settings you change with it. You can also change the secret on its own, without touching the host.
A related message
If the saved secret exists but etlmcp can no longer decrypt it, any edit that leaves the secret field blank stops with the saved secret can no longer be read — enter it again, even one that only renames the destination, because etlmcp reads the saved secret to check the new settings. Type the secret again and save. How etlmcp encrypts stored credentials explains when a stored secret can become unreadable.