Skip to main content

Security, layer by layer

Security
Every control comes from the graph, and every control is measured

Security in Stacktic is not a separate product bolted onto the stack. Each control is a component, a sub-component, a link or an attribute. It is generated with the topology, regenerated when the topology changes, and measured by the stack agent against what the graph declares.

BEFORE IT RUNSsource scanbuild_gateyour rulessast_gatequality gatesonarqube-<app>admissionOPA policieshardened podsecurity_featuresEVERY REQUESTinternetclientVPN guardvpn-apisixbouncer · WAFcrowdsecgatewayTLS · limits · loginnetwork policyper linkyour apppodWATCHINGSuricatanode trafficFalcosystem callsCrowdSeclogs · scenariosSIEM · ALERTSOpenSearch · Prometheusindex · monitors · dashboardsRESPONSEdecisionsban at the node · block at WAF
Security in three lanes: what is checked before a workload runs, what every request passes through, and what watches the running system and responds. Every element is a component, a sub-component, a link or an attribute on the graph.

The layers​

LayerWhat is generatedDeclared byProven byRead
Gateway routesTLS, rate limit, CORS, IP allow-list, body size, header removal, per routeAttributes of the apisix-<type> linkPenetration test, DAST coverageGateway, login and private access
Loginopenid-connect at the gateway, built from the application's client; OIDC settings in the application<app>-client link, apisix_oidc_enable on the routeLink validation (token issuance), the identity checks of the penetration testLogin from a link
Private accessEvery HTTP route reachable only through a WireGuard tunnel, except the hosts you keep publicvpn component, vpn-apisix linkA request from outside the tunnel answers 403Private access
Web application firewallA CrowdSec AppSec profile (Coraza, OWASP Core Rule Set) in front of each linked applicationwaf sub-component, waf-<app> link, apisix-crowdsecWAF alerts in the SIEM, per-rule hit countersWeb application firewall
IdentityRealms, clients, users, groups, external identity providers, who may use the MCP serverKeycloak sub-components and attributes; the MCP's allowed_groupsRealm tests of the compliance scans, the penetration test's identity checksIdentity and secrets
NetworkOne network policy per link; a strict regulated set; explicit egress for cross-stack linksThe links themselves; microsegmentation_levelNetwork policy scan, with real connection probes and negative testsNetwork policies
AdmissionA Gatekeeper constraint per policy family, in dryrun, warn or denyOPA policy sub-componentsAdmission scan: enforcing, not enforcing, over-enforcing, brokenWorkload hardening and admission
WorkloadsThe pod and container security contextThe application's security_featuresAdmission scan, Kubernetes hardening scanWorkload hardening
SecretsEncrypted secret files in the repository; secrets sourced from OpenBao at runtimesops_enabled on the system; external_secrets-openbaoSecrets scanIdentity and secrets
DetectionNetwork intrusion detection, runtime detection, log-based bans, one SIEMSuricata, Falco and CrowdSec components; <source>-opensearch linksSIEM monitors and dashboards, Prometheus alert rulesDetection and response
Supply chainA source scan, your own SAST rules and the quality gate in every build; image vulnerability triage; DAST scan contracts; image signature checksbuild_gate, sast_gate, sonarqube-<app>, nuclei-<app>, SigstoreBuilds and gates scan, image vulnerability scan, DAST coverageDevelopment security
Cluster access for peopleRoles and bindings per namespaceA user group access component, links with a roleRBAC scanWho can reach the cluster
DeliveryArgo CD that never deletes dataThe Argo CD component—Argo CD
ProofScans, PCI DSS, ISO 27001, HIPAA and DORA positions, a hash-chained evidence trailThe stack agent—Compliance automation · Evidence

Why this shape matters​

A control follows the topology. Add a link and its network path, its route policy and its monitoring appear together. Remove it and they go at the next build. There is no window in which the security rules describe last month's system.

A control is versioned with the stack. It is in the diagram's history, in a diff between two versions, in a duplicated environment, and in a rollback.

A control is measured, not assumed. The stack agent runs the scan that matches each layer and records the result with the metadata commit it judged. "We enforce that" becomes a run anyone can repeat.

Tune, never remove​

Hardening starts with the components' own attributes: an application's security_features, the OPA policy sub-components and their modes, the options on each gateway route. When a policy blocks something the stack needs, the policy is tuned to the stack — a scope, an exclusion, a mode — not removed.

An AI client connected to the stack's MCP server can produce the plan with security_tuning(action='plan'). It reads the stack and returns, for every item, the attribute, its current and recommended value, why, what it can break, and the exact call that changes it. It never writes. Each item has a class:

ClassMeaning
critical_reviewDangerous today; a person confirms before anything changes
apply_nowNear-zero risk, with the residual condition stated
stagedDepends on how the application behaves at runtime: change it on a non-production environment first
needs_inputThe value is not in the design (office or VPN address ranges, an identity client) and has to come from you

Apply what you approve, build, deploy, and confirm with the admission scan.

See it on a real stack​

A secured marketplace walks through a stack with every layer above turned on, and the choices its design leaves open.