Skip to content

Fix 28 findings from full-repo review#21

Merged
TsekNet merged 1 commit intomainfrom
repo-review
Mar 14, 2026
Merged

Fix 28 findings from full-repo review#21
TsekNet merged 1 commit intomainfrom
repo-review

Conversation

@TsekNet
Copy link
Copy Markdown
Owner

@TsekNet TsekNet commented Mar 14, 2026

Summary

  • Fix CRITICAL parser repoRoot global state (thread root parameter)
  • Fix HIGH data races in FetchAll goroutines (teamPartials struct)
  • Add GetProfiles pagination, url.Parse validation, insecure HTTP warning
  • Security: .. branch rejection, HTTPS enforcement, -- git arg separator, path traversal check, markdown escaping, HTTPError sanitization
  • Simplification: deduplicate matchesAnyTeam/normalizeSoftwarePath, remove bare block scope
  • Docs: fix stale API endpoints, config paths, merge description, missing env var

Test plan

  • go build ./... passes
  • go test ./... passes (all 9 packages)
  • Manual verification with fleet-gitops dry-run

Ref #20

- Remove parser repoRoot global, thread root parameter (CRITICAL)
- Fix FetchAll data races with teamPartials struct
- Add GetProfiles pagination loop
- Validate Fleet server URL with url.Parse
- Warn on insecure HTTP and world-readable config files
- Reject .. in branch names, enforce HTTPS in doRequest
- Add -- separator to git fetch/diff commands
- Add .. path traversal check in scope.go
- Escape resource names in markdown table cells
- Sanitize HTTPError body (strip newlines)
- Remove repoRoot global, accept .yaml team files
- Error on non-map YAML overlay in merge
- Report query logging changes to empty string
- Deduplicate matchesAnyTeam, normalizeSoftwarePath
- Remove bare block scope in diffSoftware
- Fix stale docs: API endpoints, config paths, merge description

Ref #20
@TsekNet TsekNet merged commit 475c394 into main Mar 14, 2026
1 check passed
@TsekNet TsekNet deleted the repo-review branch March 14, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant