Lab 9 Submission#1393
Open
G-Akleh wants to merge 7 commits into
Open
Conversation
Signed-off-by: G-Akleh <ghadeer_akleh@hotmail.com>
Signed-off-by: G-Akleh <ghadeer_akleh@hotmail.com>
Signed-off-by: G-Akleh <ghadeer_akleh@hotmail.com>
Signed-off-by: G-Akleh <ghadeer_akleh@hotmail.com>
Signed-off-by: G-Akleh <ghadeer_akleh@hotmail.com>
Signed-off-by: G-Akleh <ghadeer_akleh@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Add DevSecOps scanning to QuickNotes: triage all Trivy/ZAP findings, fix them in code, and gate the CI on reachable Go vulnerabilities.
Changes
submissions/lab9.md.golang:1.24-alpine→golang:1.26-alpine; re-scan is0 HIGH/CRITICAL.securityHeadersmiddleware wrapping the whole router (app/middleware.go) with a guard test, fixingX-Content-Type-Options(ZAP10021WARN→PASS).govulncheckCI job (pinned@v1.1.4, Go 1.26 to match the shipped toolchain), wired into theci-okgate.Testing
go test ./...passes, including the new header test (fails if the middleware is removed).Total: 0 (HIGH: 0, CRITICAL: 0)./notes:X-Content-Type-Options [10021]moved WARN→PASS; before/after reports insubmissions/lab9-artifacts/.govulncheck ./...green (exit 0); red demo with a reachablegolang.org/x/text@v0.3.5dep reportsGO-2021-0113(exit 3), then reverted.Checklist
git log --show-signature)submissions/lab9.mdupdated