Skip to content

docs: correct the unbacked claims left in SECURITY_GUARANTEES.md - #113

Merged
OkiriGabriel merged 3 commits into
open-devops-agent:mainfrom
Nitjsefnie-OSC:docs/security-guarantees-claims
Oct 24, 2026
Merged

OkiriGabriel merged 3 commits into
open-devops-agent:mainfrom
Nitjsefnie-OSC:docs/security-guarantees-claims

Conversation

@Nitjsefnie

Copy link
Copy Markdown
Contributor

Description

Follow-up to PR #111, invited in its merge review (#111 (comment)): SECURITY_GUARANTEES.md still carried claims nothing in the repository backs up — "98.5% success rate" (plus a per-fix-type accuracy table), "Compliant - SOC2, ISO27001, CIS, NIST, GDPR, PCI-DSS", and "RBAC (Role-Based Access Control) enforced" (there is no RBAC on the API; #59). This PR corrects those claims, and the retained examples that repeated them, to what the code actually does, with a code citation per corrected statement. Encryption at rest itself remains tracked in #60.

The corrections: the historical accuracy table and 98.5% figure are replaced with the verification the agent actually runs (FixVerifier immediate checks plus one 300-second stability window, gated on successful-remediation classification at normal completion); the certification claims are replaced with the security scanner's advisory CIS/SOC2/PCI text checks; the RBAC/authorization section now states that the API has no role-based authorization or general API-key authentication and describes the authentication that does exist (conditional webhook HMAC/shared-token and Slack signature checks, each inert when its secret is unset). Two retained examples that contradicted the corrected text — the per-command verify_fix() safety example and the ADMIN_KEY emergency-stop HTTP recipe — are aligned with the implemented behavior (no verification per command; the AGENT_EMERGENCY_STOP environment flag and its tool-dispatch gate).

Refs #59
Refs #60

Type of Change

  • Documentation update

Platform/Component

  • Documentation

Testing

  • Manual testing performed

Test Configuration

OS: Linux
Python Version: (not applicable — documentation-only change)
Kubernetes Version: (not applicable)
Cloud Provider: (not applicable)

This is a documentation-only change: no code, tests, or workflows are modified, and no test asserts on documentation wording. Every changed statement was verified against the code at this branch's head, and the citations are listed under Additional Notes. The repository's CI, including the docs workflow, runs against the branch head on the fork.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas (n/a: no code changed)
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (n/a: documentation-only change; no test may pin documentation wording)
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Not applicable.

Breaking Changes

None.

Additional Notes

