Repository navigation
docs: correct the unbacked claims left in SECURITY_GUARANTEES.md - #113
OkiriGabriel merged 3 commits into
Conversation
Co-Authored-By: GPT-6.1 Sol <[email protected]>
Co-Authored-By: GPT-6.1 Sol <[email protected]>
…ehavior Co-Authored-By: GPT-6.1 Sol <[email protected]>
|
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
left a comment
There was a problem hiding this comment.
Thanks @Nitjsefnie, this is a thorough and honest rewrite. I checked the two strongest new claims against the code and both hold:
resolvedis computed before verification and isn't gated by it (agent/core.py, around thehas_successful_remediationblock)- the CIS
allowPrivilegeEscalationpredicate 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.
Description
Follow-up to PR #111, invited in its merge review (#111 (comment)):
SECURITY_GUARANTEES.mdstill 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 (
FixVerifierimmediate 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-commandverify_fix()safety example and theADMIN_KEYemergency-stop HTTP recipe — are aligned with the implemented behavior (no verification per command; theAGENT_EMERGENCY_STOPenvironment flag and its tool-dispatch gate).Refs #59
Refs #60
Type of Change
Platform/Component
Testing
Test Configuration
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
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_rateis 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 whenhas_successful_remediationclassifies 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 returnstatus="failed"; failed monitoring returnsunstable(:101-124). Results are saved and a Slack notification is attempted whenSLACK_WEBHOOK_URLis configured, without guaranteed delivery (agent/core.py:1124-1132;tools/notify.py:42skips when unset,:103logs 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). Theresolvedflag 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
SecurityScannerruns advisory text checks under three framework labels:COMPLIANCE_FRAMEWORKS(defaultCIS) 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 (whoseallowPrivilegeEscalationfinding is always emitted: the predicate at:319searches 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 ofapi/for role/permission/API-key/allowlist middleware finds none. The roles YAML andALLOWED_IPSexamples are removed; the document now describes what exists: webhook authentication via HMAC signature or shared token (Alertmanager/Grafana bearer, GitLabX-Gitlab-Token) only whenWEBHOOK_SECRETis 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 whenSLACK_SIGNING_SECRETis 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 anADMIN_KEY-authenticated HTTP call (no such route or key exists inapi/server.py): the implemented mechanism is theAGENT_EMERGENCY_STOPenvironment flag, which gates mutating tool dispatch (tools/safety.py:63-64,:95-100;agent/core.py:1427-1431) and is reported byGET /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, anddocs/FINAL_COMPREHENSIVE_STATUS.md; those files are outside this PR's scope and can be corrected in a follow-up if wanted.Reviewer Checklist
Footer
Generated by GLM-5.3-Flash (lead), GPT-6.1 Sol (implementation), GPT-6 Astra (review)