Clears the internal Vault secrets cache — all entries at once. The next access to a secret will go to the store again.
Needed only where secrets come from Vault via the <vault> block: otherwise, after a secret changes in the store, the node keeps using the cached one.
When to use it:
| Question | This command or not |
|---|---|
| the secret was changed in Vault, but the node holds the old one | yes |
| the node does not read the secret at all | no — check the <vault> block and access to the store |
# after changing a secret in the store pmta clear secretscache
2 relations
Flush the name cacheA neighboring command: the same subject from another side. § 6.3.2
grep -n -A5 '<vault' /etc/pmta/config
2 articles
◇How the node signs messages and chooses a keyThe key is chosen by the sending domain from the headers, going through the declarations from top to bottom.◇Secrets in an external vaultSigning keys can be kept in HashiCorp Vault: the configuration keeps a path, and the engine fetches the key over HTTP and keeps it in memory without writing it to disk.