business

Verdict

Submitted 7/9/2026, 3:01:07 PM · Completed 7/9/2026, 5:21:39 PM

6.2
pivot
The idea

Step-CA (Smallstep) with 6 intermediate CAs, Badger/CNPG and passthrough HAProxy — is this architecture correct for production?

Pain point
The user must choose between using a less secure state backend for performance and a more secure SQL database with CRL support, which introduces complexity.
Who has this problem
PKI administrators managing short-lived certificates in high-security environments
Contradiction (TRIZ)
wants both high performance and strong security/auditability but cannot have both without trade-offs
Ideal final result
A state backend that provides both high performance and robust security, including CRL support, without additional complexity or overhead.
Suggested solution
Implement a hybrid state backend solution that combines the speed of BadgerDB with the security benefits of PostgreSQL. This could involve using a lightweight in-memory database for high-speed operations and integrating it with PostgreSQL for critical data persistence, ensuring both performance and security.
Show original source text →
Context I'm operating a PKI based on step-ca (Smallstep) , version 0.30.2 , to issue short-lived certificates: SSH (user and host) TLS/X.509 (internal services) The CA sits behind its own authorization service (I'll call it the "Access API"), which decides who can request a certificate. step-ca itself only signs and enforces policy/TTL — it doesn't make business-authorization decisions. Current setup Key hierarchy: Root CA (RSA-4096, key encrypted with AES-256), fully offline , generated in a separate offline ceremony. 6 intermediate authorities, each an independent step-ca container: Authority Port Type ssh-backend 9000 SSH intermediate ssh-cluster 9001 SSH intermediate ssh-network 9002 SSH intermediate ssh-engine 9003 SSH intermediate tls-sites 9004 TLS intermediate tls-services 9005 TLS intermediate For SSH, I use dedicated Ed25519 key pairs ( ssh_host_ca_key / ssh_user_ca_key ), separate from the X.509 intermediate certificate used for TLS. State backend (issuance/revocation): Standalone: embedded BadgerDB per container ( /home/step/db ), no external dependency, but no CRL support and single-writer. Production: PostgreSQL via CloudNativePG (3 instances, 1 RW + 2 RO), running on a separate k3s cluster, reached over a private network. This enables CRL. Container hardening applied: read_only: true tmpfs: - /tmp security_opt: - no-new-privileges:true cap_drop: - ALL pids_limit: 256 mem_limit: 512m Load balancing / HA (multi-node topology): 3 VMs running step-ca in active/active/active mode, sharing the same cryptographic material (same private key replicated across all 3 nodes). A pair of nat-lb VMs in front, running Keepalived (VRRP VIP) and HAProxy in pure TCP mode (passthrough, no TLS termination) : frontend ssh-backend bind <VIP>:9000 mode tcp default_backend ssh-backend-be backend ssh-backend-be mode tcp balance roundrobin server step-ca-1 192.168.100.30:9000 check server step-ca-2 192.168.100.31:9000 check server step-ca-3 192.168.100.32:9000 check The TLS handshake happens end-to-end between client and step-ca; HAProxy just forwards raw bytes. State consistency: Since all 3 CA nodes write to the same shared Postgres, issuance/revocation state is single-sourced — the intent is for this to prevent split-brain between the 3 active nodes. Known weaknesses I'm already aware of terraform.tfstate ended up committed to git at some point (may contain IPs/secrets in plaintext) — planning to migrate to a remote backend. No expiration alert implemented yet for intermediate certificates. The CNPG mode (Postgres cluster + failover) has only been validated "on paper"/in code. What actually ran on a real VM so far is Badger + no load balancer. Specific questions Is HAProxy in TCP/passthrough mode (no TLS termination) the correct practice for protecting a CA , or would terminating TLS at the LB and using mTLS on the backend be more secure/auditable? BadgerDB with no CRL, revocation only via short TTL — is this acceptable for low/medium-volume production, or should CRL (and therefore a SQL backend) be mandatory from the start? Does running 3 CA nodes with the same intermediate private key simultaneously (active/active/active) introduce any risk that an active/passive topology wouldn't have? CNPG's Postgres is isolated on a separate private network, reachable only by the CA — is this sufficient isolation, or should there be an additional layer of mTLS between step-ca and Postgres on top of transport TLS ( sslmode=require )? Any recommended best practice I'm missing regarding the separation between the SSH CA and the TLS CA (dedicated Ed25519 keys vs. intermediate X.509 certificate)?
TRIZ inventive level: 3/5· Principles: parameter changes, separation of concerns
Synthesis verdict
**Pivot** The technical foundation of your PKI setup is strong, with robust security practices like offline Root CA, container hardening, and a PostgreSQL backend for CRL support. The market potential is niche but lucrative, targeting high-security enterprises with budgets for compliance automation. However, the competitive differentiation is marginal, as the architecture overlaps heavily with existing solutions (e.g., HashiCorp Vault, Venafi) without offering unique innovations. Monetization is feasible but lacks a clear, scalable revenue model, and critical risks - such as inadequate revocation mechanisms (short TTLs without CRL) and HAProxy's TCP passthrough mode - pose existential threats to long-term viability. To succeed, the venture must pivot to address these gaps: prioritize a defensible value proposition (e.g., automated compliance workflows or seamless multi-cloud PKI orchestration), harden the security posture (mandate CRL, enforce mTLS at the LB and DB layers), and clarify monetization (e.g., tiered subscriptions for managed PKI services). Without these fixes, the idea risks being outcompeted or failing due to security flaws.

