From 1cdd7518ec061aab242d29e63b95008fa9c1f043 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Sat, 17 Oct 2026 22:32:56 +0200 Subject: [PATCH 1/2] Sync public API contract with control plane --- openapi.public.json | 302 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 301 insertions(+), 1 deletion(-) diff --git a/openapi.public.json b/openapi.public.json index be32a15..901defd 100644 --- a/openapi.public.json +++ b/openapi.public.json @@ -622,6 +622,80 @@ ], "type": "object" }, + "ChangeDiagramKindView": { + "enum": [ + "FLOWCHART", + "SEQUENCE" + ], + "type": "string" + }, + "ChangeDiagramOutcome": { + "oneOf": [ + { + "enum": [ + "DRAWN" + ], + "type": "string" + }, + { + "const": "NO_INTERACTION", + "description": "No interaction between three or more components survived selection.", + "type": "string" + }, + { + "const": "INDEX_INCOMPLETE", + "description": "The head's code index could not vouch for every edge.", + "type": "string" + }, + { + "const": "OVER_CAPS", + "description": "The changed call path is larger than a diagram shows.", + "type": "string" + }, + { + "const": "DECISION_UNAVAILABLE", + "description": "A decision the diagram depends on gave no answer.", + "type": "string" + } + ] + }, + "ChangeDiagramView": { + "description": "The change-level diagram recorded for a review, or why there is none.", + "properties": { + "kind": { + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeDiagramKindView" + }, + { + "type": "null" + } + ] + }, + "legend": { + "description": "Markdown lines under the diagram: which environment and snapshot its\n dashed relations come from, or which environment was not read.", + "items": { + "type": "string" + }, + "type": "array" + }, + "mermaid": { + "description": "Mermaid source the server generated from the stored graph. Every\n label is escaped, and no model wrote any of it. Absent unless\n `outcome` is `DRAWN`.", + "type": [ + "string", + "null" + ] + }, + "outcome": { + "$ref": "#/components/schemas/ChangeDiagramOutcome" + } + }, + "required": [ + "outcome", + "legend" + ], + "type": "object" + }, "CheckLifecycle": { "description": "World's lifecycle disclosure for the evaluator version that answered, as\n the receipt recorded it. A deployment gate counts only `GATING` results\n (`DeterministicCoverage::gate_effective_status`), and only when it\n evaluates a deployment; the lifecycle alone permits or blocks nothing.", "oneOf": [ @@ -841,6 +915,17 @@ ], "description": "The retained decision disclosure, which grants no deployment\n authorization. Absent when none is recorded and the review kind\n records no decision basis." }, + "declared_reach": { + "anyOf": [ + { + "$ref": "#/components/schemas/DeclaredReachView" + }, + { + "type": "null" + } + ], + "description": "What World declares depends on what this change deploys in this\n environment, at the assessment's pinned snapshot. Absent when the\n assessment's kind records no declared reach." + }, "domains": { "description": "The risk domains the assessment evaluated, each with its status and\n reason, ordered by domain.", "items": { @@ -940,6 +1025,17 @@ ], "description": "The retained decision disclosure, which grants no deployment\n authorization. Absent when none is recorded and the review kind\n records no decision basis." }, + "declared_reach": { + "anyOf": [ + { + "$ref": "#/components/schemas/DeclaredReachView" + }, + { + "type": "null" + } + ], + "description": "What World declares depends on what this change deploys in this\n environment, at the assessment's pinned snapshot. Absent when the\n assessment's kind records no declared reach." + }, "domains": { "description": "The risk domains the assessment evaluated, each with its status and\n reason, ordered by domain.", "items": { @@ -1642,6 +1738,17 @@ "null" ] }, + "change_diagram": { + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeDiagramView" + }, + { + "type": "null" + } + ], + "description": "The change-level diagram: the changed call path from the pinned code\n index and the relations World declares. Absent when the review\n recorded none." + }, "check_run_url": { "description": "The GitHub check run Proofline published for this review. Null when\n none was published.", "type": [ @@ -1857,6 +1964,17 @@ "null" ] }, + "refresh": { + "anyOf": [ + { + "$ref": "#/components/schemas/RefreshView" + }, + { + "type": "null" + } + ], + "description": "How this review decided what it reviews after a push or a full-review\n request. Absent for a review that refreshes nothing, and while a\n refresh has not decided yet." + }, "related_reviews": { "description": "Every other run for this pull request the caller can see, plus reviews\n joined to this one by supersession or rerun.", "items": { @@ -2021,6 +2139,68 @@ ], "type": "string" }, + "DeclaredReachOutcome": { + "enum": [ + "READ", + "NO_ROOTS", + "ROOTS_UNKNOWN", + "UNAVAILABLE" + ], + "type": "string" + }, + "DeclaredReachView": { + "description": "One assessment's declared reach receipt. A reached entity declares a\n dependency on what the change deploys; it is never a claim that the change\n breaks it.", + "properties": { + "complete": { + "description": "Whether World's walk ended with no gap. An empty, incomplete reach\n says nothing about what depends on the change.", + "type": "boolean" + }, + "entities": { + "description": "Every reached entity, shorter paths first, then by kind.", + "items": { + "$ref": "#/components/schemas/ReachedEntityView" + }, + "type": "array" + }, + "gaps": { + "description": "Where World's walk or its evidence stopped.", + "items": { + "$ref": "#/components/schemas/ReachGapView" + }, + "type": "array" + }, + "outcome": { + "allOf": [ + { + "$ref": "#/components/schemas/DeclaredReachOutcome" + } + ], + "description": "`READ` when World answered, `NO_ROOTS` when no evidence bound a\n deployed artifact or workload to the repository, `ROOTS_UNKNOWN` when\n World's evidence does not establish which revision runs, and\n `UNAVAILABLE` when World gave no answer. Only `READ` carries entities or gaps." + }, + "receipt_digest": { + "description": "World's digest of its full answer. Null unless `READ`.", + "type": [ + "string", + "null" + ] + }, + "snapshot_id": { + "description": "The World snapshot the reach was read at. Null unless `READ`.", + "format": "uuid", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "outcome", + "complete", + "entities", + "gaps" + ], + "type": "object" + }, "DeepReviewEscalation": { "properties": { "reason": { @@ -3671,7 +3851,7 @@ ] }, "blocking_severity": { - "description": "The frozen blocking threshold, either SERIOUS or WARNING; later settings do not restamp it.", + "description": "The frozen blocking threshold, either SERIOUS (serious and critical findings) or WARNING (every\n supported finding); later settings do not restamp it.", "type": "string" }, "bypassed_at": { @@ -3816,6 +3996,115 @@ } ] }, + "ReachGapView": { + "properties": { + "code": { + "description": "`COVERAGE_INCOMPLETE`, `SOURCE_CAPABILITY_MISSING` or `BOUND_REACHED`.", + "type": "string" + } + }, + "required": [ + "code" + ], + "type": "object" + }, + "ReachStepView": { + "properties": { + "assertion_id": { + "description": "The World relation assertion behind this step.", + "format": "uuid", + "type": "string" + }, + "direction": { + "description": "`OUT` when the step follows the relation from its subject, `IN` when\n it follows it back to the subject.", + "type": "string" + }, + "relation": { + "description": "The relation key, such as `proofline.relation.consumes_api`.", + "type": "string" + } + }, + "required": [ + "assertion_id", + "relation", + "direction" + ], + "type": "object" + }, + "ReachedEntityView": { + "properties": { + "entity_id": { + "description": "World's entity ID.", + "format": "uuid", + "type": "string" + }, + "kind": { + "description": "The entity's kind, such as `service` or `queue`.", + "type": "string" + }, + "label": { + "description": "World's display label for the entity: environment evidence for\n readers of this organization, never published to GitHub.", + "type": "string" + }, + "path": { + "description": "The recorded relation assertions from the deployed root to the entity.", + "items": { + "$ref": "#/components/schemas/ReachStepView" + }, + "type": "array" + }, + "type_keys": { + "description": "World's registry type keys for the entity.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "entity_id", + "kind", + "type_keys", + "label", + "path" + ], + "type": "object" + }, + "RefreshView": { + "description": "A recorded refresh decision, as the console shows it.", + "properties": { + "decided_by": { + "description": "What decided: `FLOOR`, a refresh rule that always reviews the whole\n change; `JEV`, Proofline's decision model within those rules; or\n `FALLBACK`, the refresh rules because the model did not decide.\n Absent for a full review a person requested, and for reviews decided\n before it was recorded.", + "type": [ + "string", + "null" + ] + }, + "mode": { + "description": "`INCREMENTAL` reviews only the files the push touched and carries the\n earlier review's untouched findings forward; `FULL` reviews the whole change.", + "type": "string" + }, + "reason": { + "description": "Why, in words. Server text that may name repository paths.", + "type": [ + "string", + "null" + ] + }, + "refreshes_review_id": { + "description": "The review this one refreshes. Absent for a full review a person requested.", + "format": "uuid", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "mode" + ], + "type": "object" + }, "RefusedEnvironment": { "description": "An environment a refusal names. `external_key` is how its pages are\n addressed.", "properties": { @@ -4453,6 +4742,17 @@ "null" ] }, + "refresh": { + "anyOf": [ + { + "$ref": "#/components/schemas/RefreshView" + }, + { + "type": "null" + } + ], + "description": "How this review decided what it reviews after a push or a full-review\n request. Absent for a review that refreshes nothing, and while a\n refresh has not decided yet." + }, "repository_full_name": { "description": "The repository's `owner/name`. Absent when the review names no repository.", "type": [ From 03d7ff702b93dd59609ddec8363724392b63bb64 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Sat, 17 Oct 2026 22:39:51 +0200 Subject: [PATCH 2/2] Use maintained Secret Service transport for Linux credentials --- Cargo.lock | 109 +++++++++++++++++++++++++++++++++++------------------ Cargo.toml | 2 +- 2 files changed, 73 insertions(+), 38 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7deac69..35503e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -128,31 +128,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "async-executor" -version = "1.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" -dependencies = [ - "async-task", - "concurrent-queue", - "fastrand", - "futures-lite", - "pin-project-lite", - "slab", -] - -[[package]] -name = "async-fs" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5" -dependencies = [ - "async-lock", - "blocking", - "futures-lite", -] - [[package]] name = "async-io" version = "2.6.0" @@ -621,6 +596,7 @@ dependencies = [ "hkdf", "num", "once_cell", + "openssl", "sha2", "zeroize", ] @@ -790,6 +766,21 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + [[package]] name = "form_urlencoded" version = "1.2.2" @@ -873,11 +864,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" dependencies = [ "futures-core", - "futures-io", "futures-macro", "futures-sink", "futures-task", - "memchr", "pin-project-lite", "slab", ] @@ -1350,11 +1339,11 @@ dependencies = [ "byteorder", "dbus-secret-service", "log", + "openssl", "secret-service", "security-framework 2.11.1", "security-framework 3.7.0", "windows-sys 0.60.2", - "zbus", "zeroize", ] @@ -1370,6 +1359,7 @@ version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" dependencies = [ + "cc", "pkg-config", ] @@ -1617,6 +1607,53 @@ version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" +[[package]] +name = "openssl" +version = "0.10.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45" +dependencies = [ + "bitflags", + "cfg-if", + "foreign-types", + "libc", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "openssl-src" +version = "300.6.1+3.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46eb8fb9fb3b61ce1c0f8a026c4c1a0714d3a9e138e7fbde78753ce2babc3846" +dependencies = [ + "cc", +] + +[[package]] +name = "openssl-sys" +version = "0.9.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695" +dependencies = [ + "cc", + "libc", + "openssl-src", + "pkg-config", + "vcpkg", +] + [[package]] name = "ordered-stream" version = "0.2.0" @@ -2461,7 +2498,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", "windows-sys 0.61.2", @@ -2516,7 +2553,6 @@ dependencies = [ "signal-hook-registry", "socket2", "tokio-macros", - "tracing", "windows-sys 0.61.2", ] @@ -2766,6 +2802,12 @@ dependencies = [ "vsimd", ] +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + [[package]] name = "version_check" version = "0.9.5" @@ -3170,15 +3212,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725" dependencies = [ "async-broadcast", - "async-executor", - "async-fs", - "async-io", - "async-lock", "async-process", "async-recursion", - "async-task", "async-trait", - "blocking", "enumflags2", "event-listener", "futures-core", @@ -3192,7 +3228,6 @@ dependencies = [ "serde_repr", "sha1", "static_assertions", - "tokio", "tracing", "uds_windows", "windows-sys 0.52.0", diff --git a/Cargo.toml b/Cargo.toml index d3c0a14..6b0fdc0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ clap = { version = "4", features = ["derive", "env"] } flate2 = "1" sha2 = "0.10" tar = "0.4" -keyring = { version = "3", default-features = false, features = ["apple-native", "windows-native", "async-secret-service", "crypto-rust", "tokio"] } +keyring = { version = "3", default-features = false, features = ["apple-native", "windows-native", "sync-secret-service", "crypto-rust", "vendored"] } reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] } secrecy = "0.10" serde = { version = "1", features = ["derive"] }