security: add SecureHeaders pipe to default web pipeline#1390
Conversation
Co-authored-by: renich <225115+renich@users.noreply.github.com>
ca893ac to
d9fc791
Compare
|
Good direction — shipping baseline security headers out of the box is something we want. The pipe itself is clean and the chosen low-risk headers are sensible (notably no CSP, and 1. It's never wired in. The PR adds Since Amber v1 still ships its own CLI generators, the wiring belongs in the app template: add 2. Don't ship HSTS on by default. Keeping the |
Plug SecureHeaders into the default web pipeline template. Turn HSTS off by default (making it opt-in) to prevent staging/development breaks, and add Referrer-Policy by default. Add assertion in pipelines_spec verifying the pipe is actually present in the default web pipeline. Co-developed-by: Gemini AI <renich+gemini@woralelandia.com> Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
|
I have updated the PR to address your feedback. Following your suggestions:
All tests compile and pass. (Note: This contribution was co-developed with Gemini AI. Rénich has directed, reviewed, tested, and takes full responsibility for this code.) |
Introduces a new SecureHeaders middleware pipe to default-enable basic HTTP security headers (XSS Protection, Frame Options, nosniff, HSTS) in new generated web apps.
Co-developed-by: Gemini AI renich+gemini@woralelandia.com
Signed-off-by: Rénich Bon Ćirić renich@woralelandia.com