Skip to content

PMD: Support legacy security.txt location as fallback.#506

Merged
JanHoefelmeyer merged 8 commits into
mainfrom
support-legacy-security-txt
Nov 30, 2023
Merged

PMD: Support legacy security.txt location as fallback.#506
JanHoefelmeyer merged 8 commits into
mainfrom
support-legacy-security-txt

Conversation

@s-l-teichmann
Copy link
Copy Markdown
Contributor

If we don't find the security.txt in the well-known folder try to find it under https://domain/security.txt as a fallback.

Solves #503

Copy link
Copy Markdown
Contributor

@JanHoefelmeyer JanHoefelmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The checker still doesn't search for the Security.txt within the legacy location. This needs to be adjusted before merging.

@s-l-teichmann
Copy link
Copy Markdown
Contributor Author

The checker still doesn't search for the Security.txt within the legacy location. This needs to be adjusted before merging.

Addressed with 0a2b69b

JanHoefelmeyer
JanHoefelmeyer previously approved these changes Nov 14, 2023
Copy link
Copy Markdown
Contributor

@JanHoefelmeyer JanHoefelmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@tschmidtb51 tschmidtb51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the csaf_checker: The reporting seems to be sub-optimal:
Requirement 7 reports a warning of an unexpected situation "fetching the .well-known/security.txt fails with 404"
Requirement 8 does report that "fetching the .well-known/security.txt fails with 404" but does not state that the one under /security.txt was found.

Actions:

  • We need to add at least under 8 that the /security.txt was found (and if it had a CSAF entry).
  • We need to confirm that no security.txt (at all) does not result in an error (in requirement 7) if one of the other ways led to a PMD

Comment thread cmd/csaf_checker/processor.go Outdated
Co-authored-by: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@JanHoefelmeyer JanHoefelmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@tschmidtb51 tschmidtb51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and works

@JanHoefelmeyer JanHoefelmeyer merged commit d4ef215 into main Nov 30, 2023
@JanHoefelmeyer JanHoefelmeyer deleted the support-legacy-security-txt branch May 8, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support legacy location at root for /security.txt

3 participants