Skip to content

Posture checks stored in backend - #985

Merged
javuto merged 1 commit into
developfrom
posture-disable-checks
Aug 21, 2026
Merged

Posture checks stored in backend#985
javuto merged 1 commit into
developfrom
posture-disable-checks

Conversation

@javuto

@javuto javuto commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Added environment-scoped Posture configuration under the existing Configuration area, visible only when posture is enabled and the user can manage the environment.
  • Restored the Schedule tab’s Add posture checks picker for adding profile-based posture checks with a selected interval.
  • Added Posture tab editing for scheduled posture checks, including query name, query SQL, interval, platform, snapshot, and associated profile.
  • Persisted posture profile association in schedule entries via profile_id, while keeping evaluation logic out of stored config.
  • Added DB-backed posture check defaults/customization plumbing for names, query names, queries, descriptions, scores/weights, enabled state, and related metadata.
  • Updated posture scoring/profile loading to use configurable check metadata where applicable.
  • Added regression tests for posture schedule merging, profile metadata, environment Posture tab visibility, editing, and picker behavior.

Validation

  • cd frontend && npm test -- EnvConfigPage.test.tsx postureSchedule.test.ts
  • cd frontend && npm run check
  • git diff --check
  • GOCACHE=/tmp/osctrl-gocache go test ./pkg/posture ./cmd/api/handlers ./cmd/api ./cmd/tls/handlers ./cmd/cli
  • make openapi-check

@javuto javuto added osctrl-api osctrl-api related changes 🔐 security Security related issues ⭐️ frontend Frontend related issues labels Aug 21, 2026
@javuto
javuto merged commit 46e2f75 into develop Aug 21, 2026
8 checks passed
@javuto
javuto deleted the posture-disable-checks branch August 21, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⭐️ frontend Frontend related issues osctrl-api osctrl-api related changes 🔐 security Security related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant