uselagoon / lagoon-linter

Linter for .lagoon.yml
Apache License 2.0
0 stars 2 forks source link

Add deprecation for `hsts` #21

Open rocketeerbkw opened 1 year ago

rocketeerbkw commented 1 year ago

Routes could be configured to return the HSTS header by using the hsts field. The format was:

environments:
  main:
    routes:
      - nginx:
        - "www.example.com":
            hsts: max-age=31536000

HSTS is still supported, but the field names have changed, so existing hsts fields should throw a deprecation.

smlx commented 1 year ago

The linter has a deprecated profile for this purpose (it can already check for monitoring URLs).

See https://github.com/uselagoon/lagoon-linter/pull/14#issuecomment-960530253

The same goes for #22 and #23.