DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

Payment Operations Security and Tenant Isolation

Payment operations security is the set of controls that guards provider keys, payment records and the people who use them. A weak spot in any of those areas can expose money, data or trust, so each control needs an owner. DaletPay builds several controls into the platform, such as row-level security in the database, and leaves the rest to you. This page lists both groups, so your team can start its review from a list of what the code does. Each control also comes with a check your team can run and a person who keeps that check in place.

The controls below are the platform's own. They do not replace a full security programme, a penetration test or the rules of your providers. However, they give payment operations security a firm base to build on.

Illustration of shield, key, receipt for payment operations security
Key takeaway

DaletPay separates tenants in the database, encrypts provider secrets, verifies gateway identity and records gated actions. Your team owns the keys, the roles and the reviews that complete these controls.

Why do attackers aim at a payments platform so often?

A payment platform keeps several valuable assets in one place, which makes payments security hard. For example, it holds provider keys that can move money and records that describe customers. Also, it keeps a log of who did what and when. Therefore, an attacker who reaches one area can try to reach the others.

For instance, a key may land in a support ticket by accident. In other cases, a sandbox key runs in production, or several people share one login. Good payment operations security makes the safe path the easy one. As a result, these slips are caught early.

  • Provider keys are the prize. A stolen key can act on a merchant account.
  • Tenants share the same base. One boundary slip can expose another customer's data.
  • People make honest mistakes too. Shared logins and copied keys defeat even good design.

What does one slip with a key cost a team?

Indeed, one leaked key can let a stranger refund, capture or void payments on that account. The cost is not only money, since trust and time are lost too. Key protection is therefore the heart of payment operations security. Consequently, keys are treated as the most sensitive data in the system.

Overall, payment operations security must cover both attacks and slips. Payment data safety depends on both.

What controls does DaletPay put in the code for you?

DaletPay builds its security controls in layers, so no single layer is trusted alone. First, the database keeps tenants apart with row-level security. Second, the identity layer checks gateway identity headers before it trusts a caller. Third, the engine checks capabilities, and the audit trail records most gated actions.

The list below shows the platform security controls the repository contains and what each one guards.

  • Row-level security guards tenant rows on every tenant-scoped table.
  • A gateway identity check guards the headers sent by the CRM gateway.
  • Encrypted provider secrets guard each stored provider connection at rest.
  • A masked display guards saved secrets on screens and in responses.
  • Capability gating guards the actions each user may run on a gated route.
  • The audit trail records who did what, and with what result, for gated actions and settings changes.

Each control is only as strong as its settings. Thus, the next sections explain what your team must set up for payment operations security to hold. Secure payment operations need both the code and your settings.

Credential path from entry to encrypted, masked and audited storage
A credential is encrypted at rest, shown only in masked form and every change is recorded.

The diagram follows a provider key through three of these controls. The key is encrypted, shown only in masked form and recorded when it changes.

How do the tenant, ID and key controls work each day?

In practice, tenant isolation depends on the database policy and on the tenant set for each request. The repository migrations create row-level security on the tenant-scoped tables. However, inbound webhooks and background feeds use a separate maintenance link that can cross tenants. A review should confirm a table policy on every table that holds tenant data.

Notably, a missing table policy is the most serious gap in a system with many tenants. Payment operations security starts with that one check.

Identity depends on the CRM gateway. In production, gateway identity headers are accepted only when the shared gateway secret is present too. This gateway secret check is part of payment operations security. A request without the secret is rejected with an unauthorized error.

Outside production, no secret is checked, so never expose such an instance. Also, your proxy must strip any identity headers that a browser sends. Otherwise, a browser could claim an identity it does not have. In short, gateway identity headers are trusted only from the gateway itself.

Specifically, provider keys are encrypted with a key derived from the configured setting. That step gives you encrypted provider secrets, with each provider key at rest kept safe. In production, storage raises an error when the key is missing.

As a result, a secret is never stored in plain text by accident.

Outside production, the platform can store values without encryption and logs a warning. Hence, that setting must never reach a live deployment. Without it, encrypted provider secrets are no longer encrypted, and payment operations security is weaker.

What runtime and port settings do the containers ship with?

The container image runs as a non-root numeric user. As a result, a compromised process has little it can change. In addition, the compose file starts each container with a read-only file system. Published ports bind to the loopback address by default, so the host can reach the service and other networks cannot.

These settings belong in the deployment review for payment operations security. Your team should confirm the orchestration platform, the network rules and the database backups. Those parts sit outside the repository, so check them in your own environment. Platform security ends where your network begins, so a security review must cover both.

DaletPay provider capability card screen
For example, the provider capability registry shows what each provider declares before you build.

How do roles, reviews and logs turn controls into habits?

Governance turns security controls into daily habits. Roles decide who may run each action, and reviews decide whether the roles still fit. The audit trail gives the evidence for both. Moreover, most gated actions record their operator, tenant and target, so a review can follow each change.

A simple routine for payment operations security has four steps:

  1. Review the roles once each quarter.
  2. Read the audit trail for cross-tenant work and settings changes.
  3. Test one restore of the database each year.
  4. Record each review with its date and its owner.

The audit trail for risk reviews page shows how risk teams use these records. Key custody is part of governance too. Name the people who hold the encryption key and the secrets manager that stores it.

In fact, encrypted provider secrets are only as safe as the person who holds that key. Payment operations security fails if that person leaves without a handover. The custody basics guide lists the steps for key ownership and rotation.

What do these platform security controls not cover for you?

The platform does not decide who may act for a merchant. Nor does it replace the merchant's own controls or review the code your team writes. Therefore, keep keys as secret as the platform does. Access control for operators still needs your own rules.

Some controls depend on your own environment. Network firewalls, identity providers and backup systems are outside the repository. Payment operations security is a shared job. Thus, your team must handle data with the same care.

What should a security review of the platform cover first?

A useful security review starts with a written scope. List the tenants, the providers, the environments and the roles. Then test each control on that list in turn, as part of payment operations security. Importantly, a review that tests only the defaults misses the choices your team made.

Start with the database boundary, because every other control assumes tenant rows stay apart. Next, check the gateway identity headers, the masked display and the audit trail. A security review should also test each row policy. Finally, record each result with its date and the name of the tester.

Illustration for Payment Operations Security and Tenant Isolation

How can you test the tenant boundary yourself in a sandbox?

Create two tenants in a sandbox, and give each one a test provider key. Then sign in to the first tenant and try to read a record from the second. The read should fail, since row-level security filters it out. Indeed, the tenant row filter is the first line of payment operations security.

Which roles and views need the same test as well?

Repeat the test for the audit records and the reports, because those views hold tenant data too. Next, test the roles in the same way. An operator without the reporting capability should not reach the reports page. Likewise, an operator without the key capability should not reach the key screens.

Each refusal returns a 403 response. However, the audit trail does not record refusals, so check your gateway logs for them instead.

How should your team respond to a suspected leak of a key?

First, freeze the affected provider connection and revoke its key at the provider. Then keep the audit trail intact. In addition, records should not be edited or deleted during the review. Bring the platform owner, the security lead and the tenant contact into one call.

Write down the timeline as it becomes clear, and list the encrypted provider secrets in scope. Note when the key was entered, who had access and which actions used it. Once the scope is known, rotate every key that could have been exposed. Finally, confirm each rotation in the audit trail.

The tenant boundary notes explain how separation is set up for each merchant. Payment operations security depends on that split during a leak, as do encrypted provider secrets and gateway identity headers. The audit review notes explain how to read the records during an investigation.

What signs of misuse should you look for in the logs?

Look for a few signs in the logs each week. For instance, repeated refusals from one account may show someone testing the boundary. A burst of settings changes outside working hours also deserves a direct question. Similarly, a new operator who acts on many tenants in a short time should be checked against the role list.

Notably, payment operations security relies on people reading these signs. Treat each sign as a question, not a verdict. Ask the operator, read the approval and record the answer.

Most signs have a simple cause, and the record shows that the team checked. Gateway identity headers in your logs help tie each action to a person.

DaletPay payments overview screen
For example, the payments overview screen of DaletPay.

Why should you check each of your controls every quarter?

These control checks keep tenant isolation and key protection in place. Re-test the boundary, the masked display and the audit records each quarter. A control that passed last year can fail after a settings change. Accordingly, the quarterly check keeps payment operations security honest over time.

Run each check before the first live provider goes on.

Use the list of security controls above as your checklist. Next, confirm each control in your environment and record the result. Then fix any gap before a live provider is connected.

The tenant boundary test in the implementation plan is a good first check for payment operations security. It takes less than a day in a sandbox, and row-level security is tested first. Finally, treat payment operations security as a habit, not a single task.

Common questions teams ask about security and how it works

Does DaletPay hold a security certification?

This site makes no certification claim. The software includes controls that a security review can test, but a certificate covers your own setup and processes. Ask for the scope and evidence of any assessment, and keep it with the deployment it covers.

How is the database kept safe between tenants?

The schema uses PostgreSQL row-level security on tenant-scoped tables, so a query cannot read another tenant's rows. The migrations create these policies. Your review should confirm that every table in your deployment has its policy in place.

How is the identity of an operator confirmed?

Requests from the CRM gateway carry identity headers, and production accepts them only with the gateway secret. Outside production, no secret is checked. The proxy in front of the service must remove identity headers sent by a browser.

What do the containers run with?

The Dockerfile sets a non-root numeric user, and the compose file runs the containers with a read-only file system. Published ports bind to the loopback address, so the service is not exposed on every interface. Your platform should still put it behind your own network controls.

Who reviews the audit trail?

Your security or risk team should review it on a schedule and record each review. The trail shows most gated actions with their operator and target. An unexplained change should open an incident, and the trail should be preserved for the investigation.

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.