Skip to content

Secure-by-default generated applications #652

Open

Description

@ArmenSl

Is your feature request related to a problem?

Applications generated by BESSER (deterministic generators and the Spec-Driven Agent) should be secure by default, but there is no defined baseline we check them against.

Describe the solution you'd like

Review the generated backend and web application against a concrete checklist, fix what falls short in the templates, and add tests that keep it fixed:

  • Authentication and authorization on the generated API endpoints (no unauthenticated write access by default).
  • CORS defaults (no wildcard origin with credentials).
  • Secrets and connection strings read from the environment, never written into generated files.
  • Input validation on create/update endpoints and safe query construction.
  • Debug modes off and safe error responses (no stack traces) in production configs.
  • Pinned dependency versions in generated requirements.txt / package.json.
  • Container defaults: non-root user, minimal base image.

The Spec-Driven Agent's review step should check the same list on LLM-authored code.

Describe alternatives you've considered

Documenting what users must harden themselves. That puts the burden on the people least likely to know what to check.

Additional context

Related: #644 (security modeling), which would let generated authorization follow the model.

Activity

  1. added
    enhancementNew feature or request
    agentic_demoRaised during the agentic interface demo sessions
    securitySecurity modeling or security of generated applications
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentic_demoRaised during the agentic interface demo sessionscode generatorenhancementNew feature or requestsecuritySecurity modeling or security of generated applications

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions