spring-projects / spring-projects/spring-security

SEC-3039: Emit error on startup when using HSTS together with require-channel="http"

Open
#3,245 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement type: jira
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Thomas Timbul (Migrated from SEC-3039) said:

Using HSTS and specifying require-channel="http" anywhere amounts to invalid configuration. Doing so would break a site.

In such case a clear and prominent error should be emitted on startup pointing the user to the documentation, which should be improved as per https://jira.spring.io/browse/SEC-3038
Container startup should fail with an Exception to prevent this misconfiguration rather than just showing a warning.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the startup configuration paths for HSTS and require-channel="http". Verify that their combination is rejected with an exception during container startup, and consult the documentation referenced by SEC-3038 to confirm the configuration guidance is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.