Provider Credential Encryption and Write-Only Secrets
Provider credential encryption is the part of DaletPay that protects the keys each payment provider issues to your own team. Those keys let the platform act for you, so the way they are stored matters as much as the payments. DaletPay encrypts each stored secret, records every change and lets operators see a saved key only through the masked display. This page follows a credential from the moment it is entered to the moment your team replaces it with another. It also shows where your own controls take over, since no tool can guard a key pasted into a document.
Key takeaway
DaletPay encrypts provider secrets at rest and shows them only in masked form. Each change is recorded. Production raises an error when the encryption key is missing.
Why do stored payment keys turn into such a risk for teams?
A payment key is valuable to anyone who finds it. For example, a key pasted into a shared file or a chat thread can be copied in seconds. Also, many teams keep keys in a script, a password manager and a sheet at once. As a result, nobody knows which copy is current.
The problem grows with each provider you add. Indeed, every new connection brings another secret, another environment and another person who may need access. Without one safe place for stored secrets, key rotation turns into a search across old files. That is why provider credential encryption matters from the first connection.
How does DaletPay handle each key from the first entry?
DaletPay treats each credential as a write-only value, so an operator enters it once. Then the software encrypts it before storage, with a key derived from the ENCRYPTION_KEY setting. Later, screens and responses show only the masked display. That masked value is enough to know the connection without the secret.
Each connection also carries an environment label, and provider credential encryption respects it. Sandbox and live credentials are stored as separate connections, so the platform knows which environment an action will use. In addition, each change goes into the audit trail with the operator and the connection. Provider credential encryption therefore covers storage, display and history in one flow.
The diagram follows one credential from entry to audit, including the masked display step. Notably, the masked view is the only view operators get after saving. Meanwhile, the audit record holds the change, not the value itself.
Which controls in the platform keep each provider key safe?
Several controls work together, and each one covers a different risk, so each one also needs a check. Therefore, none of them should be removed to save effort. Together they form provider credential encryption as a whole.
What happens if the main key is not set at all?
Specifically, the design depends on that one key. Outside production, the software can run without it and store values unencrypted, with a warning in the log. However, that mode exists for development and testing only. Consequently, it is not a safe setup for real keys, and provider credential encryption is off while it runs.
The security controls page lists the other guards around the database and the identity layer. Also, credential encryption is one layer among several.
What does this protection give your team on a normal day?
- Less exposure for every key. Provider credential encryption cuts the number of places where a key can leak.
- Clear sandbox and live records. The environment label keeps a sandbox key apart from a live key.
- Early failure when production starts. A missing key stops storage, so the problem shows up during setup. Provider credential encryption fails loudly, not quietly.
- A history you can review. Each change has a record that an auditor or incident team can read.
Overall, the protection is strongest when your team also plans key rotation and limits who can enter keys. Indeed, provider credential encryption and the environment label support those habits, but they do not replace them.
How do you rotate keys and recover when a key is lost?
Key rotation is a planned change, not an emergency. First, create a new key with the provider. Next, enter it in DaletPay as a write-only value and test it in the sandbox. Only after the test passes should the team retire the old key at the provider.
The encryption key that protects stored secrets follows its own rotation schedule. In fact, changing it means each stored value must be encrypted again. So, book a maintenance window and a tested backup for that change. Also, keep the new key in your secrets manager before the change starts, and record the date.
Recovery depends on that key as well. For example, if the encryption key is lost, the stored secrets cannot be read. The fix is to enter each credential again with its provider, which is slow for a large fleet. Hence, the key deserves the same backup care as the database.
The custody guide lists the steps in order. Provider credential encryption only helps while that key is safe.
Who should be able to enter and read the saved keys?
Credential access should follow the smallest set of people who can do the job. For instance, operators who run payments rarely need to enter a live key. Similarly, engineers who set up a new provider may need the sandbox key only. Thus, a short role list makes that split clear in the workspace.
Next, the platform checks capabilities on each route for provider credential encryption screens. Thus, a user without the right capability cannot open the credential screens. Everyone else sees only the masked display, so provider credential encryption still lets them know the connection. Review the role list each quarter, and remove access that no longer fits the work.
Additionally, access reviews should include the audit records. A change that nobody asked for is easier to find when the record shows who made it. The control list covers the other checks behind these reviews.
A common case: how does a planned swap run in order?
In one common case, a team rotates the keys for one provider before a contract renewal. Each step leaves a record behind. It follows the order of the steps for provider credential encryption.
First, the engineer creates a new key at the provider and enters it in the sandbox connection. Then a test action confirms that the adapter accepts it. Next, the live connection is updated in a short rotation window. The audit record shows the change with the operator's name and the result.
Importantly, the old key is revoked at the provider only after the live test passes. Afterwards, the team compares the provider card with the connection status to confirm the new key is in use. The provider capability cards show which fields the rotation touched.
What common mistakes should your team avoid with its keys?
A few habits cause most credential incidents. Each one is easy to avoid once the team names it out loud.
- Pasting keys into support tickets. A ticket is read by many people, and it is rarely cleaned up.
- Using sandbox keys in live traffic. Keep the environment label on every connection, and check the sandbox label before tests.
- Storing the encryption key beside the backup. A stolen backup then holds the means to read every secret.
- Skipping the audit review each month. Changes that nobody reviews cannot show a problem early.
Fortunately, each mistake has a simple control. Use the security review checklist to confirm the controls before the first live connection. In short, provider credential encryption works well when people avoid these slips.
Which policies should you write down before you go live?
In practice, a written policy turns good habits into routine work. It also keeps the masked display and the environment label in scope. Keep it short, and review it each year.
Five points cover most of what an auditor asks about provider credential encryption.
- Who may enter the keys. Name the roles for sandbox and live connections, and who approves each change.
- Where the encryption key lives. Name the secrets manager, the backup place and the people who can restore it.
- How often the keys rotate. Set a key rotation schedule per provider, and a faster one after staff changes.
- How access to keys is reviewed. Choose a cadence, usually quarterly, and record each review in the audit notes.
- What happens after an incident. Decide who revokes a key, who tells the provider and who checks the audit trail.
The platform controls page explains how the platform supports each point. However, the policy itself belongs to your organisation, because only your team knows its staff and contracts.
What does a good rotation look like once it is complete?
A good key rotation leaves three traces behind it. First, the old key no longer works at the provider. Second, the new key passes both the sandbox test and the live test. Third, the audit trail shows one change, with the operator and the connection.
Otherwise, if any trace is missing, reopen the rotation and find the gap before you close it. Provider credential encryption is only complete when all three traces are there.
How should you check the key setup in the first week live?
Check the key setup in the first week after go-live. Confirm that each live connection carries the right environment label. Also, confirm that the encryption key is set in production. Finally, confirm that the masked display shows no full value on any screen.
Record each check with its date and the name of the person who ran it. Provider credential encryption is then proven, not assumed. Overall, these four checks prove that provider credential encryption works in your own environment.
Set up key custody before the first live link goes on.
Before you add a live provider, confirm the encryption key is set and stored in your secrets manager. Next, test the recovery steps in a sandbox. Finally, plan the first key rotation date so that provider credential encryption stays in good shape.
The credential custody basics guide lists the steps your team should follow. It covers key ownership, rotation and access reviews.
Questions and answers on this topic from the product team
Are provider credentials stored in plain text?
In production they are not. DaletPay encrypts stored provider secrets with a key derived from the ENCRYPTION_KEY setting, and production raises an error when that key is missing. Outside production, secrets can be stored without encryption and a warning is logged, so set the key before any real credential is entered.
Can an operator read a secret after saving it?
No. Credential responses use masked serialization, and longer secrets show only a hint of the last four characters. An operator can replace a credential, and the change is recorded.
How are sandbox and live credentials kept apart?
Each provider connection carries an environment, either sandbox or live, so a sandbox key cannot be used for a live payment by accident. Live use should still follow your own approval step. The software records the environment but cannot approve business use for you.
What happens if the encryption key is lost?
The stored secrets can no longer be read, so each credential must be entered again with its provider. Plan backups of the key with the same care as database backups.
Which audit records does a credential change create?
Each change to a provider connection records who made it and which connection it touched. The record does not contain the secret itself. Use these records together with your access reviews.
See how DaletPay fits the providers your team uses today
Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.