What each corrected statement now says, and the code that shows it (line numbers at this branch's base, 384a344):

"98.5% success rate" and the historical accuracy table. The repository provides no measurement source for any historical accuracy percentage; the only implemented success_rate is the fraction of passing stability observations within one verification window (tools/fix_verifier.py:216-225). What the agent actually runs: at normal completion (agent/core.py:1096), verification triggers only when has_successful_remediation classifies an applied action as successful remediation (agent/grounding.py:139; agent/core.py:1110-1123); FixVerifier.verify_fix (tools/fix_verifier.py:70) dispatches by incident type and fails on unsupported types or missing target information (:126, :229-435), then repeats the same checks over the requested 300-second window (agent/core.py:880; tools/fix_verifier.py:162) with a 90% pass threshold. Failed immediate checks return status="failed"; failed monitoring returns unstable (:101-124). Results are saved and a Slack notification is attempted when SLACK_WEBHOOK_URL is configured, without guaranteed delivery (agent/core.py:1124-1132; tools/notify.py:42 skips when unset, :103 logs exceptions and does not check the response status). The completion path does not automatically roll back; Kubernetes, ArgoCD, and Helm rollback tools are separate agent actions (agent/core.py:1451, :1530, :1550). The resolved flag is computed independently of the verification result (agent/core.py:1110-1114, :1135).

Compliance claims ("Compliant - SOC2, ISO27001, CIS, NIST, GDPR, PCI-DSS", "Agent Complies With"). The SecurityScanner runs advisory text checks under three framework labels: COMPLIANCE_FRAMEWORKS (default CIS) selects CIS, SOC2/SOC-2, or PCI/PCI-DSS/PCIDSS checks, and other names are ignored (collectors/security_scanner.py:21-29, :277-291). The checks are string/regex heuristics — privileged-container and non-root settings for CIS (whose allowPrivilegeEscalation finding is always emitted: the predicate at :319 searches a space-containing literal in space-stripped input), non-local HTTP and embedded secrets for SOC2 (:331-356), card-data-like digit runs and non-local HTTP for PCI (:358-385). No ISO 27001, NIST, GDPR, or HIPAA checking exists, and none of this establishes compliance or certification. The document now says so.

"RBAC (Role-Based Access Control) enforced" and the authorization section. The API has no role-based authorization and no general API-key authentication middleware: the application is constructed without them (api/server.py:250), organization IDs select stored data without a caller permission check (:304-361), and a search of api/ for role/permission/API-key/allowlist middleware finds none. The roles YAML and ALLOWED_IPS examples are removed; the document now describes what exists: webhook authentication via HMAC signature or shared token (Alertmanager/Grafana bearer, GitLab X-Gitlab-Token) only when WEBHOOK_SECRET is set (api/server.py:264-270, :468, :496, :536; api/webhook_auth.py:33-90 — requests are accepted unauthenticated when the secret is unset), Slack signature verification only when SLACK_SIGNING_SECRET is set (api/webhook_auth.py:97-128), and deployment-level network controls as operator responsibility. The Kubernetes RBAC setup guidance, the RBAC best-practice checklist line, and the read-only IAM/RBAC advice for optional database access are deployment-environment recommendations and are unchanged.

Retained examples. The "Safety Mechanism" example no longer shows an unconditional verify_fix() after every command: the executor returns command status and output without fix verification (tools/executor.py:159, :184-198), and verification is the conditional normal-completion step cited above. The emergency-stop recipe no longer shows an ADMIN_KEY-authenticated HTTP call (no such route or key exists in api/server.py): the implemented mechanism is the AGENT_EMERGENCY_STOP environment flag, which gates mutating tool dispatch (tools/safety.py:63-64, :95-100; agent/core.py:1427-1431) and is reported by GET /health (api/server.py:275-284).

The same removed claims appear verbatim in README.md ("98.5% success rate", RBAC enforcement, the compliance list), SUMMARY_OF_CHANGES.md, and docs/FINAL_COMPREHENSIVE_STATUS.md; those files are outside this PR's scope and can be corrected in a follow-up if wanted.

Reviewer Checklist

  • Code quality is acceptable
  • Additional review is welcome on the new phrasings
  • Documentation is updated
  • No security concerns
  • Performance impact is acceptable

Footer

Generated by GLM-5.3-Flash (lead), GPT-6.1 Sol (implementation), GPT-6 Astra (review)

@Nitjsefnie

Copy link
Copy Markdown
Contributor Author

Heads-up: this branch lives in an organization-owned fork, and GitHub doesn't let maintainers push to those. If anything needs changing, just say so here and I'll make the change on this branch right away.

@OkiriGabriel OkiriGabriel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @Nitjsefnie, this is a thorough and honest rewrite. I checked the two strongest new claims against the code and both hold:

  • resolved is computed before verification and isn't gated by it (agent/core.py, around the has_successful_remediation block)
  • the CIS allowPrivilegeEscalation predicate searches for a string containing a space after stripping spaces from the input, so it always fires

Both are real bugs, so I've filed them as separate issues and tagged you. Approving and merging.

Non-blocking: the roughly 40 line-anchored links (api/server.py#L264, agent/core.py#L1110, …) point at main without a commit, so they drift whenever those files change, and agent/core.py and api/server.py change in most PRs. A future cleanup could link to files or functions without line numbers, or to a pinned commit permalink.

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.

2 participants