Strengths

  • Offline Root CA and hardened containers demonstrate strong security practices (Viability, Market).
  • PostgreSQL backend with CRL support is justified for production-grade revocation (Viability, Market).
  • Separation of SSH and TLS CAs with dedicated keys reduces blast radius (Viability, Market).
  • Niche market (compliance-driven enterprises) has high willingness to pay ($50K - $500K/year) (Market).
  • Technical feasibility for managed PKI services with 60-70% gross margins (Monetization).

Weaknesses

  • Active/active/active topology with shared intermediate keys increases key compromise risk (Viability, Risk, Competitive).
  • HAProxy TCP passthrough lacks auditability and misses mTLS enforcement opportunities (Viability, Risk).
  • BadgerDB's lack of CRL (even with short TTLs) is inadequate for production revocation (Viability, Risk).
  • Marginal differentiation vs. established competitors (HashiCorp Vault, Venafi) (Competitive).
  • No clear, scalable revenue model or unit economics beyond generic subscriptions (Monetization).

Best angle

Pivot to a managed PKI-as-a-Service with automated compliance workflows, mandatory CRL, and mTLS-hardened infrastructure to outmaneuver generic CA tools.

Panel verdicts

Competition

nvidia/nemotron-3-nano-omni-30b-a3b-reasoning

4.0

The differentiation is marginal because it relies on known, suboptimal practices rather than unique security or operational innovations.

The core idea - using Smallstep (step-ca) to issue short-lived SSH and TLS certificates behind a custom Access API - overlaps heavily with existing solutions such as HashiCorp Vault PKI, Google CFSSL, and commercial offerings like Venafi/TLSbridge, all of which provide CA management, policy enforcement, and short‑lived certificate issuance for both SSH and TLS. The proposed architecture adds operational details (active/active replication of the same private key, BadgerDB state store without CRL, TCP‑only HAProxy passthrough, and a PostgreSQL backend for revocation) but these are either known anti‑patterns (key replication reduces security, lack of CRL limits revocation effectiveness) or standard best‑practice choices (HAProxy TCP mode, separate DB for state). Because the differentiation rests on deployment specifics rather than novel security mechanisms, it is unlikely to be durable; any competitor that improves on the same feature set (e.g., automated key rotation, integrated CRL, mTLS‑protected DB access) would quickly eclipse this design. Consequently, while the idea is technically feasible, its competitive advantage is weak and not resilient to market changes or security audits.

Risk

nvidia/llama-3.3-nemotron-super-49b-v1

4.0

Insufficient revocation mechanisms and inadequate security at the load balancer layer are the primary killers within 6-12 months.

The setup exhibits several critical vulnerabilities and design choices that significantly elevate risk. **1.** Using HAProxy in TCP/passthrough mode for a CA is **less secure** than terminating TLS at the LB and enforcing mTLS on the backend, as it misses an opportunity to add an encryption layer and audit point. **2.** Relying on short TTLs without CRL for BadgerDB in even low/medium-volume production is **inadequate** for revocation needs, posing a significant security risk. **3.** The active/active/active topology with shared intermediate keys **introduces heightened risk** of key compromise impact scope. **4.** While the Postgres isolation is good, adding mTLS on top of transport TLS would further enhance security. **5.** The SSH/TLS CA separation is well-handled but doesn't offset the aforementioned risks.

Monetization

mistralai/mistral-nemotron(fallback #1)

7.0

The technical setup is robust, but a clear revenue model is needed to monetize the service effectively.

The proposed PKI setup demonstrates a solid technical foundation with clear separation of concerns between the Access API and step-ca, as well as between SSH and TLS authorities. The use of short-lived certificates and PostgreSQL for state management is a strong choice for production environments. However, the monetization potential is limited by the lack of a clear revenue model. The setup could be monetized by offering managed PKI services to other organizations, charging a subscription fee based on the number of certificates issued or the level of service (e.g., $100/month for up to 100 certificates, $500/month for up to 1,000 certificates). Additionally, value-added services like certificate expiration alerts, automated revocation, and advanced reporting could be offered as premium features. The unit economics would depend on the cost of infrastructure and support, but with efficient operations, gross margins could be in the range of 60-70%. The conversion path would involve marketing the service to potential customers, offering a free trial, and then converting them to paid subscribers.

Market

mistralai/mistral-small-4-119b-2603(fallback #2)

8.0

Your PKI setup is technically robust and targets a high-value, underserved niche of security-conscious enterprises willing to pay for reliability and compliance automation.

Your PKI setup demonstrates strong technical depth and addresses core security concerns effectively. The use of offline root CAs, short-lived certificates, and hardened containers reflects modern best practices. The active/active topology with shared intermediate keys is unconventional but viable for high availability, though it introduces a small risk of key compromise across all nodes simultaneously - active/passive would mitigate this. The TCP passthrough in HAProxy is appropriate for a CA, as TLS termination at the LB would expose private keys in memory to the LB, violating the principle of end-to-end encryption. Your state backend choice (PostgreSQL with CRL support) is justified for medium-volume production, as BadgerDB's lack of CRL is a notable limitation for revocation reliability. The PostgreSQL isolation on a private network is a good start, but adding mTLS between step-ca and Postgres would further reduce lateral movement risks. Separating SSH and TLS CAs with dedicated Ed25519/X.509 keys is a best practice, reducing blast radius for key compromise. The terraform.tfstate exposure and lack of intermediate expiration alerts are manageable risks with proper tooling. The market for this solution is niche but lucrative: organizations with strict compliance needs (e.g., finance, healthcare, government) or high-security internal infrastructures. These entities have budgets for PKI automation and are willing to pay for reliability, auditability, and reduced operational overhead. The audience size is small (thousands of enterprises globally) but high-value, with budgets ranging from $50K - $500K/year for PKI solutions. Your unmet need is likely around ease of management, compliance automation, and reducing manual ceremony risks - areas where commercial PKI tools often fall short.

Viability

nvidia/llama-3.3-nemotron-super-49b-v1(fallback #1)

8.0

The infrastructure is largely secure but could benefit from addressing key sharing risks, enhancing auditability, and considering additional encryption layers for further hardening.

The setup demonstrates strong security practices with offline Root CA, container hardening, and a robust state backend in PostgreSQL with CRL support. However, identified weaknesses and design choices introduce moderate risks: HAProxy's TCP passthrough may lack auditability compared to mTLS termination; BadgerDB's lack of CRL (though mitigated by short TTLs) poses revocation challenges; shared intermediate keys in active/active/active topology increase key exposure risk; and additional mTLS between step-ca and Postgres could enhance security. The separation between SSH and TLS CAs is appropriately handled with dedicated keys and certificates.

Synthesized by mistralai/mistral-medium-3.5-128b (fallback #2) · 54.4s