Closed Bug 1595711 Opened 5 years ago Closed 5 years ago

api.lando.devsvcdev.mozaws.net has failed the web security baseline

Categories

(Conduit :: Lando, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: psiinon, Unassigned)

Details

(Keywords: conduit-triaged)

Site https://api.lando.devsvcdev.mozaws.net has failed the web security baseline scan.

The failing tests are:

Strict-Transport-Security Header Not Set [10035] x 8

This issue was automatically raised.

This issue is managed automatically by the baseline scan:

  • If the failing tests change then it will be updated
  • If it is closed before the tests pass then a new one will be opened
  • When all of the tests pass then it will be closed

Full details, including how to test for these issues locally, can be found on this Security Baseline Service dashboard.
If you have any questions or concerns please get in contact with @psiinon

Flags: needinfo?(ckolos)
Keywords: conduit-triaged
Priority: -- → P2

:smacleod - These are all urls handled by the app not nginx.

nginx already sets STS here: https://github.com/mozilla-services/cloudops-infra/blob/master/projects/lando/k8s/charts/api/templates/nginx-configmap.yaml#L84

The app needs to set STS on the 4xx responses as well. We already set the CSP from the app, so it makes sense that the STS could/would be set there as well.

fwiw, I added 'always' to the STS option but there was no change in behavior.

Flags: needinfo?(ckolos) → needinfo?(smacleod)

Spoke too soon (and cursed kubernetes quite a bit in the process); The 'always' param did work. Nothing more to see here. Move along.

I will make the changes to all lando configs and redeploy.

Flags: needinfo?(smacleod)

On redeploy to -dev, I see STS enabled on all the urls mentioned above.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
The web security baseline scan for site https://api.lando.devsvcdev.mozaws.net now passes - well done team!
You need to log in before you can comment on or make changes to this bug.