Skip to content
DoderData
Engineering · Playbook

Security belongs in your first architecture decision

Retrofitting security is expensive and fragile. Here is how we design access, encryption and auditability into a system from day one — without slowing delivery.

DoderData EngineeringEngineeringJun 18, 2026 · 2 min read

Most security problems are not exotic. They are ordinary decisions made too late: an access model bolted on after launch, secrets committed "just for testing", logs that record everything except the one action you need during an incident.

By the time these surface, they are structural — and structural problems are the expensive kind to fix. The alternative is not more process. It is making a handful of decisions early, when they are still cheap to change.

Decide the access model before the data model

Before you design tables, decide who is allowed to see and change what. Roles, tenancy boundaries and least-privilege defaults shape your schema, your APIs and your UI. Retrofitting row-level access onto a system that assumed "one big admin" touches every query you have already written.

  • Define roles in terms of real responsibilities, not job titles.
  • Default to deny; grant access explicitly.
  • Separate "can view" from "can export" — they are different risks.

Treat secrets as infrastructure

Secrets are not configuration you paste in later. They are part of the architecture:

  • Never prefix a sensitive value with a public-exposure flag.
  • Keep service credentials server-side and out of client bundles.
  • Use different secrets per environment, and make rotation a documented step.

Make the system auditable while it is small

Audit logging is trivial to add to a young system and painful to add to a mature one. Capture the events that matter — authentication, permission changes, data exports — with enough context to reconstruct who did what, when. You will not regret it during an incident.

Compliance is readiness, not a badge

For regulated work we build with HIPAA-aligned engineering, GDPR readiness and SOC 2 / ISO 27001-aligned controls. Compliance ultimately depends on technology, policies, people, vendors and processes — so we support technical readiness and secure implementation rather than claim certification unless it is explicitly documented.

Security is not a phase at the end of the plan. It is a property of the decisions you make at the beginning.

If you are about to start a build where trust matters, let's talk about the architecture before the first line of code.

  • #security
  • #architecture
  • #compliance
  • #healthcare
Written by DoderData EngineeringNotes from the people who architect, build and secure the platforms we ship.More articles
Now booking projects for Q4

Ready to build
what’s next?

Tell us what you want to launch or fix. We’ll reply with a clear plan within 24 hours.Tell us what you want to launch or fix. We’ll reply with a clear plan, timeline and fixed estimate.

Free 30-min call · NDA on request · Reply in 24h

We value your privacy

We use essential cookies to run this site, and optional ones to improve it. You decide what’s on.

Cookie Policy