{"metadata": {"vulnerability": "CVE-2022-24765", "count": 264, "kinds": {"milestone": 31, "sighting": 9, "kev": 0, "other": 224}, "linked_omitted": 0}, "data": [{"timestamp": "2022-02-10T00:00:00Z", "date_only": false, "value": "2022-02-10T00:00:00.000Z", "kind": "milestone", "label": "Reserved", "source": "cvelistv5", "record": "CVE-2022-24765", "field": "cveMetadata.dateReserved"}, {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T00:00:00Z", "date_only": false, "value": "2022-04-12T00:00:00", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.0.date", "linked_record": true}, {"timestamp": "2022-04-12T00:00:00Z", "date_only": false, "value": "2022-04-12T00:00:00.000Z", "kind": "milestone", "label": "Published", "source": "cvelistv5", "record": "CVE-2022-24765", "field": "cveMetadata.datePublished", "metric_role": "disclosure", "metric_basis": "recorded_event"}, {"timestamp": "2022-04-12T10:00:00Z", "date_only": false, "value": "2022-04-12T10:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T10:00:00Z", "date_only": false, "value": "2022-04-12T10:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "vulnerabilities.0.release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T10:00:00Z", "date_only": false, "value": "2022-04-12T10:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "vulnerabilities.0.release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T10:00:00Z", "date_only": false, "value": "2022-04-12T10:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "vulnerabilities.0.release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T10:00:00Z", "date_only": false, "value": "2022-04-12T10:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.0.release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T10:00:00Z", "date_only": false, "value": "2022-04-12T10:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.0.release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T17:00:00Z", "date_only": false, "value": "2022-04-12T17:00:00Z", "kind": "milestone", "label": "Published", "source": "osv_ubuntu \u00b7 UBUNTU-CVE-2022-24765", "record": "UBUNTU-CVE-2022-24765", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T18:15:09.390Z", "date_only": false, "value": "2022-04-12T18:15:09.390000", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.11.date", "linked_record": true}, {"timestamp": "2022-04-12T18:15:09.390Z", "date_only": false, "value": "2022-04-12T18:15:09.390", "kind": "milestone", "label": "Published", "source": "fkie_nvd \u00b7 FKIE_CVE-2022-24765", "record": "FKIE_CVE-2022-24765", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T18:15:09.390Z", "date_only": false, "value": "2022-04-12T18:15:09.390", "kind": "milestone", "label": "Published", "source": "gsd \u00b7 GSD-2022-24765", "record": "GSD-2022-24765", "field": "namespaces.nvd.nist.gov.cve.published", "linked_record": true}, {"timestamp": "2022-04-12T22:00:00Z", "date_only": false, "value": "2022-04-12T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2022-04-12T22:00:00Z", "date_only": false, "value": "2022-04-12T22:00:00.000+00:00", "kind": "milestone", "label": "Published", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T22:00:00Z", "date_only": false, "value": "2022-04-12T22:00:00.000+00:00", "kind": "other", "label": "Release date", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "vulnerabilities.0.release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-12T22:17:09Z", "date_only": false, "value": "2022-04-12T22:17:09.000000Z", "kind": "sighting", "label": "Seen", "source": "https://t.me/cibsecurity/40669", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "925951ee-1850-4402-a409-336705f32246", "content": "\u203c CVE-2022-24765 \u203c\n\nGit for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\\.git\\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\\Users` if the user profile is located in `C:\\Users\\my-user-name`.\n\n\ud83d\udcd6 Read\n\nvia \"National Vulnerability Database\".", "url": "https://t.me/cibsecurity/40669"}, {"timestamp": "2022-04-13T00:00:00Z", "date_only": false, "value": "2022-04-13T00:00:00.000000", "kind": "other", "label": "Revision date", "source": "certfr_avis \u00b7 CERTFR-2022-AVI-337", "record": "CERTFR-2022-AVI-337", "field": "revisions.0.revision_date", "linked_record": true}, {"timestamp": "2022-04-14T09:53:26Z", "date_only": false, "value": "2022-04-14T09:53:26.000000Z", "kind": "sighting", "label": "Published proof of concept", "source": "https://t.me/cKure/9345", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "36bea4c0-26c5-4d99-ac22-ceca7055c98d", "content": "\u25a0\u25a0\u25a1\u25a1\u25a1 CVE-2022-24765: This vulnerability affects users working on multi-user machines where a malicious actor could create a .git directory in a shared location above a victim\u2019s current working directory. On Windows, for example, an attacker could create C:\\.git\\config, which would cause all git invocations that occur outside of a repository to read its configured values.\n\nhttps://github.blog/2022-04-12-git-security-vulnerability-announced/", "url": "https://t.me/cKure/9345", "metric_role": "exploit_publication", "metric_basis": "sighting_report"}, {"timestamp": "2022-04-19T10:26:05Z", "date_only": false, "value": "2022-04-19T10:26:05Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1260-1", "record": "SUSE-SU-2022:1260-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2022-04-19T10:26:05Z", "date_only": false, "value": "2022-04-19T10:26:05Z", "kind": "other", "label": "Document generated", "source": "csaf_suse \u00b7 SUSE-SU-2022:1260-1", "record": "SUSE-SU-2022:1260-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2022-04-19T10:26:05Z", "date_only": false, "value": "2022-04-19T10:26:05Z", "kind": "other", "label": "Impact", "source": "csaf_suse \u00b7 SUSE-SU-2022:1260-1", "record": "SUSE-SU-2022:1260-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2022-04-19T10:26:05Z", "date_only": false, "value": "2022-04-19T10:26:05Z", "kind": "milestone", "label": "Published", "source": "csaf_suse \u00b7 SUSE-SU-2022:1260-1", "record": "SUSE-SU-2022:1260-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-19T22:00:00Z", "date_only": false, "value": "2022-04-19T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2022-04-20T22:00:00Z", "date_only": false, "value": "2022-04-20T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2022-04-22T13:28:29Z", "date_only": false, "value": "2022-04-22T13:28:29Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1306-1", "record": "SUSE-SU-2022:1306-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2022-04-22T13:28:29Z", "date_only": false, "value": "2022-04-22T13:28:29Z", "kind": "other", "label": "Document generated", "source": "csaf_suse \u00b7 SUSE-SU-2022:1306-1", "record": "SUSE-SU-2022:1306-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2022-04-22T13:28:29Z", "date_only": false, "value": "2022-04-22T13:28:29Z", "kind": "other", "label": "Impact", "source": "csaf_suse \u00b7 SUSE-SU-2022:1306-1", "record": "SUSE-SU-2022:1306-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2022-04-22T13:28:29Z", "date_only": false, "value": "2022-04-22T13:28:29Z", "kind": "milestone", "label": "Published", "source": "csaf_suse \u00b7 SUSE-SU-2022:1306-1", "record": "SUSE-SU-2022:1306-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-04-24T22:00:00Z", "date_only": false, "value": "2022-04-24T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.3.date", "linked_record": true}, {"timestamp": "2022-04-25T22:00:00Z", "date_only": false, "value": "2022-04-25T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.4.date", "linked_record": true}, {"timestamp": "2022-04-26T22:00:00Z", "date_only": false, "value": "2022-04-26T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.5.date", "linked_record": true}, {"timestamp": "2022-05-02T14:47:40Z", "date_only": false, "value": "2022-05-02T14:47:40Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1484-1", "record": "SUSE-SU-2022:1484-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2022-05-02T14:47:40Z", "date_only": false, "value": "2022-05-02T14:47:40Z", "kind": "other", "label": "Document generated", "source": "csaf_suse \u00b7 SUSE-SU-2022:1484-1", "record": "SUSE-SU-2022:1484-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2022-05-02T14:47:40Z", "date_only": false, "value": "2022-05-02T14:47:40Z", "kind": "other", "label": "Impact", "source": "csaf_suse \u00b7 SUSE-SU-2022:1484-1", "record": "SUSE-SU-2022:1484-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2022-05-02T14:47:40Z", "date_only": false, "value": "2022-05-02T14:47:40Z", "kind": "milestone", "label": "Published", "source": "csaf_suse \u00b7 SUSE-SU-2022:1484-1", "record": "SUSE-SU-2022:1484-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-05-02T22:00:00Z", "date_only": false, "value": "2022-05-02T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.6.date", "linked_record": true}, {"timestamp": "2022-05-16T22:00:00Z", "date_only": false, "value": "2022-05-16T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.7.date", "linked_record": true}, {"timestamp": "2022-05-17T00:00:00Z", "date_only": false, "value": "2022-05-17T00:00:00.000000", "kind": "other", "label": "Revision date", "source": "certfr_avis \u00b7 CERTFR-2022-AVI-466", "record": "CERTFR-2022-AVI-466", "field": "revisions.0.revision_date", "linked_record": true}, {"timestamp": "2022-05-17T00:00:00Z", "date_only": false, "value": "2022-05-17T00:00:00.000000", "kind": "other", "label": "Revision date", "source": "certfr_avis \u00b7 CERTFR-2022-AVI-467", "record": "CERTFR-2022-AVI-467", "field": "revisions.0.revision_date", "linked_record": true}, {"timestamp": "2022-05-17T17:18:31Z", "date_only": false, "value": "2022-05-17T17:18:31", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.3.date", "linked_record": true}, {"timestamp": "2022-05-19T22:00:00Z", "date_only": false, "value": "2022-05-19T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.8.date", "linked_record": true}, {"timestamp": "2022-05-28T11:04:57Z", "date_only": false, "value": "2022-05-28T11:04:57Z", "kind": "milestone", "label": "Published", "source": "osv_openeuler \u00b7 OESA-2022-1676", "record": "OESA-2022-1676", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-06-09T22:00:00Z", "date_only": false, "value": "2022-06-09T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.9.date", "linked_record": true}, {"timestamp": "2022-07-12T00:00:00Z", "date_only": false, "value": "2022-07-12T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.1.release_date", "linked_record": true}, {"timestamp": "2022-07-12T00:00:00Z", "date_only": false, "value": "2022-07-12T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "vulnerabilities.1.release_date", "linked_record": true}, {"timestamp": "2022-07-12T00:00:00Z", "date_only": false, "value": "2022-07-12T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "vulnerabilities.1.release_date", "linked_record": true}, {"timestamp": "2022-07-12T00:00:00Z", "date_only": false, "value": "2022-07-12T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "vulnerabilities.1.release_date", "linked_record": true}, {"timestamp": "2022-07-12T00:00:00Z", "date_only": false, "value": "2022-07-12T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.1.release_date", "linked_record": true}, {"timestamp": "2022-07-12T00:00:00Z", "date_only": false, "value": "2022-07-12T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.1.release_date", "linked_record": true}, {"timestamp": "2022-07-12T22:00:00Z", "date_only": false, "value": "2022-07-12T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.10.date", "linked_record": true}, {"timestamp": "2022-07-13T00:25:32Z", "date_only": false, "value": "2022-07-13T00:25:32.000000Z", "kind": "sighting", "label": "Seen", "source": "https://t.me/cibsecurity/46093", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "4fc2147a-7dfc-4f3e-9e20-e27335146229", "content": "\u203c CVE-2022-29187 \u203c\n\nGit is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks.\n\n\ud83d\udcd6 Read\n\nvia \"National Vulnerability Database\".", "url": "https://t.me/cibsecurity/46093"}, {"timestamp": "2022-07-13T22:00:00Z", "date_only": false, "value": "2022-07-13T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.11.date", "linked_record": true}, {"timestamp": "2022-07-14T14:29:12Z", "date_only": false, "value": "2022-07-14T14:29:12", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.4.date", "linked_record": true}, {"timestamp": "2022-07-14T22:00:00Z", "date_only": false, "value": "2022-07-14T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.12.date", "linked_record": true}, {"timestamp": "2022-07-15T00:00:00Z", "date_only": false, "value": "2022-07-15T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.1.discovery_date", "linked_record": true}, {"timestamp": "2022-07-15T00:00:00Z", "date_only": false, "value": "2022-07-15T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "vulnerabilities.1.discovery_date", "linked_record": true}, {"timestamp": "2022-07-15T00:00:00Z", "date_only": false, "value": "2022-07-15T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "vulnerabilities.1.discovery_date", "linked_record": true}, {"timestamp": "2022-07-15T00:00:00Z", "date_only": false, "value": "2022-07-15T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "vulnerabilities.1.discovery_date", "linked_record": true}, {"timestamp": "2022-07-15T00:00:00Z", "date_only": false, "value": "2022-07-15T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.1.discovery_date", "linked_record": true}, {"timestamp": "2022-07-15T00:00:00Z", "date_only": false, "value": "2022-07-15T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.1.discovery_date", "linked_record": true}, {"timestamp": "2022-07-24T22:00:00Z", "date_only": false, "value": "2022-07-24T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.13.date", "linked_record": true}, {"timestamp": "2022-07-26T22:00:00Z", "date_only": false, "value": "2022-07-26T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.14.date", "linked_record": true}, {"timestamp": "2022-09-15T13:33:57Z", "date_only": false, "value": "2022-09-15T13:33:57Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:3283-1", "record": "SUSE-SU-2022:3283-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2022-09-15T13:33:57Z", "date_only": false, "value": "2022-09-15T13:33:57Z", "kind": "other", "label": "Document generated", "source": "csaf_suse \u00b7 SUSE-SU-2022:3283-1", "record": "SUSE-SU-2022:3283-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2022-09-15T13:33:57Z", "date_only": false, "value": "2022-09-15T13:33:57Z", "kind": "other", "label": "Impact", "source": "csaf_suse \u00b7 SUSE-SU-2022:3283-1", "record": "SUSE-SU-2022:3283-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2022-09-15T13:33:57Z", "date_only": false, "value": "2022-09-15T13:33:57Z", "kind": "milestone", "label": "Published", "source": "csaf_suse \u00b7 SUSE-SU-2022:3283-1", "record": "SUSE-SU-2022:3283-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-09-15T13:33:57Z", "date_only": false, "value": "2022-09-15T13:33:57Z", "kind": "other", "label": "Updated", "source": "csaf_suse \u00b7 SUSE-SU-2022:3283-1", "record": "SUSE-SU-2022:3283-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2022-09-15T22:00:00Z", "date_only": false, "value": "2022-09-15T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.15.date", "linked_record": true}, {"timestamp": "2022-10-04T07:34:55Z", "date_only": false, "value": "2022-10-04T07:34:55Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:3494-1", "record": "SUSE-SU-2022:3494-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2022-10-04T07:34:55Z", "date_only": false, "value": "2022-10-04T07:34:55Z", "kind": "other", "label": "Document generated", "source": "csaf_suse \u00b7 SUSE-SU-2022:3494-1", "record": "SUSE-SU-2022:3494-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2022-10-04T07:34:55Z", "date_only": false, "value": "2022-10-04T07:34:55Z", "kind": "other", "label": "Impact", "source": "csaf_suse \u00b7 SUSE-SU-2022:3494-1", "record": "SUSE-SU-2022:3494-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2022-10-04T07:34:55Z", "date_only": false, "value": "2022-10-04T07:34:55Z", "kind": "milestone", "label": "Published", "source": "csaf_suse \u00b7 SUSE-SU-2022:3494-1", "record": "SUSE-SU-2022:3494-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-10-04T07:37:04Z", "date_only": false, "value": "2022-10-04T07:37:04Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:3495-1", "record": "SUSE-SU-2022:3495-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2022-10-04T07:37:04Z", "date_only": false, "value": "2022-10-04T07:37:04Z", "kind": "other", "label": "Document generated", "source": "csaf_suse \u00b7 SUSE-SU-2022:3495-1", "record": "SUSE-SU-2022:3495-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2022-10-04T07:37:04Z", "date_only": false, "value": "2022-10-04T07:37:04Z", "kind": "other", "label": "Impact", "source": "csaf_suse \u00b7 SUSE-SU-2022:3495-1", "record": "SUSE-SU-2022:3495-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2022-10-04T07:37:04Z", "date_only": false, "value": "2022-10-04T07:37:04Z", "kind": "milestone", "label": "Published", "source": "csaf_suse \u00b7 SUSE-SU-2022:3495-1", "record": "SUSE-SU-2022:3495-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2022-10-04T22:00:00Z", "date_only": false, "value": "2022-10-04T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.16.date", "linked_record": true}, {"timestamp": "2022-10-18T00:00:00Z", "date_only": false, "value": "2022-10-18T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.2.release_date", "linked_record": true}, {"timestamp": "2022-10-18T00:00:00Z", "date_only": false, "value": "2022-10-18T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "vulnerabilities.2.release_date", "linked_record": true}, {"timestamp": "2022-10-18T00:00:00Z", "date_only": false, "value": "2022-10-18T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "vulnerabilities.2.release_date", "linked_record": true}, {"timestamp": "2022-10-18T00:00:00Z", "date_only": false, "value": "2022-10-18T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "vulnerabilities.2.release_date", "linked_record": true}, {"timestamp": "2022-10-18T00:00:00Z", "date_only": false, "value": "2022-10-18T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.2.release_date", "linked_record": true}, {"timestamp": "2022-10-18T00:00:00Z", "date_only": false, "value": "2022-10-18T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.2.release_date", "linked_record": true}, {"timestamp": "2022-10-24T00:00:00Z", "date_only": false, "value": "2022-10-24T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.2.discovery_date", "linked_record": true}, {"timestamp": "2022-10-24T00:00:00Z", "date_only": false, "value": "2022-10-24T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "vulnerabilities.2.discovery_date", "linked_record": true}, {"timestamp": "2022-10-24T00:00:00Z", "date_only": false, "value": "2022-10-24T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "vulnerabilities.2.discovery_date", "linked_record": true}, {"timestamp": "2022-10-24T00:00:00Z", "date_only": false, "value": "2022-10-24T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "vulnerabilities.2.discovery_date", "linked_record": true}, {"timestamp": "2022-10-24T00:00:00Z", "date_only": false, "value": "2022-10-24T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.2.discovery_date", "linked_record": true}, {"timestamp": "2022-10-24T00:00:00Z", "date_only": false, "value": "2022-10-24T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.2.discovery_date", "linked_record": true}, {"timestamp": "2022-12-11T23:00:00Z", "date_only": false, "value": "2022-12-11T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.17.date", "linked_record": true}, {"timestamp": "2023-01-22T23:00:00Z", "date_only": false, "value": "2023-01-22T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.18.date", "linked_record": true}, {"timestamp": "2023-01-29T23:00:00Z", "date_only": false, "value": "2023-01-29T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.19.date", "linked_record": true}, {"timestamp": "2023-01-30T16:35:13Z", "date_only": false, "value": "2023-01-30T16:35:13", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.7.date", "linked_record": true}, {"timestamp": "2023-01-31T00:00:00Z", "date_only": false, "value": "2023-01-31T00:00:00Z", "kind": "other", "label": "Updated", "source": "osv_debian_elts \u00b7 ELA-788-1", "record": "ELA-788-1", "field": "modified", "linked_record": true}, {"timestamp": "2023-02-01T00:00:00Z", "date_only": false, "value": "2023-02-01T00:00:00", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_update_date.data.3.date", "linked_record": true}, {"timestamp": "2023-02-08T00:00:00Z", "date_only": false, "value": "2023-02-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.4.discovery_date", "linked_record": true}, {"timestamp": "2023-02-08T00:00:00Z", "date_only": false, "value": "2023-02-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.4.discovery_date", "linked_record": true}, {"timestamp": "2023-02-14T00:00:00Z", "date_only": false, "value": "2023-02-14T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.4.release_date", "linked_record": true}, {"timestamp": "2023-02-14T00:00:00Z", "date_only": false, "value": "2023-02-14T00:00:00+00:00", "kind": "other", "label": "Release date", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.4.release_date", "linked_record": true}, {"timestamp": "2023-02-21T00:00:00Z", "date_only": false, "value": "2023-02-21T00:00:00Z", "kind": "other", "label": "Updated", "source": "osv_debian_elts \u00b7 ELA-803-1", "record": "ELA-803-1", "field": "modified", "linked_record": true}, {"timestamp": "2023-02-27T00:00:00Z", "date_only": false, "value": "2023-02-27T00:00:00", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_update_date.data.0.date", "linked_record": true}, {"timestamp": "2023-03-02T23:00:00Z", "date_only": false, "value": "2023-03-02T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2023-03-02T23:00:00Z", "date_only": false, "value": "2023-03-02T23:00:00.000+00:00", "kind": "milestone", "label": "Published", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-03-02T23:00:00Z", "date_only": false, "value": "2023-03-02T23:00:00.000+00:00", "kind": "other", "label": "Release date", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "vulnerabilities.93.release_date", "linked_record": true, "metric_role": "disclosure", "metric_basis": "recorded_event"}, {"timestamp": "2023-03-22T23:00:00Z", "date_only": false, "value": "2023-03-22T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2023-04-03T22:00:00Z", "date_only": false, "value": "2023-04-03T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2023-05-09T00:00:00Z", "date_only": false, "value": "2023-05-09T00:00:00Z", "kind": "milestone", "label": "Published", "source": "osv_almalinux \u00b7 ALSA-2023:2319", "record": "ALSA-2023:2319", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "milestone", "label": "Published", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "milestone", "label": "Published", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-09T15:18:13Z", "date_only": false, "value": "2023-05-09T15:18:13", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.6.date", "linked_record": true}, {"timestamp": "2023-05-12T07:01:53Z", "date_only": false, "value": "2023-05-12T07:01:53Z", "kind": "other", "label": "Updated", "source": "osv_almalinux \u00b7 ALSA-2023:2319", "record": "ALSA-2023:2319", "field": "modified", "linked_record": true}, {"timestamp": "2023-05-16T00:00:00Z", "date_only": false, "value": "2023-05-16T00:00:00Z", "kind": "milestone", "label": "Published", "source": "osv_almalinux \u00b7 ALSA-2023:2859", "record": "ALSA-2023:2859", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-16T08:32:51Z", "date_only": false, "value": "2023-05-16T08:32:51+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2023-05-16T08:32:51Z", "date_only": false, "value": "2023-05-16T08:32:51+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2023-05-16T08:32:51Z", "date_only": false, "value": "2023-05-16T08:32:51+00:00", "kind": "milestone", "label": "Published", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-16T08:32:51Z", "date_only": false, "value": "2023-05-16T08:32:51+00:00", "kind": "milestone", "label": "Published", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-16T08:32:51Z", "date_only": false, "value": "2023-05-16T08:32:51+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-16T08:32:51Z", "date_only": false, "value": "2023-05-16T08:32:51+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-05-16T17:08:14Z", "date_only": false, "value": "2023-05-16T17:08:14", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.5.date", "linked_record": true}, {"timestamp": "2023-05-16T22:00:00Z", "date_only": false, "value": "2023-05-16T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.20.date", "linked_record": true}, {"timestamp": "2023-05-18T22:00:00Z", "date_only": false, "value": "2023-05-18T22:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "document.tracking.revision_history.3.date", "linked_record": true}, {"timestamp": "2023-05-18T22:00:00Z", "date_only": false, "value": "2023-05-18T22:00:00.000+00:00", "kind": "other", "label": "Updated", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2023-05-19T22:19:51Z", "date_only": false, "value": "2023-05-19T22:19:51Z", "kind": "other", "label": "Updated", "source": "osv_almalinux \u00b7 ALSA-2023:2859", "record": "ALSA-2023:2859", "field": "modified", "linked_record": true}, {"timestamp": "2023-08-08T00:00:00Z", "date_only": false, "value": "2023-08-08T00:00:00", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.2.date", "linked_record": true}, {"timestamp": "2023-08-08T03:01:00Z", "date_only": false, "value": "2023-08-08T03:01:00", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_update_date.data.2.date", "linked_record": true}, {"timestamp": "2023-08-08T06:00:00Z", "date_only": false, "value": "2023-08-08T06:00:00.000Z", "kind": "other", "label": "Advisory revision", "source": "csaf_phoenixcontactgmbhcokg \u00b7 VDE-2023-016", "record": "VDE-2023-016", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2023-08-08T06:00:00Z", "date_only": false, "value": "2023-08-08T06:00:00.000Z", "kind": "milestone", "label": "Published", "source": "csaf_phoenixcontactgmbhcokg \u00b7 VDE-2023-016", "record": "VDE-2023-016", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-08-31T12:15:07.547Z", "date_only": false, "value": "2023-08-31T12:15:07.54724Z", "kind": "milestone", "label": "Published", "source": "osv_bellsoft \u00b7 BELL-CVE-2022-24765", "record": "BELL-CVE-2022-24765", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-12-13T01:19:43.363Z", "date_only": false, "value": "2023-12-13T01:19:43.363821Z", "kind": "other", "label": "Updated", "source": "gsd \u00b7 GSD-2022-24765", "record": "GSD-2022-24765", "field": "gsd.osvSchema.modified", "linked_record": true}, {"timestamp": "2023-12-27T00:00:00Z", "date_only": false, "value": "2023-12-27T00:00:00", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_update_date.data.1.date", "linked_record": true}, {"timestamp": "2023-12-27T10:06:30.486Z", "date_only": false, "value": "2023-12-27T10:06:30.486Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / GitHub_M", "record": "CVE-2022-24765", "field": "containers.cna.providerMetadata.dateUpdated"}, {"timestamp": "2023-12-27T10:15:37.267Z", "date_only": false, "value": "2023-12-27T10:15:37.267000", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_update_date.data.4.date", "linked_record": true}, {"timestamp": "2023-12-27T10:15:37.267Z", "date_only": false, "value": "2023-12-27T10:15:37.267", "kind": "other", "label": "Updated", "source": "gsd \u00b7 GSD-2022-24765", "record": "GSD-2022-24765", "field": "namespaces.nvd.nist.gov.cve.lastModified", "linked_record": true}, {"timestamp": "2023-12-27T14:55:24Z", "date_only": false, "value": "2023-12-27T14:55:24", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.9.date", "linked_record": true}, {"timestamp": "2023-12-27T23:00:00Z", "date_only": false, "value": "2023-12-27T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.21.date", "linked_record": true}, {"timestamp": "2024-01-25T08:01:33Z", "date_only": false, "value": "2024-01-25T08:01:33+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2024-01-25T08:01:33Z", "date_only": false, "value": "2024-01-25T08:01:33+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2024-01-25T08:01:33Z", "date_only": false, "value": "2024-01-25T08:01:33+00:00", "kind": "milestone", "label": "Published", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2024-01-25T08:01:33Z", "date_only": false, "value": "2024-01-25T08:01:33+00:00", "kind": "milestone", "label": "Published", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2024-01-25T08:01:33Z", "date_only": false, "value": "2024-01-25T08:01:33+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2024-01-25T08:01:33Z", "date_only": false, "value": "2024-01-25T08:01:33+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2024-01-25T23:00:00Z", "date_only": false, "value": "2024-01-25T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.22.date", "linked_record": true}, {"timestamp": "2024-01-26T15:20:15Z", "date_only": false, "value": "2024-01-26T15:20:15", "kind": "other", "label": "Date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "sources_release_date.data.8.date", "linked_record": true}, {"timestamp": "2024-02-07T17:59:02Z", "date_only": false, "value": "2024-02-07T17:59:02Z", "kind": "other", "label": "Updated", "source": "cleanstart \u00b7 CLEANSTART-2024-IU68706", "record": "CLEANSTART-2024-IU68706", "field": "modified", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12003-1", "record": "OPENSUSE-SU-2024:12003-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12005-1", "record": "OPENSUSE-SU-2024:12005-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12223-1", "record": "OPENSUSE-SU-2024:12223-1", "field": "document.tracking.revision_history.0.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Document generated", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12003-1", "record": "OPENSUSE-SU-2024:12003-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Document generated", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12005-1", "record": "OPENSUSE-SU-2024:12005-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Document generated", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12223-1", "record": "OPENSUSE-SU-2024:12223-1", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Impact", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12003-1", "record": "OPENSUSE-SU-2024:12003-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Impact", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12005-1", "record": "OPENSUSE-SU-2024:12005-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "other", "label": "Impact", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12223-1", "record": "OPENSUSE-SU-2024:12223-1", "field": "vulnerabilities.0.threats.0.date", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "milestone", "label": "Published", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12003-1", "record": "OPENSUSE-SU-2024:12003-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "milestone", "label": "Published", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12005-1", "record": "OPENSUSE-SU-2024:12005-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2024-06-15T00:00:00Z", "date_only": false, "value": "2024-06-15T00:00:00Z", "kind": "milestone", "label": "Published", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12223-1", "record": "OPENSUSE-SU-2024:12223-1", "field": "document.tracking.initial_release_date", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2024-07-23T19:42:48.266Z", "date_only": false, "value": "2024-07-23T19:42:48.266000Z", "kind": "other", "label": "Last update date", "source": "variot \u00b7 VAR-202204-0692", "record": "VAR-202204-0692", "field": "last_update_date", "linked_record": true}, {"timestamp": "2024-08-03T04:20:50.377Z", "date_only": false, "value": "2024-08-03T04:20:50.377Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / CVE", "record": "CVE-2022-24765", "field": "containers.adp.0.providerMetadata.dateUpdated"}, {"timestamp": "2024-08-15T17:46:07.359Z", "date_only": false, "value": "2024-08-15T17:46:07.359+00:00", "kind": "other", "label": "Document generated", "source": "csaf_certbund \u00b7 WID-SEC-W-2023-0561", "record": "WID-SEC-W-2023-0561", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2024-11-16T00:53:54Z", "date_only": false, "value": "2024-11-16T00:53:54+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.17-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.17-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2024-11-22T21:15:27Z", "date_only": false, "value": "2024-11-22T21:15:27+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2024-11-22T21:15:27Z", "date_only": false, "value": "2024-11-22T21:15:27+00:00", "kind": "other", "label": "Document generated", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2024-11-22T21:15:27Z", "date_only": false, "value": "2024-11-22T21:15:27+00:00", "kind": "other", "label": "Updated", "source": "csaf_redhat \u00b7 RHSA-2023_2319", "record": "RHSA-2023_2319", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2024-11-22T21:15:36Z", "date_only": false, "value": "2024-11-22T21:15:36+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2024-11-22T21:15:36Z", "date_only": false, "value": "2024-11-22T21:15:36+00:00", "kind": "other", "label": "Document generated", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2024-11-22T21:15:36Z", "date_only": false, "value": "2024-11-22T21:15:36+00:00", "kind": "other", "label": "Updated", "source": "csaf_redhat \u00b7 RHSA-2023_2859", "record": "RHSA-2023_2859", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2024-11-22T23:03:18Z", "date_only": false, "value": "2024-11-22T23:03:18+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2024-11-22T23:03:18Z", "date_only": false, "value": "2024-11-22T23:03:18+00:00", "kind": "other", "label": "Document generated", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2024-11-22T23:03:18Z", "date_only": false, "value": "2024-11-22T23:03:18+00:00", "kind": "other", "label": "Updated", "source": "csaf_redhat \u00b7 RHSA-2024_0407", "record": "RHSA-2024_0407", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2025-02-21T16:36:19Z", "date_only": false, "value": "2025-02-21T16:36:19+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.18-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.18-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2025-04-10T09:11:31.362Z", "date_only": false, "value": "2025-04-10T09:11:31.362Z", "kind": "other", "label": "Document generated", "source": "csaf_phoenixcontactgmbhcokg \u00b7 VDE-2023-016", "record": "VDE-2023-016", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2025-05-22T13:03:10Z", "date_only": false, "value": "2025-05-22T13:03:10.000Z", "kind": "other", "label": "Advisory revision", "source": "csaf_phoenixcontactgmbhcokg \u00b7 VDE-2023-016", "record": "VDE-2023-016", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2025-05-22T13:03:10Z", "date_only": false, "value": "2025-05-22T13:03:10.000Z", "kind": "other", "label": "Updated", "source": "csaf_phoenixcontactgmbhcokg \u00b7 VDE-2023-016", "record": "VDE-2023-016", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2025-07-29T13:22:24.293Z", "date_only": false, "value": "2025-07-29T13:22:24.293609Z", "kind": "other", "label": "Updated", "source": "osv_bellsoft \u00b7 BELL-CVE-2022-24765", "record": "BELL-CVE-2022-24765", "field": "modified", "linked_record": true}, {"timestamp": "2025-07-29T13:22:24.293Z", "date_only": false, "value": "2025-07-29T13:22:24.293609Z", "kind": "other", "label": "Withdrawn", "source": "osv_bellsoft \u00b7 BELL-CVE-2022-24765", "record": "BELL-CVE-2022-24765", "field": "withdrawn", "linked_record": true}, {"timestamp": "2025-09-08T16:50:03Z", "date_only": false, "value": "2025-09-08T16:50:03Z", "kind": "other", "label": "Updated", "source": "osv_ubuntu \u00b7 UBUNTU-CVE-2022-24765", "record": "UBUNTU-CVE-2022-24765", "field": "modified", "linked_record": true}, {"timestamp": "2025-10-01T10:55:59Z", "date_only": false, "value": "2025-10-01T10:55:59+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.15-MAIN-GIT", "record": "ALPINE-V3.15-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2025-10-01T15:49:48Z", "date_only": false, "value": "2025-10-01T15:49:48+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.13-MAIN-GIT", "record": "ALPINE-V3.13-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2025-12-16T17:47:32.484Z", "date_only": false, "value": "2025-12-16T17:47:32.484278Z", "kind": "other", "label": "Recorded", "source": "cvelistv5 / CISA-ADP", "record": "CVE-2022-24765", "field": "containers.adp.1.metrics.0.other.content.timestamp"}, {"timestamp": "2025-12-16T17:47:32.484Z", "date_only": false, "value": "2025-12-16T17:47:32.484278Z", "kind": "other", "label": "Recorded", "source": "fkie_nvd \u00b7 FKIE_CVE-2022-24765", "record": "FKIE_CVE-2022-24765", "field": "metrics.ssvcV203.0.ssvcData.timestamp", "linked_record": true}, {"timestamp": "2025-12-16T17:47:44.510Z", "date_only": false, "value": "2025-12-16T17:47:44.510Z", "kind": "other", "label": "Updated", "source": "cvelistv5", "record": "CVE-2022-24765", "field": "cveMetadata.dateUpdated"}, {"timestamp": "2025-12-16T17:47:44.510Z", "date_only": false, "value": "2025-12-16T17:47:44.510Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / CISA-ADP", "record": "CVE-2022-24765", "field": "containers.adp.1.providerMetadata.dateUpdated"}, {"timestamp": "2026-03-01T23:00:00Z", "date_only": false, "value": "2026-03-01T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.23.date", "linked_record": true}, {"timestamp": "2026-03-02T23:00:00Z", "date_only": false, "value": "2026-03-02T23:00:00.000+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.revision_history.24.date", "linked_record": true}, {"timestamp": "2026-03-02T23:00:00Z", "date_only": false, "value": "2026-03-02T23:00:00.000+00:00", "kind": "other", "label": "Updated", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-03-03T09:42:38.187Z", "date_only": false, "value": "2026-03-03T09:42:38.187+00:00", "kind": "other", "label": "Document generated", "source": "csaf_certbund \u00b7 WID-SEC-W-2022-0252", "record": "WID-SEC-W-2022-0252", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2026-04-15T20:31:11Z", "date_only": false, "value": "2026-04-15T20:31:11+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.14-MAIN-GIT", "record": "ALPINE-V3.14-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-04-18T10:26:42Z", "date_only": false, "value": "2026-04-18T10:26:42+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.20-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.20-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2026-06-04T11:39:57Z", "date_only": false, "value": "2026-06-04T11:39:57.000000Z", "kind": "sighting", "label": "Seen", "source": "https://gist.github.com/pablodevhub/f8ea59b974140db34110721bea7e940b", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "6a83e56d-ea01-44a6-8dfe-7f78e75553f8", "content": "# Fix: `git submodule update` \u2014 *fatal: detected dubious ownership in repository*\n\n## Problema\n\nEseguendo comandi Git (es. `git submodule update`) su una directory di cui non si \u00e8 proprietari, Git restituisce il seguente errore:\n\n```\nfatal: detected dubious ownership in repository at 'C:/Users/username/source/myproject'\n```\n\nGit rifiuta di operare su repository in cui l'utente corrente non corrisponde al proprietario della directory.\n\n---\n\n## Soluzioni\n\n### 1. Aggiungere una directory specifica alla whitelist\n\nAggiunge solo il percorso indicato alla lista delle directory considerate sicure:\n\n```bash\ngit config --global --add safe.directory C:/Users/username/source/myproject\n```\n\nProduce nel file `.gitconfig`:\n\n```ini\n[safe]\n    directory = C:/Users/username/source/myproject\n```\n\n&gt; Preferibile quando si vuole limitare l'eccezione a un singolo progetto.\n\n---\n\n### 2. Disabilitare il controllo per tutte le directory\n\nSegna qualsiasi directory come sicura, indipendentemente dalla propriet\u00e0:\n\n```bash\ngit config --global --add safe.directory *\n```\n\nProduce nel file `.gitconfig`:\n\n```ini\n[safe]\n    directory = *\n```\n\n&gt; Adatto in ambienti controllati (es. macchine di sviluppo personali, container CI/CD) dove il controllo di ownership non \u00e8 necessario.\n\n---\n\n## File `.gitconfig`\n\nIl file si trova in:\n\n| OS      | Percorso                        |\n|---------|---------------------------------|\n| Windows | `C:\\Users\\\\.gitconfig` |\n| Linux / macOS | `~/.gitconfig`            |\n\n---\n\n## Riferimento\n\n- [Git docs \u2014 `safe.directory`](https://git-scm.com/docs/git-config#Documentation/git-config.txt-safedirectory)\n- [GitHub Advisory \u2014 CVE-2022-24765](https://github.blog/2022-04-12-git-security-vulnerability-announced/)", "url": "https://gist.github.com/pablodevhub/f8ea59b974140db34110721bea7e940b"}, {"timestamp": "2026-06-17T04:32:28.087Z", "date_only": false, "value": "2026-06-17T04:32:28.087", "kind": "other", "label": "Updated", "source": "fkie_nvd \u00b7 FKIE_CVE-2022-24765", "record": "FKIE_CVE-2022-24765", "field": "lastModified", "linked_record": true}, {"timestamp": "2026-06-19T08:40:28Z", "date_only": false, "value": "2026-06-19T08:40:28+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.19-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.19-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2026-07-17T05:00:06.521Z", "date_only": false, "value": "2026-07-17T05:00:06.521728Z", "kind": "sighting", "label": "Seen", "source": "https://t.me/EchelonEyes/165", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "51064a88-cb73-4ba2-a82a-47fcf756f87f", "content": "\u0412 Git \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u044b \u0434\u0432\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438, \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b \u0438 Git \u0434\u043b\u044f Windows\n\n\u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c CVE-2022-24765 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b, \u0433\u0434\u0435 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 .git \u0432 \u043e\u0431\u0449\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043d\u0430\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u043c \u0436\u0435\u0440\u0442\u0432\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 Windows \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c C:\\.git\\config, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432\u0441\u0435 \u0432\u044b\u0437\u043e\u0432\u044b git, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0431\u0443\u0434\u0443\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.\n\n\u0412\u0442\u043e\u0440\u0430\u044f \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c, CVE-2022-24767, \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440\u043e\u043c Git for Windows, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f SYSTEM \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e C:\\Windows\\Temp (\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c), \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b .dll, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c. \n\n\u041e\u0431\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u044b \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 Git 2.35.2. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e, \u043d\u0430 Github \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044e \u0440\u0438\u0441\u043a\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432.\n\n\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a:\nhttps://github.blog/2022-04-12-git-security-vulnerability-announced/\n\n#\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c #Git", "url": "https://t.me/EchelonEyes/165"}, {"timestamp": "2026-08-04T08:51:40.257Z", "date_only": false, "value": "2026-08-04T08:51:40.257285Z", "kind": "sighting", "label": "Seen", "source": "https://gist.github.com/xwa5/3fad7514a482ddd87182dcedcc51c0cc", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "d19a0b3a-33a4-4f3b-943b-f9d04cdf62f7", "content": "\n\n\n\n\ndoarchon \u2014 Wiki\n\n\n\n\n*{margin:0;padding:0;box-sizing:border-box}\n:root{\n  --bg:#ffffff;--sidebar-bg:#f8f9fb;--border:#e5e7eb;\n  --text:#1e293b;--text-muted:#64748b;--primary:#2563eb;\n  --primary-soft:#eff6ff;--hover:#f1f5f9;--code-bg:#f1f5f9;\n  --radius:8px;--shadow:0 1px 3px rgba(0,0,0,.08);\n}\nbody{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  line-height:1.65;color:var(--text);background:var(--bg)}\n\n.layout{display:flex;min-height:100vh}\n.sidebar{width:280px;background:var(--sidebar-bg);border-right:1px solid var(--border);\n  position:fixed;top:0;left:0;bottom:0;overflow-y:auto;padding:24px 16px;\n  display:flex;flex-direction:column;z-index:10}\n.content{margin-left:280px;flex:1;padding:48px 64px;max-width:960px}\n\n.sidebar-header{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}\n.sidebar-title{font-size:16px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:8px}\n.sidebar-title svg{flex-shrink:0}\n.sidebar-meta{font-size:11px;color:var(--text-muted);margin-top:6px}\n.nav-section{margin-bottom:2px}\n.nav-item{display:block;padding:7px 12px;border-radius:var(--radius);cursor:pointer;\n  font-size:13px;color:var(--text);text-decoration:none;transition:all .15s;\n  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.nav-item:hover{background:var(--hover)}\n.nav-item.active{background:var(--primary-soft);color:var(--primary);font-weight:600}\n.nav-item.overview{font-weight:600;margin-bottom:4px}\n.nav-children{padding-left:14px;border-left:1px solid var(--border);margin-left:12px}\n.nav-group-label{font-size:11px;font-weight:600;color:var(--text-muted);\n  text-transform:uppercase;letter-spacing:.5px;padding:12px 12px 4px;user-select:none}\n.sidebar-footer{margin-top:auto;padding-top:16px;border-top:1px solid var(--border);\n  font-size:11px;color:var(--text-muted);text-align:center}\n\n.content h1{font-size:28px;font-weight:700;margin-bottom:8px;line-height:1.3}\n.content h2{font-size:22px;font-weight:600;margin:32px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--border)}\n.content h3{font-size:17px;font-weight:600;margin:24px 0 8px}\n.content h4{font-size:15px;font-weight:600;margin:20px 0 6px}\n.content p{margin:12px 0}\n.content ul,.content ol{margin:12px 0 12px 24px}\n.content li{margin:4px 0}\n.content a{color:var(--primary);text-decoration:none}\n.content a:hover{text-decoration:underline}\n.content blockquote{border-left:3px solid var(--primary);padding:8px 16px;margin:16px 0;\n  background:var(--primary-soft);border-radius:0 var(--radius) var(--radius) 0;\n  color:var(--text-muted);font-size:14px}\n.content code{font-family:'SF Mono',Consolas,'Courier New',monospace;font-size:13px;\n  background:var(--code-bg);padding:2px 6px;border-radius:4px}\n.content pre{background:#1e293b;color:#e2e8f0;border-radius:var(--radius);padding:16px;\n  overflow-x:auto;margin:16px 0}\n.content pre code{background:none;padding:0;font-size:13px;line-height:1.6;color:inherit}\n.content table{border-collapse:collapse;width:100%;margin:16px 0}\n.content th,.content td{border:1px solid var(--border);padding:8px 12px;text-align:left;font-size:14px}\n.content th{background:var(--sidebar-bg);font-weight:600}\n.content img{max-width:100%;border-radius:var(--radius)}\n.content hr{border:none;border-top:1px solid var(--border);margin:32px 0}\n.content .mermaid{margin:20px 0;text-align:center}\n\n.menu-toggle{display:none;position:fixed;top:12px;left:12px;z-index:20;\n  background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);\n  padding:8px 12px;cursor:pointer;font-size:18px;box-shadow:var(--shadow)}\n@media(max-width:768px){\n  .sidebar{transform:translateX(-100%);transition:transform .2s}\n  .sidebar.open{transform:translateX(0);box-shadow:2px 0 12px rgba(0,0,0,.1)}\n  .content{margin-left:0;padding:24px 20px;padding-top:56px}\n  .menu-toggle{display:block}\n}\n.empty-state{text-align:center;padding:80px 20px;color:var(--text-muted)}\n.empty-state h2{font-size:20px;margin-bottom:8px;border:none}\n\n\n\n\n&#9776;\n\n\n\n\n\n\n\n\n\ndoarchon\n\n\n\n\n\n\n\nGenerated by GitNexus\n\n\n\n\n\nLoading\u2026\n\n\n\nvar PAGES = {\"api-server-and-integrations\":\"# API Server and Integrations\\n\\n# API Server and Integrations\\n\\nThe `packages/server` module provides Archon\u2019s HTTP server, web UI transport, platform adapters, external service clients, startup migrations, background schedulers, and operational notifications.\\n\\nThe main entry point is `packages/server/src/index.ts`. The server can run as:\\n\\n- A full multi-platform server with Web, Telegram, Discord, Slack, GitHub, Gitea, and GitLab integrations.\\n- A standalone Web/API server using `ServerOptions.skipPlatformAdapters`.\\n- A production server that serves the compiled web UI.\\n- A development server that exposes API and streaming endpoints while the front end runs separately.\\n\\n## Architecture\\n\\n```mermaid\\nflowchart TD\\n    Entry[startServer] --&gt; Bootstrap[Environment and providers]\\n    Bootstrap --&gt; DB[Database connection and migrations]\\n    DB --&gt; Web[WebAdapter and SSE transport]\\n    Web --&gt; Routes[Hono API and webhook routes]\\n    Bootstrap --&gt; Platforms[Platform adapters]\\n    Platforms --&gt; Workflow[handleMessage and orchestrator]\\n    Routes --&gt; Workflow\\n    Bootstrap --&gt; Jobs[Background schedulers]\\n    Jobs --&gt; Notifications[Runtime trace and InfoFlow notifications]\\n    Routes --&gt; External[GitCase and BOS clients]\\n```\\n\\n## Server startup\\n\\n`startServer(opts?: ServerOptions)` owns the complete server lifecycle.\\n\\n### `ServerOptions`\\n\\n```ts\\nexport interface ServerOptions {\\n  webDistPath?: string;\\n  port?: number;\\n  skipPlatformAdapters?: boolean;\\n}\\n```\\n\\n- `webDistPath` overrides the production web distribution directory. This is useful for the CLI binary, which may download the web assets separately.\\n- `port` overrides the automatically selected port. Valid ports are `1` through `65535`.\\n- `skipPlatformAdapters` starts only the Web/API server and disables Telegram, Discord, Slack, GitHub, Gitea, and GitLab initialization.\\n\\n### Bootstrap order\\n\\nThe module deliberately performs environment setup before importing application components that read configuration:\\n\\n1. `@archon/paths/strip-cwd-env-boot` removes environment variables automatically loaded from the current working directory by Bun.\\n2. Development/source builds load the repository `.env` using `dotenv`.\\n3. `loadArchonEnv(process.cwd())` loads user-scoped and repository-scoped Archon configuration:\\n   - `~/.archon/.env`\\n   - `/.archon/.env`\\n4. The repository-scoped Archon file overrides the user-scoped file.\\n5. If no Claude credentials are explicitly configured, `CLAUDE_USE_GLOBAL_AUTH` defaults to `true`.\\n6. `registerBuiltinProviders()` and `registerCommunityProviders()` initialize the provider registry before any provider lookup occurs.\\n\\nThis ordering is important when the server is started from inside a target repository. Repository credentials must not leak into the server process before Archon\u2019s environment loader takes effect.\\n\\n### Credential validation\\n\\nThe server accepts either Claude or Codex credentials:\\n\\n- Claude:\\n  - `CLAUDE_API_KEY`\\n  - `CLAUDE_CODE_OAUTH_TOKEN`\\n  - `CLAUDE_USE_GLOBAL_AUTH`\\n- Codex:\\n  - `CODEX_ID_TOKEN`\\n  - `CODEX_ACCESS_TOKEN`\\n\\nIf neither provider has credentials, startup logs `no_ai_credentials` and exits. Missing credentials for one provider produce warnings, but do not prevent startup when the other provider is configured.\\n\\nThe database is checked with `SELECT 1`, and `runMigrations()` is then executed. Migration failures are fatal.\\n\\n### Startup initialization\\n\\nAfter the database is available, `startServer()` initializes:\\n\\n- `startEvaluationWorker()`\\n- SLA rollup refresh scheduling\\n- `syncBundledWorkflowsToDB()`\\n- `syncBundledCommandsToDB()`\\n- `migrateUserWorkflowsToDB()`\\n- `syncUgateTokensToFiles()`\\n- `startCodebaseRestoreService()`\\n- Core configuration through `loadConfig()` and `logConfig()`\\n- Cleanup scheduling through `startCleanupScheduler()`\\n- Runtime trace retention\\n- Conversation concurrency control through `ConversationLockManager`\\n- Web transport and persistence\\n- Workflow trace recording and export\\n- Knowledge sync dispatch\\n- Workflow notifications\\n- SLA InfoFlow notifications\\n- Scheduled task execution\\n\\nSome startup tasks are intentionally non-blocking. For example, codebase restoration and orphaned workflow recovery run in the background so network or repository failures do not prevent the HTTP server from becoming available.\\n\\n## Web server and API routes\\n\\nThe server uses `OpenAPIHono` from `@hono/zod-openapi`.\\n\\n### Request handling\\n\\nA global validation hook is configured with `validationErrorHook`. The application also installs:\\n\\n- A global `app.onError()` handler that logs request failures and returns:\\n  ```json\\n  { \\\"error\\\": \\\"Internal server error\\\" }\\n  ```\\n- Request-header debug logging for every request.\\n\\n### Route registration\\n\\nThe following route groups are registered during startup:\\n\\n- `registerApiRoutes()`\\n  - Web UI API\\n  - Conversation and workflow operations\\n  - Orchestrator dispatch support\\n- `registerAuthRoutes()`\\n  - UUAP authentication\\n- `registerProductSpaceRoutes()`\\n  - Product Space management\\n- `registerKnowledgeRoutes()`\\n- `registerKnowledgeChatRoutes()`\\n- `registerKnowledgeProxyRoutes()`\\n  - Proxying requests to the AI-Ku knowledge service\\n- `registerWebhookRoutes()`\\n  - GitHub, Gitea, and GitLab webhook processing\\n- `registerHealthRoutes()`\\n  - Health and active-platform reporting\\n\\n`registerApiRoutes()` returns route helpers, including `dispatchToOrchestrator`. That dispatcher is also passed to `recoverOrphanedWorkflows()` after the server starts listening.\\n\\n### Static web UI\\n\\nIn production, or whenever `WEB_UI_DEV` is not set, the server serves the web bundle:\\n\\n- `/assets/*`\\n- `/logo.png`\\n- An SPA fallback for unmatched routes\\n\\nThe web directory defaults to a path derived from `import.meta.dir`, but can be overridden with `ServerOptions.webDistPath`.\\n\\nBefore serving `index.html`, the server calls:\\n\\n- `buildRuntimeConfig()`\\n- `injectRuntimeConfig()`\\n\\nThis injects `window.__RUNTIME_CONFIG__` into the HTML, allowing one static image to use environment-specific runtime settings such as `INFOFLOW_CHAT_URL`.\\n\\n### Listening configuration\\n\\nThe server binds to:\\n\\n- `HOST`, defaulting to `0.0.0.0`\\n- An explicit `opts.port`, or the result of `getPort()`\\n\\n`Bun.serve()` uses an idle timeout of 255 seconds, the maximum supported value, to avoid terminating long-lived SSE connections.\\n\\n## Web conversations and streaming\\n\\nThe Web integration is always enabled.\\n\\nThe components are connected as follows:\\n\\n1. `SSETransport` manages server-sent event connections.\\n2. `MessagePersistence` buffers and persists conversation events.\\n3. `WorkflowEventBridge` converts workflow events into transport events.\\n4. `WebAdapter` combines these components and starts the web integration.\\n\\nThe transport and persistence objects use callbacks that reference each other. These references are safe because the callbacks are invoked asynchronously after construction.\\n\\nWhen an SSE client disconnects, the transport cleanup callback calls `persistence.flush(conversationId)`. It flushes rather than clears the conversation mapping because workflow execution may continue after the client disconnects.\\n\\n`persistence.startPeriodicFlush()` periodically writes buffered messages. During shutdown, `flushAll()` runs before adapters and the database pool are stopped.\\n\\n## Platform adapters\\n\\nPlatform integrations are initialized conditionally from environment variables. Each adapter feeds messages into the common `handleMessage()` workflow path.\\n\\n`activePlatforms` is a mutable array shared with the health route. It starts with `Web`, and each successfully started adapter appends its platform name. It must remain a live reference because some adapters, notably Telegram, start after the HTTP listener begins accepting requests.\\n\\n### GitHub\\n\\nEnabled when both are configured:\\n\\n- `GITHUB_TOKEN`\\n- `WEBHOOK_SECRET`\\n\\nThe server creates a `GitHubAdapter` with:\\n\\n- GitHub token\\n- Webhook secret\\n- `ConversationLockManager`\\n- Bot mention, resolved from:\\n  - `GITHUB_BOT_MENTION`\\n  - `BOT_DISPLAY_NAME`\\n  - `config.botName`\\n\\nThe adapter is started before webhook routes are registered.\\n\\n### Gitea\\n\\nEnabled when all are configured:\\n\\n- `GITEA_URL`\\n- `GITEA_TOKEN`\\n- `GITEA_WEBHOOK_SECRET`\\n\\n`GiteaAdapter` receives the same lock manager and bot-mention fallback pattern as GitHub.\\n\\n### GitLab\\n\\nEnabled when both are configured:\\n\\n- `GITLAB_TOKEN`\\n- `GITLAB_WEBHOOK_SECRET`\\n\\n`GITLAB_URL` is optional and is passed to `GitLabAdapter` when present.\\n\\n### Discord\\n\\nEnabled with `DISCORD_BOT_TOKEN`.\\n\\n`DiscordAdapter` supports:\\n\\n- `DISCORD_STREAMING_MODE=stream|batch`, defaulting to `batch`\\n- Mention-gated activation in guild channels\\n- Direct-message activation without a mention\\n- Automatic thread creation through `ensureThread()`\\n- Thread history context\\n- Parent channel context inheritance\\n\\nFor each accepted message, the handler:\\n\\n1. Resolves the conversation ID.\\n2. Ignores empty content.\\n3. Ignores unmentioned guild messages.\\n4. Removes the bot mention.\\n5. Ensures the message is in a thread.\\n6. Loads prior thread history, excluding the current message.\\n7. Resolves the parent channel.\\n8. Acquires the conversation lock.\\n9. Calls `handleMessage()` asynchronously.\\n\\nDiscord startup failures are isolated. Invalid tokens and missing privileged intents are logged, but the Web server remains available and the Discord adapter is discarded.\\n\\n### Slack\\n\\nEnabled when both are configured:\\n\\n- `SLACK_BOT_TOKEN`\\n- `SLACK_APP_TOKEN`\\n\\n`SlackAdapter` supports `SLACK_STREAMING_MODE=stream|batch`, defaulting to `batch`.\\n\\nSlack messages follow the same common workflow path as Discord:\\n\\n- Empty messages are ignored.\\n- Bot mentions are stripped.\\n- Thread history is loaded when applicable.\\n- Parent conversation context is passed to `handleMessage()`.\\n- `ConversationLockManager` provides concurrency control.\\n\\nUnlike Discord, Slack startup errors are not wrapped in a local `try/catch` in `startServer()`. A configuration or login error can therefore reject server startup.\\n\\n### Telegram\\n\\nEnabled with `TELEGRAM_BOT_TOKEN`.\\n\\nThe default mode is `stream`; override it with `TELEGRAM_STREAMING_MODE=stream|batch`.\\n\\nTelegram authentication is handled internally by `TelegramAdapter`. Incoming messages are dispatched through `ConversationLockManager` and `handleMessage()`.\\n\\nTelegram starts after the HTTP listener is active. If it fails to start, the server logs `telegram.start_failed`, removes the adapter, and continues without Telegram.\\n\\n### Message error handling\\n\\n`createMessageErrorHandler(platform, adapter, conversationId)` creates a platform-specific asynchronous error callback.\\n\\nWhen processing fails:\\n\\n1. The error is logged as `message_processing_failed`.\\n2. `classifyAndFormatError()` creates a user-facing error message.\\n3. The adapter sends that message to the conversation.\\n4. A second failure while sending the error is logged as `error_message_send_failed`.\\n\\n### Unhandled promise rejections\\n\\n`handleUnhandledRejection()` implements fail-fast behavior:\\n\\n- Rejections containing `Operation aborted` are treated as Claude SDK cleanup races and logged without exiting.\\n- All other unhandled rejections are logged at fatal level and terminate the process.\\n\\nThis exception is needed because an SDK `PostToolUse` hook can attempt to write to a subprocess pipe after a DAG node has already been aborted.\\n\\n## Concurrency control\\n\\n`ConversationLockManager` is initialized with `MAX_CONCURRENT_CONVERSATIONS`, defaulting to `12`.\\n\\nThe limit is a real backpressure gate. It controls how many conversations or workflows can run concurrently; excess work waits in a queue. The default leaves capacity for health checks, conversation creation, and other database operations.\\n\\nThe configured value should generally remain near the database pool capacity. Setting it too high can cause concurrent workflows to exhaust the database pool and event loop.\\n\\n## Background services\\n\\n### Runtime trace retention\\n\\n`startRuntimeTraceRetentionScheduler()` obtains the policy from `runtime.getRuntimeTracePolicy()` and immediately calls `runtimeTraceDb.enforceRuntimeTraceRetention()`.\\n\\nIt then repeats every six hours. The scheduler logs deletion, archival, and archival failures when work was performed.\\n\\n`stopRuntimeTraceRetentionScheduler()` clears the timer during shutdown.\\n\\n### Runtime trace alerts\\n\\n`startRuntimeTraceAlertScheduler()` is enabled by default unless:\\n\\n```text\\nARCHON_TRACE_ALERT_ENABLED=false\\n```\\n\\nConfiguration:\\n\\n- `ARCHON_TRACE_ALERT_TARGETS`\\n  - Comma-separated targets\\n  - Defaults to `web`\\n- `ARCHON_TRACE_ALERT_WINDOW_MINUTES`\\n  - Defaults to `15`\\n- `ARCHON_TRACE_ALERT_INTERVAL_SECONDS`\\n  - Defaults to `60`\\n- `ARCHON_TRACE_ALERT_COOLDOWN_MINUTES`\\n  - Defaults to `15`\\n\\nThe scheduler:\\n\\n1. Calls `runtimeTraceDb.buildRuntimeTraceAlertsForWindow()`.\\n2. Persists candidates with `recordRuntimeTraceAlerts()`.\\n3. Ignores informational or inactive alerts.\\n4. Applies an in-memory cooldown keyed by `alert.dedupe_key`.\\n5. Emits a `runtime_trace_alert` event on `getRuntimeTraceEventBus()`.\\n6. Sends the alert to configured Slack, Telegram, or webhook targets.\\n\\nSlack and Telegram require both an enabled target and a destination:\\n\\n- Slack: `ARCHON_TRACE_ALERT_SLACK_CHANNEL`\\n- Telegram: `ARCHON_TRACE_ALERT_TELEGRAM_CHAT`\\n\\nWebhook targets are read from `ARCHON_TRACE_ALERT_WEBHOOK_URLS`. Only HTTP and HTTPS URLs are accepted. Requests are sent concurrently with `Promise.allSettled()` so one webhook failure does not prevent delivery to others.\\n\\n### SLA rollup refresh\\n\\n`startSlaRollupRefreshScheduler()` immediately invokes `observabilityDb.refreshDirtySlaRollupBuckets()` and repeats every five seconds.\\n\\nThe refresh is intentionally prompt even when no dashboard request is active. Source-row triggers perform invalidation; this scheduler drains dirty five-minute buckets.\\n\\nThe scheduler is stopped by `stopSlaRollupRefreshScheduler()`.\\n\\n### Knowledge sync recovery\\n\\n`startWorkflowRunKnowledgeSyncDispatcher()` runs once immediately and then every 60 seconds.\\n\\nIt:\\n\\n- Reads at most 20 pending knowledge-sync run IDs.\\n- Dispatches each with `dispatchWorkflowRunToAiKu()`.\\n- Does not retry jobs in an `unknown` state because the remote service may already have accepted them.\\n- Prevents overlapping scans with a local `running` flag.\\n- Logs individual dispatch failures and scan failures without terminating the server.\\n\\nThe returned stop function clears the interval.\\n\\n### Scheduled tasks\\n\\n`startScheduledTaskScheduler(buildScheduledTaskDeps())` starts the core scheduled-task runner. Due tasks create orchestration sessions; the orchestration service calls back through HTTP to trigger workflow runs.\\n\\n`stopScheduledTaskScheduler()` is called during graceful shutdown.\\n\\n### Workflow recovery\\n\\nAfter `server_listening` is logged, `recoverOrphanedWorkflows()` scans rows left in `running` state by a previous process generation.\\n\\nRecovery is best-effort and does not block startup. Configuration options include:\\n\\n- `WORKFLOW_MAX_RESTART_RECOVERY`\\n- `WORKFLOW_RESTART_RECOVERY_STAGGER_MS`\\n- `WORKFLOW_RESTART_RECOVERY_MAX_AGE_DAYS`\\n\\nRuns that cannot be safely re-dispatched remain available for cancellation or abandonment through the Web UI or CLI.\\n\\n## InfoFlow integration\\n\\nInfoFlow is used for workflow approval commands and SLA notifications.\\n\\n### Sending messages\\n\\n`sendInfoflowMessage()` accepts:\\n\\n```ts\\nexport interface SendInfoflowMessageInput {\\n  chatType: 'single' | 'group';\\n  target: string;\\n  content: string;\\n  atUserIds?: readonly string[];\\n  clientMessageId?: string | number;\\n}\\n```\\n\\nRequired credentials:\\n\\n- `INFOFLOW_AK`\\n- `INFOFLOW_SK`\\n\\nOptional configuration:\\n\\n- `INFOFLOW_BASE_URL`\\n- `INFOFLOW_TOKEN_BASE_URL`\\n- `INFOFLOW_GROUP_BASE_URL`\\n- `INFOFLOW_TIMEOUT_SECONDS`\\n\\nDefaults:\\n\\n- Single-chat base URL: `https://apiin.im.baidu.com`\\n- Group-chat base URL: `https://open-ruliu.baidu-int.com/open-plat`\\n\\nSingle messages are sent as Markdown (`msgtype: 'md'`). Group messages can include mentions and a client message ID.\\n\\n### InfoFlow webhook verification\\n\\n`services/infoflow-webhook.ts` handles encrypted InfoFlow callbacks.\\n\\nConfiguration is loaded by `readInfoflowWebhookConfig()`:\\n\\n- `INFOFLOW_CHECK_TOKEN`\\n- `INFOFLOW_ENCODING_AES_KEY`\\n\\nThe callback flow is:\\n\\n1. `verifyInfoflowCallbackUrl()` verifies the signed URL and decrypts `echoStr` during endpoint registration.\\n2. `decryptInfoflowCallback()` extracts `` from the XML body.\\n3. `verifyInfoflowSignature()` checks the SHA-1 signature using a timing-safe comparison.\\n4. `decryptInfoflowPayload()` decrypts the AES-256-CBC payload.\\n5. `parseInfoflowPlainMessage()` extracts message fields from XML.\\n6. `parseInfoflowCommand()` recognizes approval commands.\\n7. `handleInfoflowIncomingMessage()` loads the workflow run and calls:\\n   - `approveWorkflowRunAndResume()`\\n   - `rejectWorkflowRunAndResume()`\\n   - `breakpointRetryWorkflowRunAndResume()`\\n\\nSupported command forms include:\\n\\n```text\\napprove  [comment]\\nreject  [comment]\\nretry \\n/workflow approve  [comment]\\n\u6279\u51c6  [comment]\\n\u62d2\u7edd  [comment]\\n\u91cd\u8bd5 \\n```\\n\\nUnrecognized content returns `{ handled: false }`.\\n\\n### SLA notifications\\n\\n`startSlaInfoflowNotifier()` is disabled unless:\\n\\n```text\\nINFOFLOW_SLA_NOTIFY_ENABLED=true\\n```\\n\\nIt also requires:\\n\\n- `NODE_ENV=production`\\n- PostgreSQL\\n- A target from `INFOFLOW_SLA_NOTIFY_TARGET` or `BAIDU_CC_USERNAME`\\n\\nThe notifier can provide three notification types:\\n\\n1. Workflow self-node failures\\n2. Daily SLA summaries\\n3. SLA threshold breach alerts\\n\\nConfiguration includes:\\n\\n- `INFOFLOW_SLA_NOTIFY_CHAT_TYPE=single|group`\\n- `INFOFLOW_SLA_NOTIFY_AT_USER_IDS`\\n- `INFOFLOW_SLA_WORKFLOW_ERROR_NOTIFY_ENABLED`\\n- `INFOFLOW_SLA_DAILY_SUMMARY_ENABLED`\\n- `INFOFLOW_SLA_DAILY_SUMMARY_HOUR`\\n- `INFOFLOW_SLA_DAILY_SUMMARY_MINUTE`\\n- `INFOFLOW_SLA_BREACH_ALERT_ENABLED`\\n- `INFOFLOW_SLA_BREACH_THRESHOLD_PERCENT`\\n- `ARCHON_FRONTEND_URL`\\n\\nDelivery is deduplicated through database delivery records:\\n\\n- `claimSlaNotificationDelivery()`\\n- `markSlaNotificationDeliverySent()`\\n- `markSlaNotificationDeliveryFailed()`\\n\\nGroup messages use the claimed delivery ID as `clientMessageId`.\\n\\n#### Workflow failure notifications\\n\\nA real-time poll runs every 30 seconds and reads persisted workflow failures in batches of 100. It uses a one-minute overlap and a `(occurred_at, id)` cursor to avoid missing events across polling boundaries.\\n\\nMessages are formatted by `buildSlaInfoflowContent()`. `inferSlaWorkflowRootCauseInsight()` classifies common failures, including:\\n\\n- Control-plane or service connection timeouts\\n- Missing workflow commands\\n- Missing local CLI dependencies\\n- Sandbox lifecycle failures\\n- Node execution timeouts\\n- Provider streaming failures\\n- Bash/script failures\\n- Generic workflow-node failures\\n\\nCredentials are sanitized before error text is included in notifications.\\n\\n#### Daily summaries\\n\\n`startDailySlaSummaryScheduler()` schedules the next summary in Beijing time. The default schedule is 10:00 Asia/Shanghai and can be changed with:\\n\\n- `INFOFLOW_SLA_DAILY_SUMMARY_HOUR`\\n- `INFOFLOW_SLA_DAILY_SUMMARY_MINUTE`\\n\\n`buildSlaDailySummaryContent()` aggregates SLA, traffic, and probe metrics and includes the most significant workflow issues.\\n\\n#### Threshold alerts\\n\\n`startSlaBreachMonitor()` evaluates a 24-hour window every five minutes. The default threshold is 99%, configurable through `INFOFLOW_SLA_BREACH_THRESHOLD_PERCENT`.\\n\\n`evaluateSlaThresholdBreaches()` evaluates:\\n\\n- User-perceived SLA\\n- Environment stability\\n- System stability\\n- Workflow stability\\n\\nAn alert is sent only when the observability data has complete bucket coverage. `claimSlaBreachEpisode()` ensures one alert is generated per breach episode; `resolveSlaBreachEpisode()` marks the episode recovered after all metrics return above the threshold.\\n\\n## GitCase client\\n\\n`packages/server/src/gitcase-client.ts` provides a shared client for the internal GitCase test-case management platform.\\n\\nThe base URL is configured through `GITCASE_BASE_URL` and defaults to:\\n\\n```text\\nhttp://10.11.87.162:80\\n```\\n\\nRequests include the service headers:\\n\\n- `baidu-service-name`\\n- `baidu-service-token`\\n- `baidu-service-username`\\n\\nThese values come from:\\n\\n- `GITCASE_SERVICE_NAME`\\n- `GITCASE_SERVICE_TOKEN`\\n- `GITCASE_SERVICE_USERNAME`\\n\\nA per-call `username` argument overrides the service username, allowing routes to operate on behalf of the logged-in user.\\n\\n### Generic request helpers\\n\\n- `gitcaseGet()`\\n  - Performs a JSON GET.\\n  - Includes query parameters.\\n  - Throws with status, URL, and response body on non-2xx responses.\\n  - Throws with response metadata when the body is not JSON.\\n- `gitcaseGetList()`\\n  - Applies default pagination:\\n    - `page=0`\\n    - `size=500`\\n    - `sort=id,desc`\\n  - Unwraps arrays, `{ data: [] }`, and Spring-style `{ data: { content: [] } }` responses.\\n- `gitcasePost()`\\n  - Sends a JSON body with query parameters.\\n- `gitcasePostRaw()`\\n  - Sends a body without query parameters.\\n  - Supports already-stringified payloads and raw array bodies.\\n\\n### Case and tag operations\\n\\nThe client exposes helpers used by `routes/api/gitcase.ts`:\\n\\n- `gitcaseBulkCreateCases()`\\n- `gitcaseBulkAppendLabels()`\\n- `gitcaseBulkReplaceLabels()`\\n- `gitcaseGetSpaceTags()`\\n- `gitcaseAddSpaceTag()`\\n- `gitcaseListCases()`\\n- `gitcaseGetCasesDetail()`\\n\\n`gitcaseGetSpaceTags()` returns an empty array on failure. `gitcaseAddSpaceTag()` returns `-1` on failure; other request helpers throw so callers can decide how to handle upstream errors.\\n\\n`gitcaseListCases()` uses `gitcasePost()` because the endpoint requires both filters in the request body and pagination/filter parameters in the query string.\\n\\n## Baidu Object Storage client\\n\\n`packages/server/src/bos-client.ts` wraps the Baidu Cloud BOS SDK.\\n\\nThe BOS client is lazily created by `getBosClient()` and cached for the process lifetime. Required configuration:\\n\\n- `BCE_BOS_ENDPOINT`\\n- `BCE_ACCESS_KEY_ID`\\n- `BCE_SECRET_ACCESS_KEY`\\n- `BCE_BOS_BUCKET`\\n\\nThe endpoint may be supplied with or without a protocol. Missing configuration produces an explicit error.\\n\\n### Object operations\\n\\n- `getBosObjectContent(bosPath)`\\n  - Downloads an object.\\n  - Returns its `Buffer`, content type, and response metadata.\\n- `uploadToBos(key, content, contentType?)`\\n  - Uploads a string with `putObjectFromString()`.\\n  - Uploads a `Buffer` with `putObject()`.\\n  - Returns `{ key, bucket }`.\\n- `uploadFileToBos(key, filePath, contentType?)`\\n  - Uploads a local file with `putObjectFromFile()`.\\n- `generateBosPresignedUrl(key, expiresInSeconds?)`\\n  - Generates a signed URL.\\n  - Defaults to 1,800 seconds.\\n\\nThe workflow exporter uses `uploadToBos()` and `uploadFileToBos()` when dispatching workflow runs to AI-Ku. The case-info API uses `uploadToBos()` for file synchronization.\\n\\n## Workflow and command synchronization\\n\\n### Bundled workflows\\n\\n`syncBundledWorkflowsToDB()` imports `BUNDLED_WORKFLOWS` as system-scoped workflows.\\n\\nFor each workflow it:\\n\\n1. Parses the YAML with `parseWorkflow()` to obtain a description.\\n2. Uses `getDefaultWorkflowsPath()` to provide a source path for parsing.\\n3. Calls `upsertSystemWorkflow()`.\\n4. Logs per-item failures and a summary.\\n\\nParsing failures are warnings; the workflow is still synchronized with a null description when possible.\\n\\nThe operation is idempotent and does not modify product-scoped forks.\\n\\n### Bundled commands\\n\\n`syncBundledCommandsToDB()` imports `BUNDLED_COMMANDS` as system commands.\\n\\nIt:\\n\\n1. Extracts descriptions using `extractCommandDescription()`.\\n2. Looks up existing commands with `getSystemCommandByName()`.\\n3. Creates missing commands with `createSystemCommand()`.\\n4. Updates changed content or descriptions with `updateSystemCommand()`.\\n5. Reports inserted, updated, unchanged, and failed counts.\\n\\n### Project workflows\\n\\n`syncProjectWorkflowsToDB(codebaseId, productId, cwd)` discovers project workflow files with:\\n\\n```ts\\ndiscoverWorkflows(cwd, { loadDefaults: false })\\n```\\n\\nOnly entries with `source === 'project'` are imported. Existing database records always win; the function inserts only names absent from `listProjectWorkflowNames(productId, codebaseId)`.\\n\\nDiscovery and individual insert failures are logged and do not abort the entire synchronization.\\n\\n### Legacy user workflows\\n\\n`migrateUserWorkflowsToDB()` migrates rows from `remote_agent_user_workflows` into product-scoped workflows.\\n\\nBehavior:\\n\\n- Detects PostgreSQL and SQLite separately.\\n- Skips silently when the legacy table does not exist.\\n- Resolves the owner username through `remote_agent_users`.\\n- Creates a deterministic legacy product space ID using `legacyProductId(ownerUserId)`.\\n- Ensures the owner is a `product_admin`.\\n- Inserts workflows idempotently.\\n- Preserves original timestamps and definitions.\\n\\nPostgreSQL uses `ON CONFLICT DO NOTHING`. SQLite checks for an existing product/name pair before inserting.\\n\\n## Runtime configuration injection\\n\\n`runtime-config.ts` bridges build-time front-end configuration and deployment-time environment variables.\\n\\n`buildRuntimeConfig(env = process.env)` currently exposes:\\n\\n```ts\\ninterface RuntimeConfig {\\n  infoflowChatUrl?: string;\\n}\\n```\\n\\nThe value comes from `INFOFLOW_CHAT_URL`.\\n\\n`injectRuntimeConfig(html, config)` serializes the configuration and escapes `&lt;` as `\\\\u003c` before inserting:\\n\\n```html\\nwindow.__RUNTIME_CONFIG__={...};&lt;\\/script&gt;\\n```\\n\\nThe script is inserted immediately before `&lt;\\/head&gt;`, or prepended when no head tag exists.\\n\\n## Graceful shutdown\\n\\nThe shutdown handler registered for `SIGINT` and `SIGTERM` stops services in dependency order:\\n\\n1. Cleanup scheduler\\n2. Runtime trace retention\\n3. SLA rollup refresh\\n4. Scheduled tasks\\n5. Evaluation worker\\n6. Runtime trace alert scheduler\\n7. Workflow trace recorder\\n8. Workflow run exporter\\n9. Knowledge sync dispatcher\\n10. Workflow notification listener\\n11. SLA InfoFlow notifier\\n12. Message persistence periodic flush\\n13. Full message flush\\n14. Telegram, Discord, Slack, Gitea, and GitLab adapters\\n15. `WebAdapter`\\n16. Telemetry through `shutdownTelemetry()`\\n17. Database pool through `pool.end()`\\n\\nThe process exits with status `0` after a successful pool close and status `1` if closing the pool fails.\\n\\nWhen adding a long-running service to this module, return a stop function and invoke it from `shutdown()` to avoid orphaned timers, open connections, or incomplete message persistence.\",\"authentication-and-identity\":\"# Authentication and Identity\\n\\n# Authentication and Identity\\n\\nThe Authentication and Identity module provides two related authentication layers:\\n\\n- **Application identity** in `packages/server/src/routes/auth.ts`, using UUAP SSO or test credentials to issue system JWTs.\\n- **Optional perimeter authentication** in `auth-service/server.js`, a standalone username/password service intended for reverse-proxy `forward_auth` integration.\\n\\nThe web application persists the system JWT in a Zustand store and uses it to access protected application APIs. Server-side identity is represented by a local user record linked to a UUAP username.\\n\\n## Architecture\\n\\n```mermaid\\nflowchart LR\\n  Browser[Web application]\\n  Guard[ProtectedRoute]\\n  Store[useAuthStore]\\n  AuthRoutes[Auth API routes]\\n  UUAP[UUAP SSO]\\n  UserDB[Auth database]\\n  Spaces[Personal spaces]\\n  UgateFiles[Local ugate token files]\\n\\n  Browser --&gt; Guard\\n  Guard --&gt; Store\\n  Store --&gt;|Bearer JWT| AuthRoutes\\n  AuthRoutes --&gt; UUAP\\n  AuthRoutes --&gt; UserDB\\n  AuthRoutes --&gt; Spaces\\n  AuthRoutes --&gt; UgateFiles\\n```\\n\\nThe optional `auth-service` is separate from this flow. It authenticates browser requests at a proxy boundary using a signed cookie; it does not create Archon JWTs or local user records.\\n\\n---\\n\\n## Server Auth Routes\\n\\n`registerAuthRoutes(app)` registers the OpenAPI-described routes on an `OpenAPIHono` application. It is called by server startup, along with `syncUgateTokensToFiles()`.\\n\\nThe module uses:\\n\\n- `UuapClient` from `@archon/auth/uuap/client` for UUAP ticket and session validation.\\n- `signToken()` from `@archon/auth/jwt` to issue application JWTs.\\n- `requireAuth` from `@archon/auth/middleware` to validate Bearer JWTs and populate `c.get('userId')`.\\n- User and token persistence functions from `@archon/auth/db`.\\n- `ensurePersonalSpace()` from `@archon/core/db/product-spaces` to provision a user\u2019s personal space on first authenticated login.\\n\\n### Route Protection\\n\\nRoutes requiring the system JWT are registered after `app.use(path, requireAuth)`. Authenticated handlers retrieve the authenticated local user ID through:\\n\\n```ts\\nconst userId = c.get('userId');\\n```\\n\\nThey then look up the user with `getUserById(userId)` where needed.\\n\\nProtected endpoints require an `Authorization` header containing a Bearer JWT:\\n\\n```http\\nAuthorization: Bearer \\n```\\n\\nThe following endpoints are protected:\\n\\n- `GET /api/auth/me`\\n- `GET`, `POST`, and `DELETE /api/auth/ugate-token`\\n- `GET /api/auth/ugate-token/users`\\n- `GET` and `PUT /api/auth/icafe-space`\\n\\n`POST /api/auth/logout` is intentionally stateless and does not invalidate a JWT.\\n\\n---\\n\\n## Authentication Flows\\n\\n### UUAP Browser SSO\\n\\nThe browser SSO flow begins at `GET /api/auth/uuap`.\\n\\n1. The handler calls `getUuapConfig()` to read UUAP configuration.\\n2. It builds a callback URL using:\\n   - `ARCHON_EXTERNAL_URL`, when set; otherwise,\\n   - the request origin.\\n3. It redirects the browser to `${UUAP_BASE_URL}/login` with the callback URL as the UUAP `service` parameter.\\n4. UUAP redirects to `GET /api/auth/uuap/callback` with a ticket.\\n5. The callback:\\n   - reads the configured UUAP pToken cookie;\\n   - exchanges the ticket with `UuapClient.exchangeTicket()`;\\n   - validates the resulting session through `UuapClient.verifySession(pToken, sToken)`;\\n   - creates or updates the local user with `findOrCreateUser()`;\\n   - provisions the user\u2019s personal product space with `ensurePersonalSpace()`;\\n   - issues an application JWT through `signToken(dbUser.id)`;\\n   - redirects to the frontend with `?token=`.\\n\\nThe callback selects the frontend origin from `ARCHON_FRONTEND_URL` when present, otherwise from the incoming request origin.\\n\\n#### Redirect Safety\\n\\nThe original desired frontend path is carried as `redirect` through the SSO flow. `toSafePath()` normalizes it to a path and optional query string before it is appended to the frontend origin. This prevents the callback from redirecting to an externally supplied host.\\n\\nAuthentication errors redirect to the login page:\\n\\n| Condition | Redirect |\\n| --- | --- |\\n| Missing ticket or missing UUAP pToken | `/login?error=auth_failed` |\\n| Invalid UUAP ticket/session | `/login?error=auth_failed` |\\n| Missing or unavailable UUAP configuration/service | `/login?error=uuap_unavailable` |\\n\\n### Programmatic UUAP Token Exchange\\n\\n`POST /api/auth/token-exchange` supports non-browser clients that already hold UUAP session credentials.\\n\\n```json\\n{\\n  \\\"pToken\\\": \\\"\u2026\\\",\\n  \\\"sToken\\\": \\\"\u2026\\\"\\n}\\n```\\n\\nThe handler:\\n\\n1. Loads UUAP configuration through `getUuapConfig()`.\\n2. Calls `UuapClient.verifySession(pToken, sToken, { apiToken: true })`.\\n3. Finds or creates the corresponding local user.\\n4. Ensures that user has a personal space.\\n5. Returns a system JWT.\\n\\nA missing UUAP configuration or failed UUAP validation returns `401`:\\n\\n```json\\n{\\n  \\\"error\\\": \\\"Invalid UUAP credentials\\\"\\n}\\n```\\n\\nFor configuration failures, the externally returned error is:\\n\\n```json\\n{\\n  \\\"error\\\": \\\"UUAP not configured\\\"\\n}\\n```\\n\\n### Test Authentication\\n\\nTest login is disabled unless:\\n\\n```bash\\nTEST_AUTH_ENABLED=true\\n```\\n\\nWhen enabled, `POST /api/auth/test-login` accepts one of two roles:\\n\\n```json\\n{\\n  \\\"role\\\": \\\"admin\\\"\\n}\\n```\\n\\nor:\\n\\n```json\\n{\\n  \\\"role\\\": \\\"user\\\"\\n}\\n```\\n\\nThe handler calls `ensureTestUser(role)`, then returns a JWT for that local test user.\\n\\n```json\\n{\\n  \\\"token\\\": \\\"\\\"\\n}\\n```\\n\\nWhen test auth is disabled, this route returns `404`. Invalid or missing roles return `400`.\\n\\n`GET /api/auth/config` is public and lets clients discover whether test login is available:\\n\\n```json\\n{\\n  \\\"testAuthEnabled\\\": false\\n}\\n```\\n\\nDo not enable `TEST_AUTH_ENABLED` in production environments.\\n\\n---\\n\\n## API Reference\\n\\nOpenAPI route definitions are declared with `createRoute()` and registered through the local `registerOpenApiRoute()` wrapper. The wrapper casts handlers because response schemas are used for OpenAPI generation rather than runtime response validation.\\n\\n### Login and Session Endpoints\\n\\n| Method | Path | Authentication | Description |\\n| --- | --- | --- | --- |\\n| `GET` | `/api/auth/config` | No | Returns whether test auth is enabled. |\\n| `GET` | `/api/auth/uuap` | No | Redirects the browser to UUAP login. |\\n| `GET` | `/api/auth/uuap/callback` | No | Completes UUAP ticket exchange and redirects to the frontend with a JWT. |\\n| `POST` | `/api/auth/token-exchange` | No | Exchanges UUAP pToken and sToken for a system JWT. |\\n| `POST` | `/api/auth/test-login` | No, feature-gated | Issues a JWT for a test user when enabled. |\\n| `GET` | `/api/auth/me` | Bearer JWT | Returns the current local user. |\\n| `POST` | `/api/auth/logout` | No | Returns `{ ok: true }`; the client must discard its token. |\\n\\n### Current User\\n\\n`GET /api/auth/me` returns the user associated with the JWT subject:\\n\\n```json\\n{\\n  \\\"id\\\": \\\"user-id\\\",\\n  \\\"uuapId\\\": \\\"uuap-username\\\",\\n  \\\"username\\\": \\\"username\\\",\\n  \\\"realName\\\": \\\"Display Name\\\",\\n  \\\"email\\\": \\\"user@example.com\\\",\\n  \\\"lastLogin\\\": \\\"2025-01-01T00:00:00.000Z\\\",\\n  \\\"createdAt\\\": \\\"2025-01-01T00:00:00.000Z\\\",\\n  \\\"role\\\": \\\"user\\\"\\n}\\n```\\n\\nThe response shape is defined by `userInfoSchema` and mirrored by the frontend `UserInfo` interface.\\n\\nA valid JWT whose user no longer exists returns `404` rather than `401`.\\n\\n### Logout\\n\\n`POST /api/auth/logout` always returns:\\n\\n```json\\n{\\n  \\\"ok\\\": true\\n}\\n```\\n\\nJWTs are stateless, so this endpoint does not revoke server-side state. The actual logout operation is client-side token removal through `useAuthStore.getState().logout()` or the `logout` action exposed by the hook.\\n\\n---\\n\\n## ugate Token Management\\n\\nugate tokens are stored in two places:\\n\\n1. In the auth database, associated with a username.\\n2. In a local file used by tools that need token access without querying the database.\\n\\nThe local token file is:\\n\\n```text\\n~/.config/uuap/.eac_ugate_token_{username}\\n```\\n\\nIts JSON contents are:\\n\\n```json\\n{\\n  \\\"token\\\": \\\"\\\",\\n  \\\"permanent\\\": true\\n}\\n```\\n\\n`writeUgateTokenFile()` creates the directory if necessary and writes files with mode `0o600`.\\n\\n### Save a ugate Token\\n\\n`POST /api/auth/ugate-token` accepts a pasted string, not a bare JWT:\\n\\n```json\\n{\\n  \\\"tokenInput\\\": \\\"ugate token: eyJhbGciOi...\\\"\\n}\\n```\\n\\n`extractJwtFromInput()` accepts either an ASCII or Chinese colon:\\n\\n```text\\nugate token: \\nugate token\uff1a\\n```\\n\\nIt extracts exactly three base64url JWT segments and ignores trailing prose. Invalid input returns `400` with an error explaining the expected format.\\n\\n`parseJwtUsername()` decodes the JWT payload and reads its `username` claim. It does **not** verify the ugate JWT signature; the claim is used only to choose a token filename and association. Usernames containing `/`, `\\\\`, or `.` are rejected to prevent path traversal.\\n\\n#### Test-User Dual Storage\\n\\nFor regular UUAP users, the authenticated application username and the username in the ugate JWT are expected to match.\\n\\nTest users are different: a test user might be named `admin` or `user`, while their submitted ugate JWT contains a real UUAP username. To make both UI lookup and tool lookup work, the save handler performs a dual write when the names differ:\\n\\n- Writes the token file for both usernames.\\n- Stores the token under both usernames in the database.\\n\\nThe authenticated username is the primary association used by `GET /api/auth/ugate-token`.\\n\\nDatabase failures after the filesystem write are logged but are non-fatal to the save request. This preserves the usable local token file even if token persistence is unavailable.\\n\\nSuccessful responses use `saveUgateTokenResultSchema`:\\n\\n```json\\n{\\n  \\\"ok\\\": true,\\n  \\\"username\\\": \\\"authenticated-username\\\"\\n}\\n```\\n\\n### Get Token Status\\n\\n`GET /api/auth/ugate-token` reports presence without returning the secret:\\n\\n```json\\n{\\n  \\\"configured\\\": true,\\n  \\\"masked\\\": \\\"****abcd\\\"\\n}\\n```\\n\\n`toUgateTokenStatus()` derives `configured` from whether a database token exists and exposes only its final four characters in `masked`.\\n\\n### Delete a Token\\n\\n`DELETE /api/auth/ugate-token` removes the current user\u2019s database record and local token file:\\n\\n```json\\n{\\n  \\\"configured\\\": false,\\n  \\\"masked\\\": null\\n}\\n```\\n\\nFor test users, the handler first parses the stored token to discover the embedded ugate username. If it differs from the authenticated username, the alternate database record and file are also removed on a best-effort basis.\\n\\n`deleteUgateTokenFile()` treats `ENOENT` as success, allowing deletion to succeed when the file was already absent.\\n\\n### List Configured Users\\n\\n`GET /api/auth/ugate-token/users` returns whether the **current user** has a configured token:\\n\\n```json\\n{\\n  \\\"users\\\": [\\\"current-username\\\"]\\n}\\n```\\n\\nDespite its route summary, it does not enumerate all users with tokens. It checks the caller\u2019s username via `hasUgateToken()` and either returns that one username or an empty array.\\n\\n### Startup Synchronization\\n\\n`syncUgateTokensToFiles()` restores database-backed token files at server startup.\\n\\n1. It calls `listAllUgateTokens()`.\\n2. For each `{ username, token }`, it calls `writeUgateTokenFile()`.\\n3. Individual write failures are logged and do not stop remaining tokens from syncing.\\n\\nIf the database token table is not yet available, the initial query failure is logged as a warning and synchronization is skipped. This supports startup before migrations have created the relevant table.\\n\\nCall this once during server initialization, not per request.\\n\\n---\\n\\n## iCafe Space Configuration\\n\\nThe iCafe space preference is stored per username and is dependent on a configured ugate token.\\n\\n| Method | Path | Description |\\n| --- | --- | --- |\\n| `GET` | `/api/auth/icafe-space` | Returns the current user\u2019s configured `prefixCode`, or `null`. |\\n| `PUT` | `/api/auth/icafe-space` | Sets or clears the current user\u2019s iCafe space. |\\n\\n### Read Configuration\\n\\n`GET /api/auth/icafe-space` returns:\\n\\n```json\\n{\\n  \\\"icafeSpace\\\": \\\"prefix-code\\\"\\n}\\n```\\n\\nIf the JWT references a missing local user, it returns:\\n\\n```json\\n{\\n  \\\"icafeSpace\\\": null\\n}\\n```\\n\\n### Set or Clear Configuration\\n\\n`PUT /api/auth/icafe-space` accepts:\\n\\n```json\\n{\\n  \\\"icafeSpace\\\": \\\"prefix-code\\\"\\n}\\n```\\n\\nTo clear the value:\\n\\n```json\\n{\\n  \\\"icafeSpace\\\": null\\n}\\n```\\n\\nThe handler trims non-null input and converts an empty string to `null` before calling `setIcafeSpace()`.\\n\\nA user must save a ugate token before configuring iCafe space. Otherwise, the endpoint returns `400`:\\n\\n```json\\n{\\n  \\\"error\\\": \\\"\u8bf7\u5148\u4fdd\u5b58 ugate token \u518d\u914d\u7f6e iCafe \u7a7a\u95f4\\\"\\n}\\n```\\n\\n---\\n\\n## Configuration\\n\\n### UUAP Configuration\\n\\n`getUuapConfig()` reads the following environment variables:\\n\\n| Variable | Required | Default | Purpose |\\n| --- | --- | --- | --- |\\n| `UUAP_APP_KEY` | Yes | \u2014 | UUAP application key. |\\n| `UUAP_SECRET_KEY` | Yes | \u2014 | UUAP application secret. |\\n| `UUAP_BASE_URL` | No | `https://uuap.baidu.com` | UUAP server base URL. |\\n| `UUAP_P_TOKEN_NAME` | No | `UUAP_P_TOKEN` | Cookie name containing the UUAP pToken. |\\n| `ARCHON_EXTERNAL_URL` | No | Request origin | Public server URL used to build the UUAP callback URL. |\\n| `ARCHON_FRONTEND_URL` | No | Request origin | Frontend origin used after successful callback. |\\n| `TEST_AUTH_ENABLED` | No | disabled | Enables `POST /api/auth/test-login` only when exactly `true`. |\\n\\n`UUAP_APP_KEY` and `UUAP_SECRET_KEY` are required for UUAP browser login and token exchange. Missing configuration is handled per-request so the application can still run in environments that use test auth or do not need UUAP.\\n\\n---\\n\\n## Web Client Integration\\n\\n### `useAuthStore`\\n\\n`packages/web/src/stores/auth-store.ts` defines the persisted authentication state.\\n\\n```ts\\ninterface AuthState {\\n  token: string | null;\\n  userInfo: UserInfo | null;\\n  setToken: (token: string) =&gt; void;\\n  setUserInfo: (user: UserInfo) =&gt; void;\\n  logout: () =&gt; void;\\n}\\n```\\n\\nThe Zustand store is persisted under the local-storage key:\\n\\n```text\\narchon-auth\\n```\\n\\nOnly `token` and `userInfo` are persisted through `partialize`.\\n\\n`logout()`:\\n\\n1. Clears the token and cached user information.\\n2. Redirects the browser to `/login`.\\n\\nIt does not need to call `POST /api/auth/logout`, because JWT invalidation is client-side in the current stateless design.\\n\\nThe storage factory handles non-browser or SSR-like runtimes by returning an in-memory no-op storage implementation if `window.localStorage` is unavailable.\\n\\n### `ProtectedRoute`\\n\\n`ProtectedRoute` in `packages/web/src/lib/auth-guard.tsx` wraps protected React Router routes.\\n\\nIts behavior is:\\n\\n1. If a stored token exists but `userInfo` is absent, call `getMe()` and cache the result with `setUserInfo()`.\\n2. If `?token=` is present but the token is not yet stored, render `null`.\\n   - This gives the application-level token receiver time to persist the callback token.\\n   - It prevents child components from issuing protected API requests before the Authorization header is available.\\n3. If no token exists, navigate to `/login`.\\n   - The requested path and query are retained in `redirect`.\\n4. If a token exists, render ``.\\n\\nThe redirect target is built from:\\n\\n```ts\\nconst target = `${location.pathname}${location.search}`;\\n```\\n\\nThis preserves nested protected routes and their query parameters through login.\\n\\n---\\n\\n## Optional Proxy Authentication Service\\n\\n`auth-service/server.js` is a standalone Node.js HTTP service. It is designed to be used by a reverse proxy, such as Caddy, as a `forward_auth` target.\\n\\nThis service is independent from the system JWT mechanism:\\n\\n- It does not call UUAP.\\n- It does not call `signToken()`.\\n- It does not use the Archon user database.\\n- It gates HTTP access using a signed browser cookie.\\n\\n### Configuration\\n\\n| Variable | Required | Default | Purpose |\\n| --- | --- | --- | --- |\\n| `AUTH_PORT` | No | `9000` | Service listen port. |\\n| `AUTH_USERNAME` | Yes | \u2014 | Accepted username. |\\n| `AUTH_PASSWORD_HASH` | Yes | \u2014 | bcrypt password hash. |\\n| `COOKIE_SECRET` | Yes | \u2014 | HMAC key for session-cookie signatures. |\\n| `COOKIE_MAX_AGE` | No | `86400` | Cookie lifetime in seconds. |\\n\\nThe service exits at startup if required values are missing or if `AUTH_PASSWORD_HASH` is not a valid bcrypt hash.\\n\\nThe source includes the hash-generation command:\\n\\n```bash\\ndocker compose --profile auth run --rm auth-service \\\\\\n  node -e \\\"require('bcryptjs').hash('YOUR_PASSWORD', 12).then(h =&gt; console.log(h))\\\"\\n```\\n\\n### Routes\\n\\n| Method | Path | Purpose |\\n| --- | --- | --- |\\n| `GET` | `/verify` | Reverse-proxy authorization check. |\\n| `GET` | `/login` | Displays the login form. |\\n| `POST` | `/login` | Verifies credentials and sets a session cookie. |\\n| Any | `/logout` | Clears the session cookie and redirects to `/login`. |\\n\\n### Cookie Handling\\n\\nThe cookie name is fixed as:\\n\\n```text\\narchon_auth\\n```\\n\\n`signCookie(value)` produces:\\n\\n```text\\nvalue.base64url-hmac-sha256-signature\\n```\\n\\n`verifyCookie(signed)` recomputes the HMAC and compares signatures with `timingSafeEqual()`. A valid login stores the signed value for the literal session value:\\n\\n```text\\nauthenticated\\n```\\n\\nCookies are issued with:\\n\\n```text\\nHttpOnly; Secure; SameSite=Lax; Path=/; Max-Age=\\n```\\n\\n### Proxy Verification Flow\\n\\nA proxy calls `GET /verify` for each protected request.\\n\\n- If `archon_auth` contains a valid signed `authenticated` value, the service returns:\\n  - `200`\\n  - `X-Auth-User: `\\n- Otherwise, it returns a `302` redirect to `/login?rd=`.\\n\\nThe original request target is taken from `X-Forwarded-Uri`. `isSafeRedirect()` permits only safe relative paths:\\n\\n- `/`\\n- Paths beginning with one slash followed by a non-slash, non-backslash character\\n- No `://` substring\\n\\nThis blocks absolute URLs, protocol-relative URLs, and common backslash redirect bypasses.\\n\\n### Login Handling\\n\\n`POST /login`:\\n\\n1. Reads a form-urlencoded request body with `readBody()`.\\n2. Enforces a 4 KB maximum body size.\\n3. Checks the username with strict equality against `AUTH_USERNAME`.\\n4. verifies the password through `bcrypt.compare()`.\\n5. Validates the requested return path with `isSafeRedirect()`.\\n6. Issues the signed session cookie and redirects to the safe return path.\\n\\nThe login page escapes error text through `escapeHtml()` before inserting it into HTML.\\n\\n---\\n\\n## Extension and Maintenance Notes\\n\\n### Adding a New Authenticated Endpoint\\n\\nWhen adding an endpoint to `auth.ts`:\\n\\n1. Define its OpenAPI route with `createRoute()`.\\n2. Add `app.use('/api/auth/new-path', requireAuth)` before registering the handler if it needs a system JWT.\\n3. Obtain the JWT subject with `c.get('userId')`.\\n4. Resolve the local user with `getUserById()` if the handler requires username or role data.\\n5. Register the route using `registerOpenApiRoute()`.\\n\\nKeep the OpenAPI schema aligned with the actual response. The local wrapper bypasses typed response constraints, so OpenAPI schemas do not provide runtime response validation.\\n\\n### Handling Secrets\\n\\n- Never return raw ugate tokens from an API response.\\n- Use `toUgateTokenStatus()` for UI-facing token status.\\n- Preserve the file mode used by `writeUgateTokenFile()` (`0o600`).\\n- Keep filename construction behind `parseJwtUsername()` validation or equivalent identifier validation.\\n- Do not log token values, UUAP pTokens, sTokens, or JWTs.\\n\\n### Preserving User Provisioning\\n\\nBoth successful UUAP flows call:\\n\\n```ts\\nawait ensurePersonalSpace(dbUser.id, dbUser.username);\\n```\\n\\nAny new login or token-issuance path for real users should preserve this step. It ensures a newly recognized identity has the expected personal product-space resources before using the application.\",\"chat-and-platform-adapters\":\"# Chat and Platform Adapters\\n\\n# Chat and Platform Adapters\\n\\nThis module provides output adapters that let orchestration code communicate through different delivery surfaces without coupling the orchestrator to a specific UI or transport.\\n\\nThe included components cover:\\n\\n- `splitIntoParagraphChunks()` for safely fitting long messages into platform limits.\\n- `CLIAdapter` for command-line output and optional assistant-message persistence.\\n- `WebAdapter` for the browser application, Server-Sent Events (SSE), structured streaming events, workflow event bridging, and buffered persistence.\\n\\nBoth adapters implement the platform adapter contracts from `@archon/core`, allowing orchestration code to send messages, identify the active platform, and choose stream or batch behavior consistently.\\n\\n```mermaid\\nflowchart LR\\n  O[Orchestrator] --&gt;|IPlatformAdapter| C[CLIAdapter]\\n  O --&gt;|IWebPlatformAdapter| W[WebAdapter]\\n\\n  C --&gt; STDOUT[stdout]\\n  C --&gt; MDB[Message DB]\\n\\n  W --&gt; P[MessagePersistence]\\n  W --&gt; T[SSETransport]\\n  W --&gt; B[WorkflowEventBridge]\\n  T --&gt; UI[React frontend]\\n```\\n\\n## Adapter Contracts and Platform Identity\\n\\nThe adapters use types from `@archon/core`:\\n\\n- `IPlatformAdapter` is implemented by `CLIAdapter`.\\n- `IWebPlatformAdapter` is implemented by `WebAdapter`.\\n- `MessageMetadata` accompanies normal assistant messages and can include categories, workflow state, dispatch details, and results.\\n\\nThe common operations are:\\n\\n| Method | Purpose |\\n|---|---|\\n| `sendMessage(conversationId, message, metadata?)` | Deliver a complete assistant message to the platform. |\\n| `ensureThread(originalConversationId, ...)` | Resolve a conversation or thread ID appropriate for the platform. |\\n| `getStreamingMode()` | Tell the caller whether the adapter expects incremental streaming or complete batched output. |\\n| `getPlatformType()` | Identify the platform for platform-specific orchestration behavior. |\\n| `start()` / `stop()` | Initialize or tear down adapter resources. |\\n\\nNeither the CLI nor web adapter creates platform threads. Their `ensureThread()` implementations return the original conversation ID unchanged. Chat providers that need native threads should implement thread creation or lookup in their own adapters.\\n\\n---\\n\\n## Message Splitting\\n\\n### `splitIntoParagraphChunks(message, maxLength)`\\n\\n`splitIntoParagraphChunks()` lives in `packages/adapters/src/utils/message-splitting.ts`. It prepares messages for delivery platforms with message-length limits while attempting to retain readable formatting.\\n\\nIt is used by several provider adapters, including Slack, Discord, Telegram, GitHub, GitLab, and Gitea adapters.\\n\\n```ts\\nimport { splitIntoParagraphChunks } from '@archon/adapters/utils/message-splitting';\\n\\nconst chunks = splitIntoParagraphChunks(message, 2000);\\nfor (const chunk of chunks) {\\n  await platformSend(chunk);\\n}\\n```\\n\\n### Splitting behavior\\n\\nThe function performs a two-pass split:\\n\\n1. **Paragraph pass**: splits the input at one or more blank lines (`\\\\n\\\\n+`), then recombines paragraphs into chunks up to `maxLength`.\\n2. **Line fallback**: any chunk that still exceeds `maxLength` is split at individual line boundaries (`\\\\n`).\\n\\nThe function returns an empty array for an empty string:\\n\\n```ts\\nsplitIntoParagraphChunks('', 2000); // []\\n```\\n\\nIt logs the number of generated chunks at debug level using the `message-splitting` logger:\\n\\n```ts\\ngetLog().debug({ chunkCount: finalChunks.length }, 'message.split_completed');\\n```\\n\\n### Important limitation\\n\\nThe line-level fallback does not split a single line that exceeds `maxLength`. If the source contains an extremely long unbroken token\u2014such as encoded content, a large URL, or a minified payload\u2014the returned chunk can remain longer than `maxLength`.\\n\\nCallers that require a strict hard limit must add token- or character-level splitting after calling `splitIntoParagraphChunks()`.\\n\\n---\\n\\n## CLI Adapter\\n\\n`CLIAdapter` in `packages/cli/src/adapters/cli-adapter.ts` implements `IPlatformAdapter` for local command-line execution.\\n\\nIts primary purpose is to make workflows runnable through CLI commands while preserving assistant responses in the message database when a conversation database ID has been registered.\\n\\n### Construction\\n\\n```ts\\nimport { CLIAdapter } from './adapters/cli-adapter';\\n\\nconst adapter = new CLIAdapter({\\n  streamingMode: 'batch',\\n});\\n```\\n\\n`CLIAdapterOptions` supports one setting:\\n\\n```ts\\ninterface CLIAdapterOptions {\\n  streamingMode?: 'stream' | 'batch';\\n}\\n```\\n\\nThe default is `'batch'`.\\n\\nAlthough the adapter reports a configurable streaming mode, `sendMessage()` always emits the supplied message as one `console.log()` operation. The mode is used by orchestration code to decide how it should produce output.\\n\\n### Conversation-to-database mapping\\n\\nBefore messages can be persisted, callers must associate the platform conversation ID with a database UUID:\\n\\n```ts\\nadapter.setConversationDbId(conversationId, dbId);\\n```\\n\\nInternally, `CLIAdapter` stores the association in:\\n\\n```ts\\nprivate readonly dbIdMap = new Map();\\n```\\n\\nThe map key is the platform conversation ID, and its value is the database conversation UUID. CLI workflow setup calls `setConversationDbId()` after conversation creation and before workflow execution.\\n\\nWithout this mapping, messages are still printed to stdout but are not persisted.\\n\\n### Sending messages\\n\\n```ts\\nawait adapter.sendMessage(conversationId, message, metadata);\\n```\\n\\n`sendMessage()` performs these steps:\\n\\n1. Prints `message` with `console.log(message)`.\\n2. Looks up the conversation database ID from `dbIdMap`.\\n3. If a database ID exists, builds persistence metadata from:\\n   - `metadata.category`\\n   - `metadata.workflowDispatch`\\n   - `metadata.workflowResult`\\n4. Persists the assistant message with:\\n\\n   ```ts\\n   messageDb.addMessage(dbId, 'assistant', message, persistMeta);\\n   ```\\n\\n5. Logs, but does not rethrow, persistence failures.\\n\\nThis failure isolation is intentional: an unavailable database must not prevent CLI output from reaching the user.\\n\\nThe warning is logged through the lazy `cli.adapter` logger under the event name:\\n\\n```text\\ncli_message_persist_failed\\n```\\n\\n### Platform behavior\\n\\n| Method | Return / behavior |\\n|---|---|\\n| `ensureThread(originalConversationId)` | Returns `originalConversationId`; CLI has no native threading. |\\n| `getStreamingMode()` | Returns the configured `'stream'` or `'batch'` mode. |\\n| `getPlatformType()` | Returns `'cli'`. |\\n| `start()` | No-op. |\\n| `stop()` | No-op. |\\n\\nThe orchestrator uses `getPlatformType()` to distinguish CLI execution from platform-specific flows, including thread-context and isolation behavior.\\n\\n---\\n\\n## Web Adapter\\n\\n`WebAdapter` in `packages/server/src/adapters/web.ts` implements `IWebPlatformAdapter` for the React frontend.\\n\\nIt is the boundary between server-side orchestration and browser-side rendering. Its responsibilities are broader than the CLI adapter because it manages live SSE streams, persists buffered chat output, tracks tool lifecycle events, emits workflow status, and bridges worker workflow events to parent conversations.\\n\\n### Dependencies\\n\\n`WebAdapter` is constructed with three collaborators:\\n\\n```ts\\nconst adapter = new WebAdapter(transport, persistence, workflowBridge);\\n```\\n\\n| Dependency | Responsibility |\\n|---|---|\\n| `SSETransport` | Owns active SSE writers and emits serialized events to the matching conversation stream. |\\n| `MessagePersistence` | Buffers and persists text, tool calls, and tool results against database conversations. |\\n| `WorkflowEventBridge` | Bridges progress and output from worker workflow conversations to parent conversations. |\\n\\nThe adapter does not own these components; it coordinates them.\\n\\n### Lifecycle\\n\\n`start()` initializes the supporting services:\\n\\n```ts\\nawait adapter.start();\\n```\\n\\nIt:\\n\\n1. Registers a step-transition callback on `WorkflowEventBridge`.\\n2. Flushes persistence for a worker conversation whenever the bridge reports a step transition.\\n3. Starts the workflow bridge.\\n4. Starts the SSE transport.\\n5. Starts periodic persistence flushing.\\n\\nThe step-transition flush ensures workflow output is persisted incrementally rather than only at workflow completion. Failures are logged with `step_transition_flush_failed`.\\n\\n`stop()` shuts down in the reverse operational direction:\\n\\n```ts\\nawait adapter.stop();\\n```\\n\\nIt:\\n\\n1. Stops periodic persistence flushing.\\n2. Flushes all pending persistence buffers.\\n3. Stops SSE transport.\\n4. Stops workflow event bridging.\\n5. Clears persistence state.\\n6. Clears generated tool ID counters and running-tool state.\\n\\nServer startup creates `WebAdapter`; API routes use it to dispatch messages, control conversation lock state, and emit direct SSE events.\\n\\n---\\n\\n## SSE Stream Management\\n\\n### Registering and removing streams\\n\\nA browser connection must be registered against a conversation:\\n\\n```ts\\nadapter.registerStream(conversationId, stream);\\n```\\n\\n`registerStream()` delegates to `SSETransport.registerStream()`. Transport behavior replaces any existing stream for the same conversation, supporting browser refreshes and new tabs.\\n\\nTo detach the stream:\\n\\n```ts\\nadapter.removeStream(conversationId, expectedStream);\\n```\\n\\nIn addition to delegating to `SSETransport.removeStream()`, this clears per-conversation tool state:\\n\\n```ts\\nthis.runningTools.delete(conversationId);\\nthis.toolCallCounter.delete(conversationId);\\n```\\n\\nThis cleanup is important. Without it, a reconnect could receive stale tool completion events for tool calls created under a previous SSE connection.\\n\\n`expectedStream` allows the transport layer to avoid removing a newer connection when an older connection closes.\\n\\n### Checking stream availability\\n\\n```ts\\nconst connected = adapter.hasActiveStream(conversationId);\\n```\\n\\nThis delegates to `SSETransport.hasActiveStream()` and is useful when callers need to determine whether live browser delivery is currently possible.\\n\\n### Direct event emission\\n\\n`emitSSE()` forwards a fully serialized event directly to the transport:\\n\\n```ts\\nawait adapter.emitSSE(conversationId, event);\\n```\\n\\nAPI conversation dispatch uses this path when it already has an SSE event payload. Unlike higher-level methods, `emitSSE()` does not persist data, apply metadata handling, or alter the event.\\n\\n---\\n\\n## Sending Complete Text Messages\\n\\n### `sendMessage()`\\n\\n```ts\\nawait adapter.sendMessage(conversationId, message, metadata);\\n```\\n\\nFor normal assistant output, `WebAdapter.sendMessage()`:\\n\\n1. Buffers the text in `MessagePersistence`:\\n\\n   ```ts\\n   this.persistence.appendText(conversationId, message, metadata);\\n   ```\\n\\n2. Emits text to workflow output listeners:\\n\\n   ```ts\\n   this.workflowBridge.emitOutput(conversationId, message);\\n   ```\\n\\n3. Sends an SSE event resembling:\\n\\n   ```json\\n   {\\n     \\\"type\\\": \\\"text\\\",\\n     \\\"content\\\": \\\"Assistant response\\\",\\n     \\\"isComplete\\\": true,\\n     \\\"timestamp\\\": 0\\n   }\\n   ```\\n\\n4. Includes `workflowStatus` and `workflowResult` only when they are present in `metadata`.\\n\\n### Structurally handled categories\\n\\nThe following metadata categories are persisted but not emitted as standard chat text:\\n\\n- `tool_call_formatted`\\n- `isolation_context`\\n\\n```ts\\nif (\\n  metadata?.category === 'tool_call_formatted' ||\\n  metadata?.category === 'isolation_context'\\n) {\\n  return;\\n}\\n```\\n\\nThe web UI handles these categories structurally. Contributors adding a new structurally rendered category should follow this pattern: append the data to persistence as needed, then skip the ordinary `{ type: 'text' }` SSE event.\\n\\n### Workflow results\\n\\nWhen `metadata.category === 'workflow_result'`, the adapter explicitly triggers a persistence flush after emitting the message.\\n\\nWorkflow results can arrive after the parent conversation lock is released due to background dispatch. A normal lock-release flush has already occurred in that case, so this explicit flush prevents the result from remaining buffered indefinitely.\\n\\nA failed flush is logged as:\\n\\n```text\\nworkflow_result_flush_failed\\n```\\n\\n---\\n\\n## Structured Streaming Events\\n\\n### `sendStructuredEvent()`\\n\\n```ts\\nawait adapter.sendStructuredEvent(conversationId, chunk);\\n```\\n\\n`sendStructuredEvent()` translates provider-level `MessageChunk` values into JSON SSE events that the frontend understands.\\n\\nUnsupported chunk shapes are ignored: the method returns without emitting an event.\\n\\n| `MessageChunk` condition | SSE event type | Persistence behavior |\\n|---|---|---|\\n| `chunk.type === 'tool'` and `chunk.toolName` | `tool_call` | Buffers the tool name and input. |\\n| `chunk.type === 'tool_result'` and `chunk.toolName` | `tool_result` | Buffers tool output and duration. |\\n| `chunk.type === 'result'` and `chunk.sessionId` | `session_info` | No persistence update here. |\\n| `chunk.type === 'workflow_dispatch'` | `workflow_dispatch` | No persistence update here. |\\n| `chunk.type === 'system'` | `system_status` | No persistence update here. |\\n\\n### Tool-call IDs and concurrent tools\\n\\nThe adapter must pair each `tool_result` event with its corresponding `tool_call` event. This is non-trivial when multiple tools with the same name run concurrently.\\n\\nFor each tool call, `sendStructuredEvent()`:\\n\\n1. Persists the tool call via `this.persistence.appendToolCall(...)`.\\n2. Uses `chunk.toolCallId` when the provider supplied a stable ID.\\n3. Otherwise generates an ID per conversation:\\n\\n   ```ts\\n   `${conversationId}-tool-${counter}`\\n   ```\\n\\n4. Records the start time in `runningTools`.\\n\\n`runningTools` is structured as:\\n\\n```ts\\nMap&gt;\\n```\\n\\nThe outer map is keyed by conversation; the inner map is keyed by tool call ID. This supports parallel workflow DAG nodes without one tool overwriting another tool\u2019s state.\\n\\n### Tool results and duration calculation\\n\\nFor a `tool_result` chunk, the adapter attempts to locate its running tool entry in this order:\\n\\n1. Match the stable `chunk.toolCallId`.\\n2. If unavailable or unmatched, reverse-scan active calls for the most recently started cal", "url": "https://gist.github.com/xwa5/3fad7514a482ddd87182dcedcc51c0cc"}, {"timestamp": "2026-08-06T11:04:57Z", "date_only": false, "value": "2026-08-06T11:04:57Z", "kind": "other", "label": "Updated", "source": "osv_openeuler \u00b7 OESA-2022-1676", "record": "OESA-2022-1676", "field": "modified", "linked_record": true}, {"timestamp": "2026-08-17T05:40:00.325Z", "date_only": false, "value": "2026-08-17T05:40:00.325Z", "kind": "milestone", "label": "Published", "source": "bitnami_vulndb \u00b7 BIT-GIT-2022-24765", "record": "BIT-GIT-2022-24765", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-09-01T20:01:45.820Z", "date_only": false, "value": "2026-09-01T20:01:45.820196Z", "kind": "sighting", "label": "Seen", "source": "https://t.me/hacking_Attack/49880", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "17e1aa6a-9c15-4af5-810f-85307d4c272f", "content": "Black Hat Ethical Hacking\nGit security vulnerabilities prompt updates\n\nGit security vulnerabilities prompt updatesPost Views: 3 \nhttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/04/patreon-300x61.png https://www.blackhatethicalhacking.com/wp-content/uploads/2022/04/Patreon-2.png Subscribe to Patreon to watch this episode.\nReading Time: 1 Minute\nSoftware developers are advised to upgrade their systems to\u00a0Git v2.35.2\u00a0in order to guard against potential attacks, which would rely on an attacker first gaining write access on a targeted system.\nIt\u2019s time for developers to update their local Git installations following the discovery of a brace of vulnerabilities.\n\nThe worst of the two flaws (CVE-2022-24765) carries the potential of allowing an attacker to execute arbitrary commands.\n\nDevelopers using Git for Windows or Git on a multi-user machine are most at risk, as an advisory by GitHub\u00a0explains:\n\nThis vulnerability affects users working on multi-user machines where a malicious actor could create a .git\u00a0directory in a shared location above a victim\u2019s current working directory. On Windows, for example, an attacker could create C:\\.git\\config, which would cause all git invocations that occur outside of a repository to read its configured values.\n\nSince some configuration variables (such as core.fsmonitor) cause Git to execute arbitrary commands, this can lead to arbitrary command execution when working on a shared machine.\u201d\nSee Also: Complete Offensive Security and Ethical Hacking Course\nhttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Solutions-1.png \nDevelopers who use Git on Linux\u00a0or macOS are also affected by the CVE-2022-24765 flaw, albeit to a lesser extent. Patching in all cases is the recommended course of action but short of this, various mitigations are available, as detailed in GitHub\u2019s advisory.\n\nA second vulnerability (CVE-2022-24767) is limited to the Git for Windows uninstaller. As with the previous flaw, some level of compromised access is a prerequisite to potential attacks, as GitHub\u2019s advisory explains.\n\nAttacks would rely on planting malicious .dll\u00a0files on a targeted system.\nSee Also: Kali Linux 2022.1 Release with Visual Updates, New Tools, Legacy SSH Users are advised to update to Git for Windows v2.35.2\u00a0but, again, a number of temporary mitigations offer a viable alternative.\n\nCredit for discovering the vulnerability was given to Lockheed Martin\u2019s red team. GitHub\u00a0offers a centralized location for Git repositories, hence its role in flagging up the requirement for software updates. See Also: Offensive Security Tool: Scapy Are u a security researcher? Or a company that writes articles or write ups about Cyber Security, Offensive Security (related to information security in general) that match with our specific audience and is worth sharing?\n\nIf you want to express your idea in an article contact us here for a quote: info@blackhatethicalhacking.com\nSee Also: Hacking stories: MafiaBoy, the hacker who took down the Internet\nSource: portswigger.net Source Linkhttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch-1024x1024.png Recent News* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/04/Amazon-EC2-90x90.jpg Internal AWS credentials swiped by researcher via SQL payload24 hours ago\n* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/04/spring4shell-90x90.jpg Attackers are abusing Spring4Shell vulnerability to spread Mirai botnet malware2 days ago\n* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/04/ezgif.com-gif-maker-2-1-90x90.jpg Attackers Spoof WhatsApp Voice-Message Alerts to Steal Info3 days ago\n* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/04/f956-article-211015-apple-b[...]\n\n___________________________ \n@hacking_Attack\n@Hacking_Video", "url": "https://t.me/hacking_Attack/49880"}, {"timestamp": "2026-09-03T07:04:27.285Z", "date_only": false, "value": "2026-09-03T07:04:27.285479Z", "kind": "sighting", "label": "Seen", "source": "https://gist.github.com/akccakcctw/8594329efb6ffc46ddf16bba4a0261b6", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "64f7cbb4-57b2-4fcc-a112-28d800b28a95", "content": "#!/usr/bin/env bash\n#\n# setup-mac-ci-tailscale.sh\n#\n# \u628a\u4e00\u53f0\u4e7e\u6de8\u7684 macOS \u4f48\u5efa\u6210\u300c\u53ef\u4ee5 SSH \u9032\u53bb\u7ba1\u7406\u7684 CI server\u300d\uff1a\n#\n#   1. \u88dd Homebrew\uff08\u9023\u5e36 Xcode Command Line Tools\uff09\n#   2. brew install tailscale \u2014\u2014 \u958b\u6e90 CLI \u7248\uff0c\u6c92\u6709 GUI App\u3001\u6c92\u6709 system extension\n#   3. tailscaled \u8a3b\u518a\u6210 LaunchDaemon\uff0c\u958b\u6a5f\u5373\u8d77\uff0c\u4e0d\u9700\u8981\u4efb\u4f55\u4eba\u767b\u5165\u5716\u5f62\u4ecb\u9762\n#   4. \u7528 auth key \u52a0\u5165 tailnet\n#   5. \u5efa\u7acb\u5c08\u7528\u7684 CI \u5e33\u865f\uff08\u9078\u7528\uff09\n#   6. \u88dd\u958b\u767c\u5de5\u5177\uff1abrew formula \uff0b mise \u7ba1\u7406\u7684 node\n#   7. \u958b\u555f macOS \u5167\u5efa sshd\u3001\u88dd\u4e0a\u516c\u9470\u3001\u95dc\u6389\u5bc6\u78bc\u767b\u5165\n#   8. \u95dc\u6389\u7761\u7720\u3001\u958b\u555f\u65b7\u96fb\u5f8c\u81ea\u52d5\u958b\u6a5f\n#\n# \u70ba\u4ec0\u9ebc\u662f brew \u800c\u4e0d\u662f\u5b98\u7db2\u4e0b\u8f09\u7684 .pkg\uff1a\n#   \u5b98\u7db2 macOS .pkg \u88dd\u7684\u662f GUI App\uff0c\u5b83\u9760 network system extension \u904b\u4f5c\uff0c\n#   \u800c system extension \u7b2c\u4e00\u6b21\u8981\u4eba\u5230 \u7cfb\u7d71\u8a2d\u5b9a \u624b\u52d5\u6309\u5141\u8a31\uff0c\u9084\u5e36\u4e00\u500b LoginItem\u3002\n#   CI server \u8981\u7684\u662f\u300c\u6c92\u4eba\u767b\u5165\u4e5f\u5728\u7dda\u300d\uff0c\u6240\u4ee5\u8d70\u958b\u6e90 CLI \u7248\u3002\n#   pkgs.tailscale.com \u7684 static tarball \u53ea\u6709 Linux\uff0cmacOS \u6c92\u6709\u90a3\u500b\u6a94\u3002\n#\n# \u9019\u652f script \u53ef\u4ee5\u91cd\u8907\u57f7\u884c\uff1a\u88dd\u6a5f\u3001\u5347\u7d1a\u3001\u4fee\u5fa9\u90fd\u8dd1\u540c\u4e00\u652f\u3002\n#\n# \u7528\u6cd5\uff08\u7528\u4e00\u822c admin \u5e33\u865f\u8dd1\uff0c\u4e0d\u8981 sudo \u2014\u2014 Homebrew \u62d2\u7d55\u4ee5 root \u5b89\u88dd\uff09\uff1a\n#\n#   ./setup-mac-ci-tailscale.sh \\\n#     --hostname ci-mac-01 \\\n#     --tags tag:ci \\\n#     --ci-user ci \\\n#     --ssh-key-url https://github.com/YOUR_GITHUB_ID.keys\n#\n# auth key \u5efa\u8b70\u7528\u74b0\u5883\u8b8a\u6578\u50b3\uff0c\u4e0d\u8981\u7559\u5728 shell history\uff1a\n#\n#   TS_AUTHKEY=tskey-auth-xxxx ./setup-mac-ci-tailscale.sh --hostname ci-mac-01 ...\n#\n# \u9078\u9805\uff1a\n#   --hostname NAME       \u9019\u53f0\u6a5f\u5668\u5728 tailnet \u88e1\u7684\u540d\u5b57\uff08\u5fc5\u586b\uff09\n#   --ci-user NAME        \u5efa\u7acb\u9019\u500b\u5e33\u865f\u4f86\u8dd1 CI \u4e26\u63a5\u53d7 SSH\uff08\u4e0d\u7d66\u5c31\u7528\u57f7\u884c\u8005\u81ea\u5df1\u7684\u5e33\u865f\uff09\n#   --ci-password PASS    CI \u5e33\u865f\u5bc6\u78bc\uff0c\u4e5f\u53ef\u7528\u74b0\u5883\u8b8a\u6578 CI_PASSWORD\u3002\u7d66\u4e86 --ci-user \u5c31\u5fc5\u586b\n#   --ci-fullname NAME    CI \u5e33\u865f\u7684\u986f\u793a\u540d\u7a31\uff0c\u9810\u8a2d \"CI Runner\"\n#   --brew-formulas \"...\" \u8981\u88dd\u7684 brew formula\uff0c\u7a7a\u767d\u5206\u9694\u3002\u9810\u8a2d \"git gh jq mise\"\n#   --node-version VER    \u7528 mise \u88dd\u7684 global node \u7248\u672c\uff0c\u4f8b\u5982 22.13.1\u3002\u4e0d\u7d66\u5c31\u4e0d\u88dd node\n#   --no-tools            \u5b8c\u5168\u4e0d\u88dd\u958b\u767c\u5de5\u5177\n#   --tags TAGS           ACL tag\uff0c\u4f8b\u5982 tag:ci\u3002\u5e36\u4e86 tag\uff0ckey expiry \u6703\u81ea\u52d5\u505c\u7528\n#   --authkey KEY         auth key\uff0c\u4e5f\u53ef\u7528\u74b0\u5883\u8b8a\u6578 TS_AUTHKEY\n#   --operator USER       \u54ea\u500b\u5e33\u865f\u53ef\u4ee5\u514d sudo \u8dd1 tailscale\uff08\u9810\u8a2d\uff1a\u57f7\u884c\u9019\u652f script \u7684\u4eba\uff09\n#   --ssh-key \"ssh-ed25519 AAAA...\"   \u76f4\u63a5\u7d66\u4e00\u628a\u516c\u9470\uff0c\u53ef\u91cd\u8907\n#   --ssh-key-url URL     \u5f9e\u7db2\u5740\u6293\u516c\u9470\uff0c\u4f8b\u5982 https://github.com/USER.keys\n#   --accept-dns          \u8b93 Tailscale \u63a5\u7ba1 DNS\uff08\u9810\u8a2d\u4e0d\u63a5\u7ba1\uff09\n#   --tailscale-ssh       \u958b\u555f Tailscale SSH\u3002\u9810\u8a2d\u4e0d\u958b \u2014\u2014 \u5b83\u6703\u6514\u622a port 22 \u4e26\u84cb\u6389\n#                         \u7cfb\u7d71 sshd\uff0c\u516c\u9470\u90a3\u689d\u8def\u6703\u5931\u6548\uff0c\u800c\u5931\u6557\u8a0a\u606f\u4e0d\u6703\u63d0\u793a\u9019\u4ef6\u4e8b\u3002\n#                         \u8981\u7528\u7684\u8a71 tailnet policy \u5fc5\u9808\u6709\u5c0d\u61c9\u7684 \"ssh\" \u898f\u5247\u3002\n#   --skip-ssh            \u5b8c\u5168\u4e0d\u52d5 SSH \u8a2d\u5b9a\n#   --skip-power          \u4e0d\u6539\u96fb\u6e90\u8a2d\u5b9a\n#   --skip-brew           \u5df2\u7d93\u6709 brew \u8ddf tailscale\uff0c\u53ea\u505a\u8a2d\u5b9a\n#\nset -euo pipefail\n\nreadonly SSHD_DROPIN=\"/etc/ssh/sshd_config.d/100-ci-hardening.conf\"\nreadonly MARKER=\"# managed by setup-mac-ci-tailscale.sh\"\nreadonly SYS_TAILSCALED=\"/usr/local/bin/tailscaled\"\n# \u65b0\u6a5f\u5668\u4e00\u5f8b arm64\uff0cHomebrew prefix \u56fa\u5b9a\nreadonly BREW_PREFIX=\"/opt/homebrew\"\n# ssh host 'cmd' \u662f\u975e\u4e92\u52d5\u3001\u975e\u767b\u5165 shell\uff0czsh \u53ea\u8b80 .zshenv\u3002\n# \u5beb\u5728 .zprofile \u7684\u8a71 CI job \u5b8c\u5168\u627e\u4e0d\u5230 brew \u8207 mise\uff0c\u6240\u4ee5\u4e00\u5f8b\u5beb .zshenv\u3002\nreadonly SHELLENV_LINE=\"eval \\\"\\$(/opt/homebrew/bin/brew shellenv)\\\"\nexport PATH=\\\"\\$HOME/.local/share/mise/shims:\\$PATH\\\"\nexport COREPACK_ENABLE_DOWNLOAD_PROMPT=0\"\n\n# ---------- \u53c3\u6578 ----------\nTS_HOSTNAME=\"\"\nTAGS=\"\"\nCI_USER=\"\"\nCI_PASSWORD=\"${CI_PASSWORD:-}\"\nCI_FULLNAME=\"CI Runner\"\nBREW_FORMULAS=\"git gh jq mise\"\nNODE_VERSION=\"\"\nSKIP_TOOLS=\"false\"\nAUTHKEY=\"${TS_AUTHKEY:-}\"\nOPERATOR=\"\"\nSSH_KEYS=()\nSSH_KEY_URLS=()\nACCEPT_DNS=\"false\"\nTAILSCALE_SSH=\"false\"\nSKIP_SSH=\"false\"\nSKIP_POWER=\"false\"\nSKIP_BREW=\"false\"\n\nusage() { sed -n '3,58p' \"$0\" | sed 's/^#\\{1,\\} \\{0,1\\}//'; exit \"${1:-0}\"; }\n\nwhile [[ $# -gt 0 ]]; do\n  case \"$1\" in\n    --hostname)         TS_HOSTNAME=\"$2\"; shift 2 ;;\n    --ci-user)          CI_USER=\"$2\"; shift 2 ;;\n    --ci-password)      CI_PASSWORD=\"$2\"; shift 2 ;;\n    --ci-fullname)      CI_FULLNAME=\"$2\"; shift 2 ;;\n    --brew-formulas)    BREW_FORMULAS=\"$2\"; shift 2 ;;\n    --node-version)     NODE_VERSION=\"$2\"; shift 2 ;;\n    --no-tools)         SKIP_TOOLS=\"true\"; shift ;;\n    --tags)             TAGS=\"$2\"; shift 2 ;;\n    --authkey)          AUTHKEY=\"$2\"; shift 2 ;;\n    --operator)         OPERATOR=\"$2\"; shift 2 ;;\n    --ssh-key)          SSH_KEYS+=(\"$2\"); shift 2 ;;\n    --ssh-key-url)      SSH_KEY_URLS+=(\"$2\"); shift 2 ;;\n    --accept-dns)       ACCEPT_DNS=\"true\"; shift ;;\n    --tailscale-ssh)    TAILSCALE_SSH=\"true\"; shift ;;\n    --no-tailscale-ssh) TAILSCALE_SSH=\"false\"; shift ;;\n    --skip-ssh)         SKIP_SSH=\"true\"; shift ;;\n    --skip-power)       SKIP_POWER=\"true\"; shift ;;\n    --skip-brew)        SKIP_BREW=\"true\"; shift ;;\n    -h|--help)          usage 0 ;;\n    *) printf 'unknown option: %s\\n' \"$1\" &gt;&amp;2; usage 1 ;;\n  esac\ndone\n\nstep() { printf '\\n\\033[1;34m==&gt; %s\\033[0m\\n' \"$*\"; }\ninfo() { printf '    %s\\n' \"$*\"; }\nwarn() { printf '\\033[1;33m[warn]\\033[0m %s\\n' \"$*\" &gt;&amp;2; }\ndie()  { printf '\\033[1;31m[error]\\033[0m %s\\n' \"$*\" &gt;&amp;2; exit 1; }\n\n# ---------- \u524d\u7f6e\u6aa2\u67e5 ----------\nstep \"\u524d\u7f6e\u6aa2\u67e5\"\n\n[[ \"$(uname -s)\" == \"Darwin\" ]] || die \"\u9019\u652f script \u53ea\u80fd\u5728 macOS \u4e0a\u8dd1\u3002\"\n[[ \"$(id -u)\" -ne 0 ]] || die \"\u4e0d\u8981\u7528 sudo \u8dd1\u9019\u652f\u3002Homebrew \u62d2\u7d55\u4ee5 root \u5b89\u88dd\u3002\n       \u7528\u4e00\u822c admin \u5e33\u865f\u57f7\u884c\uff0cscript \u6703\u5728\u9700\u8981\u7684\u5730\u65b9\u81ea\u5df1\u547c\u53eb sudo\u3002\"\n\nCALLER=\"$(id -un)\"\nCALLER_HOME=\"$HOME\"\nid -Gn \"$CALLER\" | tr ' ' '\\n' | grep -qx admin \\\n  || die \"$CALLER \u4e0d\u5728 admin \u7fa4\u7d44\uff0c\u6c92\u8fa6\u6cd5 sudo\u3002\"\ninfo \"\u57f7\u884c\u8005\uff1a${CALLER}\uff08${CALLER_HOME}\uff09\"\n\n[[ -n \"$TS_HOSTNAME\" ]] || die \"\u7f3a --hostname\u3002\u9019\u662f\u9019\u53f0\u6a5f\u5668\u5728 tailnet \u88e1\u7684\u540d\u5b57\u3002\"\n[[ -n \"$AUTHKEY\" ]] || die \"\u7f3a auth key\u3002\u7528 --authkey \u6216\u74b0\u5883\u8b8a\u6578 TS_AUTHKEY \u50b3\u5165\u3002\n       \u7522\u751f\u4f4d\u7f6e\uff1ahttps://login.tailscale.com/admin/settings/keys\"\n[[ \"$AUTHKEY\" == tskey-* ]] || warn \"auth key \u4e0d\u662f tskey- \u958b\u982d\uff0c\u78ba\u8a8d\u4e00\u4e0b\u6c92\u8cbc\u932f\u3002\"\n\nif [[ -n \"$CI_USER\" &amp;&amp; -z \"$CI_PASSWORD\" ]]; then\n  die \"\u7d66\u4e86 --ci-user $CI_USER \u5c31\u5fc5\u9808\u7d66\u5bc6\u78bc\u3002\n       \u7528 --ci-password\uff0c\u6216\u74b0\u5883\u8b8a\u6578 CI_PASSWORD\uff08\u4e0d\u6703\u7559\u5728 shell history\uff09\u3002\n       \u4e0d\u81ea\u52d5\u7522\u751f\uff1a\u5e33\u865f\u6709 sudo\uff0c\u5bc6\u78bc\u8981\u7531\u4f60\u6c7a\u5b9a\u4e26\u5b58\u9032\u5bc6\u78bc\u7ba1\u7406\u5668\u3002\"\nfi\n\nif [[ \"$SKIP_SSH\" != \"true\" &amp;&amp; ${#SSH_KEYS[@]} -eq 0 &amp;&amp; ${#SSH_KEY_URLS[@]} -eq 0 ]]; then\n  die \"\u6c92\u6709\u7d66\u516c\u9470\u3002\u8981\u8a2d SSH \u5c31\u7d66 --ssh-key \u6216 --ssh-key-url\uff0c\u4e0d\u7136\u52a0 --skip-ssh \u8df3\u904e\u3002\n       \uff08\u6c92\u6709\u516c\u9470\u537b\u95dc\u6389\u5bc6\u78bc\u767b\u5165 = \u628a\u81ea\u5df1\u9396\u5728\u9580\u5916\uff0c\u6240\u4ee5\u9019\u88e1\u76f4\u63a5\u64cb\u4e0b\u4f86\u3002\uff09\"\nfi\n\n# \u5148\u8981\u4e00\u6b21 sudo\uff0c\u7136\u5f8c\u5728\u80cc\u666f\u7e8c\u547d\uff0c\u4e2d\u9014\u4e0d\u6703\u518d\u554f\u5bc6\u78bc\nstep \"\u53d6\u5f97 sudo \u6b0a\u9650\"\nsudo -v || die \"\u62ff\u4e0d\u5230 sudo\u3002\"\nwhile true; do sudo -n true; sleep 50; kill -0 \"$$\" 2&gt;/dev/null || exit; done 2&gt;/dev/null &amp;\nSUDO_KEEPALIVE_PID=$!\ncleanup() { kill \"$SUDO_KEEPALIVE_PID\" 2&gt;/dev/null || true; }\ntrap cleanup EXIT\n\n# ---------- Homebrew ----------\nif [[ \"$SKIP_BREW\" == \"true\" ]]; then\n  step \"\u7565\u904e Homebrew \u8207 tailscale \u5b89\u88dd\uff08--skip-brew\uff09\"\n  [[ -x \"${BREW_PREFIX}/bin/brew\" ]] &amp;&amp; eval \"$(\"${BREW_PREFIX}/bin/brew\" shellenv)\"\nelse\n  step \"\u5b89\u88dd Homebrew\"\n  if [[ -x \"${BREW_PREFIX}/bin/brew\" ]]; then\n    info \"\u5df2\u5b58\u5728\uff1a$(\"${BREW_PREFIX}/bin/brew\" --version | head -1)\"\n  else\n    info \"\u6c92\u6709 brew\uff0c\u958b\u59cb\u5b89\u88dd\uff08\u6703\u4e00\u4f75\u88dd Xcode Command Line Tools\uff0c\u9700\u8981\u4e00\u6bb5\u6642\u9593\uff09\"\n    NONINTERACTIVE=1 /bin/bash -c \\\n      \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\" \\\n      || die \"Homebrew \u5b89\u88dd\u5931\u6557\u3002\"\n  fi\n\n  eval \"$(\"${BREW_PREFIX}/bin/brew\" shellenv)\"\n\n  # \u8b93\u4e4b\u5f8c\u6bcf\u6b21\u767b\u5165 shell \u90fd\u627e\u5f97\u5230 brew\n  for profile in \"${CALLER_HOME}/.zshenv\" \"${CALLER_HOME}/.bash_profile\"; do\n    touch \"$profile\"\n    if ! grep -qF 'mise/shims' \"$profile\"; then\n      printf '\\n%s\\n%s\\n' \"$MARKER\" \"$SHELLENV_LINE\" &gt;&gt; \"$profile\"\n      info \"\u5df2\u628a brew \uff0b mise shims \u5beb\u9032 $(basename \"$profile\")\"\n    fi\n  done\n\n  step \"\u5b89\u88dd tailscale\uff08\u958b\u6e90 CLI \u7248\uff09\"\n  if brew list --formula tailscale &gt;/dev/null 2&gt;&amp;1; then\n    info \"\u5df2\u5b89\u88dd\uff0c\u6aa2\u67e5\u66f4\u65b0\"\n    brew upgrade tailscale || info \"\u5df2\u662f\u6700\u65b0\"\n  else\n    brew install tailscale\n  fi\n  info \"$(tailscale version | head -1)\"\nfi\n\ncommand -v tailscale &gt;/dev/null 2&gt;&amp;1 || die \"\u627e\u4e0d\u5230 tailscale\u3002brew \u5b89\u88dd\u53ef\u80fd\u5931\u6557\u4e86\u3002\"\nBREW_TAILSCALED=\"$(brew --prefix)/bin/tailscaled\"\n[[ -x \"$BREW_TAILSCALED\" ]] || die \"\u627e\u4e0d\u5230 $BREW_TAILSCALED\"\n\n# ---------- \u8a3b\u518a\u6210 LaunchDaemon ----------\nstep \"\u628a tailscaled \u8a3b\u518a\u6210 LaunchDaemon\"\n\n# install-system-daemon \u9810\u8a2d\u6703\u628a binary \u8907\u88fd\u5230 /usr/local/bin/tailscaled\uff0c\n# \u4f46\u5b83\u660e\u78ba\u5730\u4e0d\u8986\u84cb symlink\u3002\u5148\u505a\u6210 symlink\uff0c\u4e4b\u5f8c brew upgrade \u5c31\u6703\u76f4\u63a5\u751f\u6548\uff0c\n# \u4e0d\u5fc5\u6bcf\u6b21\u91cd\u8dd1 install-system-daemon\u3002\nif [[ -L \"$SYS_TAILSCALED\" &amp;&amp; \"$(readlink \"$SYS_TAILSCALED\")\" == \"$BREW_TAILSCALED\" ]]; then\n  info \"$SYS_TAILSCALED \u5df2\u6307\u5411 brew \u7684\u7248\u672c\"\nelse\n  sudo mkdir -p /usr/local/bin\n  sudo rm -f \"$SYS_TAILSCALED\"\n  sudo ln -s \"$BREW_TAILSCALED\" \"$SYS_TAILSCALED\"\n  info \"$SYS_TAILSCALED -&gt; $BREW_TAILSCALED\"\nfi\n\nsudo \"$BREW_TAILSCALED\" install-system-daemon\ninfo \"\u5df2\u8f09\u5165 /Library/LaunchDaemons/com.tailscale.tailscaled.plist\"\n\nfor _ in $(seq 1 30); do\n  [[ -S /var/run/tailscaled.socket ]] &amp;&amp; break\n  sleep 1\ndone\n[[ -S /var/run/tailscaled.socket ]] \\\n  || die \"tailscaled \u6c92\u6709\u8d77\u4f86\u3002\u770b\uff1asudo launchctl print system/com.tailscale.tailscaled\"\ninfo \"daemon \u5df2\u5c31\u7dd2\"\n\n# ---------- CI \u5e33\u865f ----------\n# \u4e0d\u7d66 --ci-user \u5c31\u6cbf\u7528\u57f7\u884c\u8005\u81ea\u5df1\u7684\u5e33\u865f\u3002\nSSH_USER=\"$CALLER\"\nSSH_HOME=\"$CALLER_HOME\"\n\nif [[ -n \"$CI_USER\" ]]; then\n  step \"\u5efa\u7acb CI \u5e33\u865f\uff1a$CI_USER\"\n\n  if id -u \"$CI_USER\" &gt;/dev/null 2&gt;&amp;1; then\n    info \"\u5e33\u865f\u5df2\u5b58\u5728\uff0c\u4e0d\u91cd\u5efa\"\n  else\n    # \u8a3b\uff1a-password \u8d70\u547d\u4ee4\u5217\uff0c\u5bc6\u78bc\u6703\u77ed\u66ab\u51fa\u73fe\u5728 ps\u3002\u88dd\u6a5f\u7576\u4e0b\u53ea\u6709\u64cd\u4f5c\u8005\u5728\u5834\uff0c\n    # \u9019\u500b\u4ea4\u63db\u53ef\u4ee5\u63a5\u53d7\u3002\u4e0d\u63a5\u53d7\u7684\u8a71\u7528 --ci-password - \u8b93 sysadminctl \u4e92\u52d5\u8a62\u554f\u3002\n    sudo sysadminctl -addUser \"$CI_USER\" \\\n      -fullName \"$CI_FULLNAME\" \\\n      -password \"$CI_PASSWORD\" \\\n      -home \"/Users/${CI_USER}\" \\\n      -shell /bin/zsh \\\n      -admin \\\n      || die \"\u5efa\u7acb\u5e33\u865f $CI_USER \u5931\u6557\u3002\"\n    info \"\u5df2\u5efa\u7acb\uff08-admin\uff0c\u53ef\u4ee5 sudo\uff09\"\n  fi\n\n  sudo createhomedir -c -u \"$CI_USER\" &gt;/dev/null 2&gt;&amp;1 || true\n\n  # Homebrew \u662f\u57f7\u884c\u9019\u652f script \u7684 admin \u5e33\u865f\u88dd\u7684\uff0cprefix \u9810\u8a2d\u4e0d\u7d66 group \u5beb\u5165\u6b0a\uff0c\n  # \u6240\u4ee5 CI \u5e33\u865f\u6703\u649e \"directories are not writable by your user\"\u3002\n  # \u5169\u500b\u5e33\u865f\u90fd\u5728 admin \u7fa4\u7d44\uff0c\u6253\u958b group \u5beb\u5165\u6b0a\u5c31\u597d \u2014\u2014 \u4e0d\u7528 chown\uff0c\n  # chown \u6703\u8b93\u88dd\u6a5f\u7684 admin \u5e33\u865f\u53cd\u904e\u4f86\u4e0d\u80fd\u7528 brew\u3002\n  if [[ -d \"$BREW_PREFIX\" ]]; then\n    sudo chgrp -R admin \"$BREW_PREFIX\"\n    sudo chmod -R g+w \"$BREW_PREFIX\"\n    info \"\u5df2\u958b\u653e $BREW_PREFIX \u7d66 admin \u7fa4\u7d44\u5beb\u5165\uff08${CI_USER} \u624d\u7528\u5f97\u4e86 brew\uff09\"\n\n    # \u5149\u6709\u5beb\u5165\u6b0a\u9084\u4e0d\u5920\uff1a$BREW_PREFIX \u672c\u8eab\u662f git repo\uff0c\u64c1\u6709\u8005\u4e0d\u662f CI \u5e33\u865f\uff0c\n    # git 2.35.2 \u8d77\u6703\u62d2\u7d55\u64cd\u4f5c\uff08dubious ownership\uff0cCVE-2022-24765 \u7684\u4fee\u88dc\uff09\u3002\n    # brew update \u6703\u628a\u90a3\u500b\u932f\u8aa4\u541e\u6389\uff0c\u53ea\u5410\u51fa\u8aa4\u5c0e\u6027\u7684\n    #   Error: update-report should not be called directly!\n    # \u5b8c\u5168\u4e0d\u63d0\u771f\u6b63\u7684\u539f\u56e0\u3002\u7528 safe.directory \u958b\u4f8b\u5916\uff0c\u53ea\u5f71\u97ff CI \u5e33\u865f\u81ea\u5df1\u3002\n    # \u4e0d\u7528 chown\uff1a\u90a3\u6703\u628a\u540c\u4e00\u500b\u554f\u984c\u53cd\u904e\u4f86\u4e1f\u7d66\u88dd\u6a5f\u7684 admin \u5e33\u865f\u3002\n    for repo in \"$BREW_PREFIX\" \"${BREW_PREFIX}/Library/Taps\"/*/*; do\n      [[ -d \"${repo}/.git\" ]] || continue\n      if sudo -u \"$CI_USER\" -H git config --global --get-all safe.directory 2&gt;/dev/null \\\n           | grep -qxF \"$repo\"; then\n        continue\n      fi\n      sudo -u \"$CI_USER\" -H git config --global --add safe.directory \"$repo\"\n      info \"git safe.directory += $repo\"\n    done\n  fi\n\n  SSH_USER=\"$CI_USER\"\n  SSH_HOME=\"$(dscl . -read \"/Users/${CI_USER}\" NFSHomeDirectory 2&gt;/dev/null | awk '{print $2}')\"\n  [[ -d \"$SSH_HOME\" ]] || die \"\u627e\u4e0d\u5230 $CI_USER \u7684\u5bb6\u76ee\u9304\u3002\"\n  info \"\u5bb6\u76ee\u9304\uff1a$SSH_HOME\"\n\n  # \u8b93 CI job \u627e\u5f97\u5230 brew \u8207 mise\u3002.zshenv \u662f\u95dc\u9375\uff1assh host 'cmd' \u53ea\u8b80\u9019\u4e00\u4efd\u3002\n  for profile in \"${SSH_HOME}/.zshenv\" \"${SSH_HOME}/.bash_profile\"; do\n    sudo -u \"$CI_USER\" touch \"$profile\"\n    if ! sudo -u \"$CI_USER\" grep -qF 'mise/shims' \"$profile\" 2&gt;/dev/null; then\n      printf '\\n%s\\n%s\\n' \"$MARKER\" \"$SHELLENV_LINE\" \\\n        | sudo -u \"$CI_USER\" tee -a \"$profile\" &gt;/dev/null\n      info \"\u5df2\u628a brew \uff0b mise shims \u5beb\u9032 ${CI_USER} \u7684 $(basename \"$profile\")\"\n    fi\n  done\nfi\n\n# macOS \u6709\u4e00\u5c64\u8ddf sshd_config \u7121\u95dc\u7684\u5e33\u865f\u767d\u540d\u55ae\uff1acom.apple.access_ssh\u3002\n# \u9810\u8a2d\u5b83\u5de2\u72c0\u5305\u8457 admin \u7fa4\u7d44\uff0c\u6240\u4ee5\u975e admin \u5e33\u865f\u516c\u9470\u5168\u5c0d\u4e5f\u6703\u88ab\u62d2\uff0c\n# \u800c\u932f\u8aa4\u8a0a\u606f\u53ea\u6709 Permission denied (publickey)\uff0c\u770b\u4e0d\u51fa\u771f\u56e0\u3002\nif [[ \"$SKIP_SSH\" != \"true\" ]]; then\n  if dseditgroup -o checkmember -m \"$SSH_USER\" com.apple.access_ssh &gt;/dev/null 2&gt;&amp;1; then\n    info \"$SSH_USER \u5df2\u5728 com.apple.access_ssh \u767d\u540d\u55ae\u5167\"\n  else\n    sudo dseditgroup -o edit -a \"$SSH_USER\" -t user com.apple.access_ssh \\\n      || die \"\u628a $SSH_USER \u52a0\u9032 com.apple.access_ssh \u5931\u6557\u3002\"\n    info \"\u5df2\u628a $SSH_USER \u52a0\u9032 com.apple.access_ssh \u767d\u540d\u55ae\"\n  fi\nfi\n\n# ---------- \u958b\u767c\u5de5\u5177 ----------\nif [[ \"$SKIP_TOOLS\" == \"true\" || \"$SKIP_BREW\" == \"true\" ]]; then\n  step \"\u7565\u904e\u958b\u767c\u5de5\u5177\u5b89\u88dd\"\nelse\n  step \"\u5b89\u88dd\u958b\u767c\u5de5\u5177\"\n\n  for formula in $BREW_FORMULAS; do\n    if brew list --formula \"$formula\" &gt;/dev/null 2&gt;&amp;1; then\n      info \"\u5df2\u88dd\uff1a$formula\"\n    else\n      info \"\u5b89\u88dd\uff1a$formula\"\n      brew install \"$formula\" || warn \"$formula \u5b89\u88dd\u5931\u6557\uff0c\u7e7c\u7e8c\u3002\"\n    fi\n  done\n\n  if [[ -n \"$NODE_VERSION\" ]]; then\n    command -v mise &gt;/dev/null 2&gt;&amp;1 \\\n      || die \"\u8981\u88dd node \u4f46\u6c92\u6709 mise\u3002\u628a mise \u7559\u5728 --brew-formulas \u88e1\u3002\"\n\n    # \u8a9e\u8a00 runtime \u88dd\u5728 CI \u5e33\u865f\u540d\u4e0b\uff0c\u4e0d\u662f\u5168\u57df \u2014\u2014 \u6bcf\u500b repo \u624d\u80fd\u7528\n    # .node-version / .nvmrc \u91d8\u81ea\u5df1\u7684\u7248\u672c\u3002\n    MISE_CONFIG_DIR=\"${SSH_HOME}/.config/mise\"\n    MISE_CONFIG=\"${MISE_CONFIG_DIR}/config.toml\"\n    sudo -u \"$SSH_USER\" mkdir -p \"$MISE_CONFIG_DIR\"\n    if [[ ! -f \"$MISE_CONFIG\" ]]; then\n      # idiomatic_version_file_enable_tools \u8b93 mise \u8a8d\u5f97 repo \u88e1\u7684\n      # .node-version \u8207 .nvmrc\uff1bcorepack enable \u8b93 pnpm / yarn \u8ddf\u8457 node \u8d70\u3002\n      printf '%s\\n[settings]\\nidiomatic_version_file_enable_tools = [\"node\"]\\n' \"$MARKER\" \\\n        | sudo -u \"$SSH_USER\" tee \"$MISE_CONFIG\" &gt;/dev/null\n      info \"\u5df2\u5efa\u7acb $MISE_CONFIG\"\n    fi\n\n    info \"\u4ee5 $SSH_USER \u7684\u8eab\u5206\u5b89\u88dd node@${NODE_VERSION}\uff08\u9700\u8981\u5e7e\u5206\u9418\uff09\"\n    sudo -u \"$SSH_USER\" -H mise use -g \"node@${NODE_VERSION}\" \\\n      || die \"mise \u5b89\u88dd node@${NODE_VERSION} \u5931\u6557\u3002\"\n    # Node 22.13.1 \u5167\u5efa\u7684 corepack 0.30.0 \u5e36\u8457\u904e\u671f\u7684 npm registry \u7c3d\u7ae0\u91d1\u9470\uff0c\n    # \u6293 pnpm \u6703\u70b8\u5728 \"Cannot find matching keyid\"\u3002\u5148\u5347\u7d1a\u518d enable\u3002\n    sudo -u \"$SSH_USER\" -H mise exec \"node@${NODE_VERSION}\" -- \\\n      npm install -g corepack@latest &gt;/dev/null 2&gt;&amp;1 \\\n      || warn \"corepack \u5347\u7d1a\u5931\u6557\uff0cpnpm \u53ef\u80fd\u6703\u649e\u7c3d\u7ae0\u9a57\u8b49\u932f\u8aa4\u3002\"\n    sudo -u \"$SSH_USER\" -H mise exec \"node@${NODE_VERSION}\" -- corepack enable \\\n      || warn \"corepack enable \u5931\u6557\uff0cpnpm / yarn \u8981\u81ea\u5df1\u8655\u7406\u3002\"\n\n    info \"node: $(sudo -u \"$SSH_USER\" -H mise exec \"node@${NODE_VERSION}\" -- node --version 2&gt;/dev/null || echo '\u9a57\u4e0d\u5230')\"\n  else\n    info \"\u6c92\u7d66 --node-version\uff0c\u4e0d\u88dd node\"\n  fi\nfi\n\n# ---------- \u52a0\u5165 tailnet ----------\nstep \"\u52a0\u5165 tailnet\"\n\nbuild_up_args() {\n  UP_ARGS=(\n    --authkey=\"$AUTHKEY\"\n    --hostname=\"$TS_HOSTNAME\"\n    --accept-routes=false\n    --accept-dns=\"$ACCEPT_DNS\"\n  )\n  [[ -n \"$TAGS\" ]] &amp;&amp; UP_ARGS+=(--advertise-tags=\"$TAGS\")\n  [[ \"$1\" == \"with-ssh\" ]] &amp;&amp; UP_ARGS+=(--ssh)\n}\n\nif [[ \"$TAILSCALE_SSH\" == \"true\" ]]; then\n  build_up_args with-ssh\n  info \"tailscale up\uff08\u542b --ssh\uff09\"\n  if ! sudo tailscale up \"${UP_ARGS[@]}\"; then\n    warn \"\u5e36 --ssh \u7684 tailscale up \u5931\u6557\uff0c\u6539\u7528\u4e0d\u5e36 --ssh \u518d\u8a66\u4e00\u6b21\u3002\"\n    warn \"\u4e4b\u5f8c\u53ea\u80fd\u9760\u7cfb\u7d71 sshd \u9023\u7dda\uff0c\u9019\u4ecd\u7136\u662f\u901a\u7684\u3002\"\n    TAILSCALE_SSH=\"false\"\n    build_up_args no-ssh\n    sudo tailscale up \"${UP_ARGS[@]}\" || die \"tailscale up \u5931\u6557\u3002\"\n  fi\nelse\n  build_up_args no-ssh\n  info \"tailscale up\uff08\u4e0d\u542b --ssh\uff09\"\n  sudo tailscale up \"${UP_ARGS[@]}\" || die \"tailscale up \u5931\u6557\u3002\"\nfi\n\nOP=\"${OPERATOR:-$SSH_USER}\"\nsudo tailscale set --operator=\"$OP\"\ninfo \"operator = ${OP}\uff08\u8a72\u5e33\u865f\u8dd1 tailscale \u6307\u4ee4\u514d sudo\uff09\"\n\nTS_IP=\"$(tailscale ip -4 2&gt;/dev/null | head -1 || true)\"\ninfo \"tailnet IP\uff1a${TS_IP:-\u53d6\u4e0d\u5230}\"\n\n# ---------- SSH ----------\nif [[ \"$SKIP_SSH\" == \"true\" ]]; then\n  step \"\u7565\u904e SSH \u8a2d\u5b9a\uff08--skip-ssh\uff09\"\nelse\n  step \"\u8a2d\u5b9a\u7cfb\u7d71 sshd\"\n\n  KEYS_TMP=\"$(mktemp)\"\n  trap 'cleanup; rm -f \"$KEYS_TMP\"' EXIT\n\n  for url in ${SSH_KEY_URLS+\"${SSH_KEY_URLS[@]}\"}; do\n    info \"\u6293\u516c\u9470\uff1a$url\"\n    curl -fsSL --retry 3 \"$url\" &gt;&gt; \"$KEYS_TMP\" || die \"\u6293\u4e0d\u5230 $url\"\n  done\n  for key in ${SSH_KEYS+\"${SSH_KEYS[@]}\"}; do\n    printf '%s\\n' \"$key\" &gt;&gt; \"$KEYS_TMP\"\n  done\n\n  # \u53ea\u7559\u770b\u8d77\u4f86\u771f\u7684\u662f\u516c\u9470\u7684\u884c\uff0c\u907f\u514d\u628a HTML \u932f\u8aa4\u9801\u5beb\u9032 authorized_keys\n  grep -E '^(ssh-(rsa|ed25519|dss)|ecdsa-sha2-|sk-ssh-|sk-ecdsa-)' \"$KEYS_TMP\" \\\n    &gt; \"${KEYS_TMP}.clean\" || true\n  mv \"${KEYS_TMP}.clean\" \"$KEYS_TMP\"\n\n  KEY_COUNT=\"$(grep -c . \"$KEYS_TMP\" || true)\"\n  [[ \"${KEY_COUNT:-0}\" -gt 0 ]] \\\n    || die \"\u4e00\u628a\u6709\u6548\u7684\u516c\u9470\u90fd\u6c92\u6709\uff0c\u4e2d\u6b62\u3002\u95dc\u6389\u5bc6\u78bc\u767b\u5165\u4e4b\u524d\u4e00\u5b9a\u8981\u5148\u6709\u9470\u5319\u3002\"\n  info \"\u53d6\u5f97 $KEY_COUNT \u628a\u516c\u9470\uff0c\u5c07\u88dd\u5230 $SSH_USER \u540d\u4e0b\"\n\n  SSH_DIR=\"${SSH_HOME}/.ssh\"\n  AUTH_KEYS=\"${SSH_DIR}/authorized_keys\"\n  sudo -u \"$SSH_USER\" mkdir -p \"$SSH_DIR\"\n  sudo -u \"$SSH_USER\" touch \"$AUTH_KEYS\"\n  while IFS= read -r key; do\n    [[ -z \"$key\" ]] &amp;&amp; continue\n    label=\"$(printf '%s' \"$key\" | awk '{print $NF}')\"\n    if sudo grep -qxF \"$key\" \"$AUTH_KEYS\"; then\n      info \"\u5df2\u5b58\u5728\uff1a$label\"\n    else\n      printf '%s\\n' \"$key\" | sudo -u \"$SSH_USER\" tee -a \"$AUTH_KEYS\" &gt;/dev/null\n      info \"\u52a0\u5165\uff1a$label\"\n    fi\n  done &lt; \"$KEYS_TMP\"\n\n  sudo chown -R \"${SSH_USER}:staff\" \"$SSH_DIR\"\n  sudo chmod 700 \"$SSH_DIR\"\n  sudo chmod 600 \"$AUTH_KEYS\"\n  info \"authorized_keys \u4f4d\u7f6e\uff1a$AUTH_KEYS\"\n\n  # systemsetup -setremotelogin \u5728\u8fd1\u7248 macOS \u9700\u8981 Full Disk Access\uff0c\n  # \u76f4\u63a5\u64cd\u4f5c launchd \u4e0d\u9700\u8981\uff0c\u6240\u4ee5\u8d70\u9019\u689d\u3002\n  info \"\u555f\u7528 com.openssh.sshd\"\n  sudo launchctl enable system/com.openssh.sshd 2&gt;/dev/null || true\n  sudo launchctl bootstrap system /System/Library/LaunchDaemons/ssh.plist 2&gt;/dev/null || true\n\n  HARDENING=\"${MARKER}\nPasswordAuthentication no\nKbdInteractiveAuthentication no\nPermitRootLogin no\nPubkeyAuthentication yes\nUsePAM yes\"\n\n  if grep -qE '^[[:space:]]*Include[[:space:]]+/etc/ssh/sshd_config\\.d/' /etc/ssh/sshd_config 2&gt;/dev/null; then\n    sudo mkdir -p /etc/ssh/sshd_config.d\n    printf '%s\\n' \"$HARDENING\" | sudo tee \"$SSHD_DROPIN\" &gt;/dev/null\n    sudo chmod 644 \"$SSHD_DROPIN\"\n    info \"\u5beb\u5165 $SSHD_DROPIN\"\n  elif sudo grep -qF \"$MARKER\" /etc/ssh/sshd_config; then\n    info \"/etc/ssh/sshd_config \u5df2\u6709\u672c script \u7684\u5340\u584a\uff0c\u4e0d\u91cd\u8907\u52a0\"\n  else\n    sudo cp /etc/ssh/sshd_config \"/etc/ssh/sshd_config.bak.$(date +%Y%m%d%H%M%S)\"\n    printf '\\n%s\\n' \"$HARDENING\" | sudo tee -a /etc/ssh/sshd_config &gt;/dev/null\n    info \"\u9644\u52a0\u8a2d\u5b9a\u5230 /etc/ssh/sshd_config\uff08\u539f\u6a94\u5df2\u5099\u4efd\uff09\"\n  fi\n\n  # \u8a2d\u5b9a\u5beb\u58de\u5c31\u4e0d\u91cd\u8f09 sshd\uff0c\u514d\u5f97\u628a\u81ea\u5df1\u9396\u5728\u5916\u9762\n  if sudo /usr/sbin/sshd -t 2&gt;/dev/null; then\n    sudo launchctl kickstart -k system/com.openssh.sshd 2&gt;/dev/null || true\n    info \"sshd \u8a2d\u5b9a\u9a57\u904e\u4e26\u5df2\u91cd\u8f09\"\n  else\n    warn \"sshd -t \u9a57\u4e0d\u904e\uff0c\u6c92\u6709\u91cd\u8f09 sshd\u3002\u8dd1 sudo /usr/sbin/sshd -t \u770b\u932f\u5728\u54ea\u3002\"\n  fi\nfi\n\n# ---------- \u96fb\u6e90 ----------\nif [[ \"$SKIP_POWER\" == \"true\" ]]; then\n  step \"\u7565\u904e\u96fb\u6e90\u8a2d\u5b9a\uff08--skip-power\uff09\"\nelse\n  step \"\u96fb\u6e90\u8a2d\u5b9a\uff1a\u4e0d\u7761\u3001\u65b7\u96fb\u5f8c\u81ea\u52d5\u958b\u6a5f\"\n  sudo pmset -a sleep 0        2&gt;/dev/null || warn \"pmset sleep 0 \u5931\u6557\"\n  sudo pmset -a disablesleep 1 2&gt;/dev/null || warn \"pmset disablesleep 1 \u5931\u6557\uff08\u684c\u6a5f\u6c92\u6709\u9019\u500b\u9375\uff0c\u6b63\u5e38\uff09\"\n  sudo pmset -a womp 1         2&gt;/dev/null || warn \"pmset womp 1 \u5931\u6557\"\n  sudo pmset -a autorestart 1  2&gt;/dev/null || warn \"pmset autorestart 1 \u5931\u6557\"\n  sudo pmset -a displaysleep 10 2&gt;/dev/null || true\n  info \"\u5df2\u5957\u7528\uff08\u87a2\u5e55\u4ecd\u6703\u95dc\uff0c\u7cfb\u7d71\u4e0d\u7761\uff09\"\nfi\n\n# ---------- \u6536\u5c3e ----------\nstep \"\u5b8c\u6210\"\ntailscale status || true\n\nprintf '\\n'\nprintf '  \u6a5f\u5668\u540d\u7a31   : %s\\n' \"$TS_HOSTNAME\"\nprintf '  SSH \u5e33\u865f   : %s\\n' \"$SSH_USER\"\nprintf '  tailnet IP : %s\\n' \"${TS_IP:-\u53d6\u4e0d\u5230}\"\nprintf '  \u7248\u672c       : %s\\n' \"$(tailscale version | head -1)\"\nprintf '\\n  \u5f9e\u53e6\u4e00\u53f0\u5df2\u5728 tailnet \u7684\u6a5f\u5668\u9023\u9032\u4f86\uff1a\\n'\n[[ \"$TAILSCALE_SSH\" == \"true\" ]] &amp;&amp; \\\nprintf '    tailscale ssh %s@%s      # \u8d70 tailnet \u8eab\u5206 + ACL\uff0c\u4e0d\u9700\u8981 authorized_keys\\n' \"$SSH_USER\" \"$TS_HOSTNAME\"\nprintf '    ssh %s@%s        # \u7cfb\u7d71 sshd\uff0c\u8d70 authorized_keys\\n' \"$SSH_USER\" \"${TS_IP:-}\"\nif [[ \"$TAILSCALE_SSH\" == \"true\" ]]; then\n  printf '\\n\\033[1;33m  Tailscale SSH \u5df2\u958b\u555f\uff0c\u5b83\u6703\u6514\u622a port 22 \u4e26\u84cb\u6389\u7cfb\u7d71 sshd\u3002\\033[0m\\n'\n  printf '  tailnet policy \u6c92\u6709\u5c0d\u61c9\u7684 \"ssh\" \u898f\u5247\u7684\u8a71\uff0c\u5169\u689d\u8def\u90fd\u6703\u88ab\u62d2\uff0c\u8a0a\u606f\u662f\\n'\n  printf '    tailnet policy does not permit you to SSH to this node\\n'\n  printf '  \u7576\u5834\u8981\u7528\u516c\u9470\u9032\u4f86\u7684\u8a71\uff1asudo tailscale set --ssh=false\\n'\nfi\n\nif [[ \"$SKIP_SSH\" != \"true\" ]]; then\n  printf '\\n\\033[1;33m  \u96e2\u958b\u9019\u53f0\u6a5f\u5668\u4e4b\u524d\uff0c\u5148\u958b\u53e6\u4e00\u500b\u8996\u7a97\u78ba\u8a8d SSH \u771f\u7684\u9023\u5f97\u9032\u4f86\u3002\\033[0m\\n'\n  printf '  \u5bc6\u78bc\u767b\u5165\u5df2\u7d93\u95dc\u6389\uff0c\u516c\u9470\u6c92\u8a2d\u5c0d\u5c31\u9032\u4e0d\u4f86\u4e86\u3002\\n'\nfi\n\nprintf '\\n  \u9084\u6c92\u505a\u3001\u8981\u81ea\u5df1\u6c7a\u5b9a\u7684\uff1a\\n'\nprintf '    - FileVault\uff1a\u958b\u8457\u7684\u8a71\u91cd\u958b\u6a5f\u9700\u8981\u6709\u4eba\u5230\u5834\u89e3\u9396\u3002\u9060\u7aef\u91cd\u958b\u7528 sudo fdesetup authrestart\\n'\nprintf '    - \u5230 admin console \u78ba\u8a8d\u9019\u53f0\u5df2 approve\u3001tag \u6b63\u78ba\uff1ahttps://login.tailscale.com/admin/machines\\n'\nprintf '    - \u65e5\u5f8c\u5347\u7d1a\uff1abrew upgrade tailscale &amp;&amp; sudo launchctl kickstart -k system/com.tailscale.tailscaled\\n'\n", "url": "https://gist.github.com/akccakcctw/8594329efb6ffc46ddf16bba4a0261b6"}, {"timestamp": "2026-09-08T08:34:36.952Z", "date_only": false, "value": "2026-09-08T08:34:36.952Z", "kind": "other", "label": "Updated", "source": "bitnami_vulndb \u00b7 BIT-GIT-2022-24765", "record": "BIT-GIT-2022-24765", "field": "modified", "linked_record": true}, {"timestamp": "2026-09-20T14:21:26Z", "date_only": false, "value": "2026-09-20T14:21:26Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1260-1", "record": "SUSE-SU-2022:1260-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-20T14:21:57Z", "date_only": false, "value": "2026-09-20T14:21:57Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1306-1", "record": "SUSE-SU-2022:1306-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-20T14:23:03Z", "date_only": false, "value": "2026-09-20T14:23:03Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1484-1", "record": "SUSE-SU-2022:1484-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-20T14:40:47Z", "date_only": false, "value": "2026-09-20T14:40:47Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:3494-1", "record": "SUSE-SU-2022:3494-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-20T14:40:48Z", "date_only": false, "value": "2026-09-20T14:40:48Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:3495-1", "record": "SUSE-SU-2022:3495-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-20T20:29:42Z", "date_only": false, "value": "2026-09-20T20:29:42Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12003-1", "record": "OPENSUSE-SU-2024:12003-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-20T20:29:44Z", "date_only": false, "value": "2026-09-20T20:29:44Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12005-1", "record": "OPENSUSE-SU-2024:12005-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-20T20:34:12Z", "date_only": false, "value": "2026-09-20T20:34:12Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12223-1", "record": "OPENSUSE-SU-2024:12223-1", "field": "document.tracking.revision_history.1.date", "linked_record": true}, {"timestamp": "2026-09-30T18:25:23.997Z", "date_only": false, "value": "2026-09-30T18:25:23.997562Z", "kind": "milestone", "label": "Published", "source": "cleanstart \u00b7 CLEANSTART-2026-EN85312", "record": "CLEANSTART-2026-EN85312", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-10-08T14:25:30Z", "date_only": false, "value": "2026-10-08T14:25:30Z", "kind": "other", "label": "Updated", "source": "cleanstart \u00b7 CLEANSTART-2026-EN85312", "record": "CLEANSTART-2026-EN85312", "field": "modified", "linked_record": true}, {"timestamp": "2026-10-15T03:31:21Z", "date_only": false, "value": "2026-10-15T03:31:21Z", "kind": "milestone", "label": "Published", "source": "osv_homebrew \u00b7 BREW-GIT-CVE-2022-24765", "record": "BREW-GIT-CVE-2022-24765", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-10-15T12:20:15Z", "date_only": false, "value": "2026-10-15T12:20:15.000000Z", "kind": "sighting", "label": "Seen", "source": "https://gist.github.com/lskq2bld8u/bb795073a071503ab519b24986b0ab26", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "aee54804-2d64-42ed-8354-72fca04b053d", "content": "# Git \u5b50\u6a21\u5757\u5728 CI \u4e2d\u53cd\u590d\u62a5\u9519 \u201cdetected dubious ownership\u201d \u7684\u6392\u67e5\u8bb0\u5f55\n\n\u516c\u53f8 CI \u4ece\u4e0a\u5468\u5f00\u59cb\u628a\u6784\u5efa\u65e5\u5fd7\u5237\u6210\u4e86\u7ea2\u8272\uff0c\u6bcf\u6761\u6d41\u6c34\u7ebf\u90fd\u5728 clone \u5b50\u6a21\u5757\u540e\u7acb\u523b\u5931\u8d25\u3002\u6211\u7684\u76ee\u6807\u662f\u8ba9 Runner \u5728\u6ca1\u6709\u4eba\u5de5\u4ecb\u5165\u7684\u524d\u63d0\u4e0b\u5b8c\u6210 checkout\uff0c\u5e76\u628a root cause \u5b9a\u4f4d\u6e05\u695a\uff0c\u800c\u4e0d\u662f\u7b80\u5355\u5730\u52a0\u4e00\u884c `git config --global` \u5c31\u4ea4\u5dee\u3002\n\n## \u4e3a\u4ec0\u4e48\u504f\u504f\u662f\u5b50\u6a21\u5757\u89e6\u53d1\n\n\u4e3b\u4ed3\u5e93\u7684 checkout \u4e00\u5207\u6b63\u5e38\uff0c\u95ee\u9898\u53ea\u5728 `.gitmodules` \u58f0\u660e\u7684\u4f9d\u8d56\u4ed3\u5e93\u4e0a\u51fa\u73b0\u3002\u8868\u9762\u770b\u4e8c\u8005\u62c9\u53d6\u6d41\u7a0b\u51e0\u4e4e\u4e00\u6837\uff0c\u4f46\u5173\u952e\u5dee\u522b\u5728\u6240\u6709\u6743\u5224\u5b9a\u65f6\u673a\uff1a\u4e3b\u4ed3\u5e93 clone \u5b8c\u6210\u540e Git \u4f1a\u628a\u5de5\u4f5c\u76ee\u5f55\u6807\u8bb0\u4e3a safe.directory \u901a\u5e38\u7531 CI \u5e73\u53f0\u9884\u7f6e\uff1b\u800c\u5b50\u6a21\u5757\u5728 `git submodule update` \u9636\u6bb5\u662f\u4ee5 Runner \u5185\u90e8 uid \u53bb\u6253\u5f00\u5916\u7684 mount \u76ee\u5f55\uff0c\u4e00\u65e6\u76ee\u5f55 owner \u4e0e\u5f53\u524d\u8fdb\u7a0b uid \u4e0d\u4e00\u81f4\uff0c\u5c31\u4f1a\u5148\u4e8e\u4efb\u4f55 fetch \u903b\u8f91\u629b\u51fa \u201cdetected dubious ownership in repository\u201d\u3002\n\n\u540c\u7c7b\u7684\u66ff\u4ee3\u65b9\u6848\u6709\u4e09\u79cd\u2014\u2014\u5728\u6d41\u6c34\u7ebf\u5f00\u5934\u5168\u5c40\u5199\u5165 `safe.directory`\u3001\u5728\u5bb9\u5668\u5185\u56fa\u5b9a uid \u4e0e\u5bbf\u4e3b\u673a\u4e00\u81f4\u3001\u6216\u8005\u5e72\u8106\u4e0d\u7528\u5b50\u6a21\u5757\u6539\u7528 vendoring \u6216 Go module\u3002\u5bf9\u6bd4\u4e0b\u6765\uff0cvendoring \u65e0\u6cd5\u8986\u76d6\u524d\u7aef\u4fa7\u7684\u4f9d\u8d56\u4ed3\u5e93\uff0c\u5207\u4e0d\u52a8\uff1b\u56fa\u5b9a uid \u4f9d\u8d56 Runner \u914d\u7f6e\u6743\u9650\uff0c\u63a8\u5e7f\u6210\u672c\u9ad8\uff1b\u53ef\u63a7\u5e76\u4e14\u6700\u5c0f\u5316\u7206\u70b8\u534a\u5f84\u7684\u505a\u6cd5\u8fd8\u662f\u5728\u6784\u5efa\u811a\u672c\u91cc\u663e\u5f0f\u7ba1\u7406 safe.directory\u3002\n\n## \u590d\u73b0\u95ee\u9898\u7528\u7684\u6700\u5c0f\u914d\u7f6e\u9879\n\n\u6211\u4eec\u672c\u5730\u628a\u91cd\u590d\u51fa\u73b0\u7684\u90a3\u4efd checkout \u914d\u7f6e\u6458\u4e86\u51fa\u6765\uff0c\u6539\u6210 13 \u884c\u7684\u9aa8\u67b6\u811a\u672c\u3002\u6ce8\u610f\u5b83\u53ea\u505a\u6821\u9a8c\u548c\u58f0\u660e\uff0c\u4e0d\u5e2e\u751f\u4ea7\u73af\u5883\u505a\u5b9e\u6253\u5b9e\u62c9\u53d6\u3002\n\n```json\n{\n  \"name\": \"dubious-ownership-repro\",\n  \"reproduce\": [\n    \"docker run --rm -v \\\"$PWD/src:/work\\\" -w /work alpine/git:2.40 sh -lc 'git submodule update --init'\",\n    \"docker run --rm -v \\\"$PWD/src:/work\\\" -w /work --user 1001 alpine/git:2.40 sh -lc 'git status'\"\n  ],\n  \"notes\": [\n    \"\u7b2c\u4e00\u6b21\u6574\u51fa\u4e3b\u4ed3\u5e93\u6743\u9650\u6b63\u5e38\",\n    \"\u7b2c\u4e8c\u6b21\u7528\u4e0d\u540c uid \u6253\u5f00\u540c\u4e00\u4efd worktree\",\n    \"\u9884\u671f\u4e24\u6b21\u7ed3\u679c\u4e0d\u4e00\u81f4\u624d\u4f1a\u89e6\u53d1\u8be5\u62a5\u9519\"\n  ]\n}\n```\n\n\u8fd9\u6bb5\u672c\u8d28\u4e0a\u662f\u4e00\u4efd\u201c\u4e8c\u5206\u5b9a\u4f4d\u811a\u672c\u201d\uff0c\u7b2c\u4e00\u6761\u547d\u4ee4\u91cc `git submodule update --init` \u4f1a\u6b63\u5e38\u62a5\u9519\uff0c\u7b2c\u4e8c\u6761 `git status` \u7528\u6765\u786e\u8ba4\u540c\u4e00\u4e2a\u76ee\u5f55\u5bf9\u4e0d\u540c uid \u7684\u5224\u5b9a\u7ed3\u679c\u662f\u5426\u7ffb\u8f6c\u3002\u628a\u5b83\u63a5\u5230 CI \u4e4b\u524d\uff0c\u80fd\u8ba9 owner \u4e0d\u4e00\u81f4\u7684\u95ee\u9898\u5728\u672c\u5730\u5c31\u66b4\u9732\u51fa\u6765\u3002\n\n## safe.directory \u5230\u5e95\u5728\u4fdd\u62a4\u4ec0\u4e48\n\n\u5f88\u591a\u4eba\u4ee5\u4e3a\u5b83\u53ea\u662f\u4e2a\u6d01\u7656\u5f00\u5173\uff0c\u5176\u5b9e\u662f Git 2.35.2 \u8d77\u9488\u5bf9 CVE-2022-24765 \u7684\u4fee\u590d\uff1a\u6076\u610f\u4ed3\u5e93\u53ef\u4ee5\u628a worktree \u653e\u5728\u4f60\u5927\u6982\u7387\u4f1a cd \u8fdb\u53bb\u7684\u4f4d\u7f6e\uff0c\u5e76\u501f\u52a9\u94a9\u5b50\u6216\u522b\u540d\u4ee5\u4f60\u7684\u8eab\u4efd\u6267\u884c\u4ee3\u7801\u3002Git \u56e0\u6b64\u52a0\u4e86\u4e00\u9053\u95e8\u69db\uff0c\u53d1\u73b0\u76ee\u5f55 owner \u4e0e\u8fd0\u884c uid \u4e0d\u4e00\u81f4\u65f6\u76f4\u63a5\u62d2\u7edd\u540e\u7eed\u64cd\u4f5c\uff0c\u76f4\u5230\u4f60\u663e\u5f0f\u628a\u8fd9\u4e9b\u8def\u5f84\u58f0\u660e\u4e3a\u53ef\u4fe1\u4efb\u3002\n\n\u7406\u89e3\u8fd9\u70b9\u80fd\u8ba9\u6392\u67e5\u65b9\u5411\u660e\u786e\u2014\u2014\u51e1\u662f\u89e6\u53d1 \u201cdubious ownership\u201d \u7684\u5730\u65b9\uff0c\u90fd\u8981\u5148\u53bb\u95ee\u201c\u8fd9\u4e2a\u76ee\u5f55\u662f\u7531\u8c01\u521b\u5efa\u7684\u3001\u8c01\u5728\u6253\u5f00\u5b83\u201d\uff0c\u800c\u4e0d\u662f\u5148\u6000\u7591\u7f51\u7edc\u6216\u9274\u6743\u3002\n\n## \u53ea\u52a0\u4e0d\u52a0 safe.directory \u6709\u54ea\u4e9b\u6210\u672c\n\n\u7406\u8bba\u4e0a\u53ef\u4ee5\u76f4\u63a5\u628a `*` \u52a0\u8fdb safe.directory\uff0c\u4e00\u884c\u89e3\u51b3\u3002\u4f46\u8fd9\u662f\u4e00\u4efd\u6301\u7eed\u66b4\u9732\u7684\u98ce\u9669\uff1a\u4e00\u65e6\u6709\u6076\u610f\u4ed3\u5e93\u843d\u5230\u4f60\u653e\u8fdb `*` \u7684\u76ee\u5f55\u4e0b\uff0cCVE \u9632\u62a4\u5c31\u5f62\u540c\u865a\u8bbe\u3002\u53d6\u820d\u901a\u5e38\u843d\u5728\u201c\u58f0\u660e\u5177\u4f53\u76ee\u5f55\u201d\u8fd8\u662f\u201c\u4f9d\u8d56\u5e73\u53f0\u6258\u7ba1\u201d\u4e4b\u95f4\u3002Gitness\u3001Jenkins\u3001GitHub Actions \u548c GitLab Runner \u5bf9 safe.directory \u7684\u9ed8\u8ba4\u5904\u7406\u4e0d\u4e00\u81f4\uff0c\u6240\u4ee5\u6700\u7701\u4e8b\u4f46\u6700\u4e0d\u53ef\u79fb\u690d\u7684\u505a\u6cd5\u53cd\u800c\u6700\u5371\u9669\u2014\u2014\u4e0d\u8981\u5199\u5165\u751f\u4ea7\u955c\u50cf\uff0c\u53ea\u5728\u4e00\u6b21\u6027 CI workspace \u5185\u843d\u5730\u3002\n\n## \u7248\u672c\u4e0e\u517c\u5bb9\u6027\u5c0f\u63d0\u793a\n\n\u95ee\u9898\u5e76\u975e\u6bcf\u4e2a\u89e3\u6790\u5668\u884c\u4e3a\u90fd\u4e00\u6837\uff1a\n\n- Git 2.35.2 - 2.36\uff1b\u5bb9\u5668\u57fa\u7840\u955c\u50cf\u5982\u679c\u505c\u7559\u5728 2.34 \u53ca\u4ee5\u4e0b\uff0c\u770b\u4e0d\u5230\u8be5\u62a5\u9519\uff0c\u4e0d\u4ee3\u8868\u4e0d\u5b58\u5728\u6240\u6709\u6743\u98ce\u9669\u3002\n- Windows Git 2.37 \u901a\u8fc7 ACL \u548c POSIX uid \u53cc\u91cd\u5224\u65ad\uff0c\u8bef\u62a5\u5c11\u4e8e Linux\u3002\n- 2.38 \u4e4b\u540e\u5bf9\u6765\u81ea `safe.directory=` \u7684\u8def\u5f84\u73af\u5883\u53d8\u91cf\u66fe\u505a\u8fc7\u4fee\u6b63\uff0c\u6bd4\u8f83\u590d\u6742\u7684 CI \u573a\u666f\u4f18\u5148\u5347\u7ea7\u5230 2.38.1 \u4ee5\u4e0a\u3002\u6269\u5c55\u9605\u8bfb\u53ef\u53c2\u8003 \u534a\u5c9b\u4f53\u80b2 \u63d0\u4f9b\u7684\u5de5\u5177\u624b\u518c\u5bf9\u7167\u8bf4\u660e\u3002\n\n\u6240\u4ee5\u4e0d\u8981\u53ea\u5bf9\u7167\u7248\u672c\u53f7\u4e0b\u7ed3\u8bba\uff0c\u9700\u4f9d\u636e\u955c\u50cf\u5185 `git --version` \u4e0e uid \u5206\u522b\u5224\u65ad\u3002\n\n## \u6700\u5c0f\u53ef\u4ee5\u8ba9\u6d41\u6c34\u7ebf\u53d8\u7eff\u7684 snippet\n\n\u628a safe.directory \u5199\u5165\u4fe1\u4efb\u4f4d\u7f6e\uff0c\u7136\u540e\u518d\u6b21\u58f0\u660e\u5b83\u88ab\u63a5\u53d7\u3002\u7528 PowerShell \u662f\u56e0\u4e3a\u5fc5\u987b\u5728 Windows Runner \u4e0a\u4e5f\u8dd1\u5f97\u51fa\u8fd9\u5957\u903b\u8f91\uff1a\n\n```powershell\n$repoRoot = Resolve-Path \"$env:WORKSPACE\\src\"\n$repoPath = $repoRoot.Path\nif (Test-Path \"$repoPath\\.git\") {\n    git config --global --add safe.directory $repoPath\n} \n$existing = git config --global --get-all safe.directory\nif ($existing -notcontains $repoPath) {\n    Write-Error \"safe.directory \u672a\u5199\u5165\uff0c\u6784\u5efa\u505c\u6b62\"\n}\ngit -C $repoPath submodule sync --recursive\ngit -C $repoPath submodule update --init --recursive\nWrite-Host \"submodule checkout ok: $repoPath\"\n```\n\n`Resolve-Path` \u662f\u4e3a\u4e86\u6d88\u6389 Windows \u4e0e MSYS \u4e0b\u4e0d\u540c\u7684\u8def\u5f84\u5199\u6cd5\uff1b`submodule update` \u653e\u5728 safe.directory \u4e4b\u540e\u662f\u523b\u610f\u7684\u987a\u5e8f\uff0c\u907f\u514d\u5728\u94a9\u5b50\u9700\u8981\u6253\u5f00 `.gitmodules` \u65f6\u5148\u89e6\u53d1\u540c\u4e00\u62a5\u9519\u3002\n\n## \u4e00\u4e2a\u53ef\u9a8c\u8bc1\u7684\u8f93\u5165\u4e0e\u8f93\u51fa\u56de\u653e\n\n\u5982\u679c\u6000\u7591 git \u5199\u7684 `safe.directory` \u4e0e CI \u8bfb\u53d6\u7684\u914d\u7f6e\u4e0d\u662f\u540c\u4e00\u4efd\uff08\u5e38\u89c1\u5206\u53c9\u7528\u6237\uff09\uff0c\u53ef\u4ee5\u7528\u8fd9\u6bb5\u4ec5 6 \u884c\u7684 HTML \u505a\u8def\u5f84\u5f52\u4e00\u5316\u5bf9\u6bd4\uff1a\n\n```html\n\n\n  \nowner: 1001 / uid: 0\n  \n\n    config-safe: true\n  \n  \nowner: root\n\n```\n\n\u628a\u6bcf\u4e2a\u8def\u5f84\u7247\u6bb5\u6293\u8fdb\u6e32\u67d3\u6d41\u7a0b\uff0c\u80fd\u76f4\u89c2\u770b\u5230 `.git/modules/*` \u7684 owner \u662f\u5426\u88ab\u5ffd\u7565\u3002\u5b9e\u9645 CI \u6267\u884c\u901a\u5e38\u8fd8\u8981\u8fdb\u5bb9\u5668\u91cd\u8dd1 submodule \u624d\u80fd\u9a8c\u8bc1\uff0c\u5149\u6309\u5bf9\u6bd4\u4e0d\u4f1a\u6539\u53d8\u7ed3\u8bba\u3002\n", "url": "https://gist.github.com/lskq2bld8u/bb795073a071503ab519b24986b0ab26"}, {"timestamp": "2026-10-31T14:31:33.136Z", "date_only": false, "value": "2026-10-31T14:31:33.136589Z", "kind": "milestone", "label": "Published", "source": "cleanstart \u00b7 CLEANSTART-2024-IU68706", "record": "CLEANSTART-2024-IU68706", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-11-06T10:42:24Z", "date_only": false, "value": "2026-11-06T10:42:24+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.20-MAIN-GIT", "record": "ALPINE-V3.20-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-06T10:43:01Z", "date_only": false, "value": "2026-11-06T10:43:01+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.19-MAIN-GIT", "record": "ALPINE-V3.19-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-06T10:43:25Z", "date_only": false, "value": "2026-11-06T10:43:25+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.18-MAIN-GIT", "record": "ALPINE-V3.18-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-06T10:43:40Z", "date_only": false, "value": "2026-11-06T10:43:40+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.17-MAIN-GIT", "record": "ALPINE-V3.17-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-06T10:44:09Z", "date_only": false, "value": "2026-11-06T10:44:09+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.16-MAIN-GIT", "record": "ALPINE-V3.16-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-07T05:35:56Z", "date_only": false, "value": "2026-11-07T05:35:56+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-07T05:35:56Z", "date_only": false, "value": "2026-11-07T05:35:56+00:00", "kind": "other", "label": "Document generated", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2026-11-07T05:35:56Z", "date_only": false, "value": "2026-11-07T05:35:56+00:00", "kind": "other", "label": "Updated", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-07T05:39:08Z", "date_only": false, "value": "2026-11-07T05:39:08+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-07T05:39:08Z", "date_only": false, "value": "2026-11-07T05:39:08+00:00", "kind": "other", "label": "Document generated", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2026-11-07T05:39:08Z", "date_only": false, "value": "2026-11-07T05:39:08+00:00", "kind": "other", "label": "Updated", "source": "csaf_redhat \u00b7 RHSA-2023:2859", "record": "RHSA-2023:2859", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-07T05:44:21Z", "date_only": false, "value": "2026-11-07T05:44:21+00:00", "kind": "other", "label": "Advisory revision", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-07T05:44:21Z", "date_only": false, "value": "2026-11-07T05:44:21+00:00", "kind": "other", "label": "Document generated", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "document.tracking.generator.date", "linked_record": true}, {"timestamp": "2026-11-07T05:44:21Z", "date_only": false, "value": "2026-11-07T05:44:21+00:00", "kind": "other", "label": "Updated", "source": "csaf_redhat \u00b7 RHSA-2024:0407", "record": "RHSA-2024:0407", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-12T23:04:58Z", "date_only": false, "value": "2026-11-12T23:04:58+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.21-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.21-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-13T00:12:09Z", "date_only": false, "value": "2026-11-13T00:12:09+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.22-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.22-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-13T08:44:03Z", "date_only": false, "value": "2026-11-13T08:44:03Z", "kind": "other", "label": "Updated", "source": "osv_homebrew \u00b7 BREW-GIT-CVE-2022-24765", "record": "BREW-GIT-CVE-2022-24765", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-15T14:21:44Z", "date_only": false, "value": "2026-11-15T14:21:44Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1260-1", "record": "SUSE-SU-2022:1260-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T14:21:44Z", "date_only": false, "value": "2026-11-15T14:21:44Z", "kind": "other", "label": "Updated", "source": "csaf_suse \u00b7 SUSE-SU-2022:1260-1", "record": "SUSE-SU-2022:1260-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-15T14:22:18Z", "date_only": false, "value": "2026-11-15T14:22:18Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1306-1", "record": "SUSE-SU-2022:1306-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T14:22:18Z", "date_only": false, "value": "2026-11-15T14:22:18Z", "kind": "other", "label": "Updated", "source": "csaf_suse \u00b7 SUSE-SU-2022:1306-1", "record": "SUSE-SU-2022:1306-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-15T14:23:25Z", "date_only": false, "value": "2026-11-15T14:23:25Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:1484-1", "record": "SUSE-SU-2022:1484-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T14:23:25Z", "date_only": false, "value": "2026-11-15T14:23:25Z", "kind": "other", "label": "Updated", "source": "csaf_suse \u00b7 SUSE-SU-2022:1484-1", "record": "SUSE-SU-2022:1484-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-15T14:43:23Z", "date_only": false, "value": "2026-11-15T14:43:23Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:3494-1", "record": "SUSE-SU-2022:3494-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T14:43:23Z", "date_only": false, "value": "2026-11-15T14:43:23Z", "kind": "other", "label": "Updated", "source": "csaf_suse \u00b7 SUSE-SU-2022:3494-1", "record": "SUSE-SU-2022:3494-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-15T14:43:24Z", "date_only": false, "value": "2026-11-15T14:43:24Z", "kind": "other", "label": "Advisory revision", "source": "csaf_suse \u00b7 SUSE-SU-2022:3495-1", "record": "SUSE-SU-2022:3495-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T14:43:24Z", "date_only": false, "value": "2026-11-15T14:43:24Z", "kind": "other", "label": "Updated", "source": "csaf_suse \u00b7 SUSE-SU-2022:3495-1", "record": "SUSE-SU-2022:3495-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-15T19:43:57Z", "date_only": false, "value": "2026-11-15T19:43:57Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12003-1", "record": "OPENSUSE-SU-2024:12003-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T19:43:57Z", "date_only": false, "value": "2026-11-15T19:43:57Z", "kind": "other", "label": "Updated", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12003-1", "record": "OPENSUSE-SU-2024:12003-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-15T19:43:59Z", "date_only": false, "value": "2026-11-15T19:43:59Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12005-1", "record": "OPENSUSE-SU-2024:12005-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T19:43:59Z", "date_only": false, "value": "2026-11-15T19:43:59Z", "kind": "other", "label": "Updated", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12005-1", "record": "OPENSUSE-SU-2024:12005-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-15T19:48:50Z", "date_only": false, "value": "2026-11-15T19:48:50Z", "kind": "other", "label": "Advisory revision", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12223-1", "record": "OPENSUSE-SU-2024:12223-1", "field": "document.tracking.revision_history.2.date", "linked_record": true}, {"timestamp": "2026-11-15T19:48:50Z", "date_only": false, "value": "2026-11-15T19:48:50Z", "kind": "other", "label": "Updated", "source": "csaf_opensuse \u00b7 OPENSUSE-SU-2024:12223-1", "record": "OPENSUSE-SU-2024:12223-1", "field": "document.tracking.current_release_date", "linked_record": true}, {"timestamp": "2026-11-17T01:01:38Z", "date_only": false, "value": "2026-11-17T01:01:38+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.21-MAIN-GIT", "record": "ALPINE-V3.21-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-18T10:57:16Z", "date_only": false, "value": "2026-11-18T10:57:16+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.24-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.24-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-18T12:48:08Z", "date_only": false, "value": "2026-11-18T12:48:08+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.23-COMMUNITY-LIBGIT2", "record": "ALPINE-V3.23-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-18T18:03:36Z", "date_only": false, "value": "2026-11-18T18:03:36+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-EDGE-COMMUNITY-LIBGIT2", "record": "ALPINE-EDGE-COMMUNITY-LIBGIT2", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-19T01:08:16Z", "date_only": false, "value": "2026-11-19T01:08:16+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.22-MAIN-GIT", "record": "ALPINE-V3.22-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-19T01:10:42Z", "date_only": false, "value": "2026-11-19T01:10:42+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.23-MAIN-GIT", "record": "ALPINE-V3.23-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-19T03:34:56Z", "date_only": false, "value": "2026-11-19T03:34:56+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-EDGE-MAIN-GIT", "record": "ALPINE-EDGE-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-19T04:06:27Z", "date_only": false, "value": "2026-11-19T04:06:27+00:00", "kind": "other", "label": "Updated", "source": "alpine \u00b7 ALPINE-V3.24-MAIN-GIT", "record": "ALPINE-V3.24-MAIN-GIT", "field": "modified", "linked_record": true}, {"timestamp": "2026-11-19T13:02:31.384Z", "date_only": false, "value": "2026-11-19T13:02:31.384564+00:00", "kind": "other", "label": "Updated", "source": "debian_tracker \u00b7 DEBIAN-CVE-2022-24765", "record": "DEBIAN-CVE-2022-24765", "field": "modified", "linked_record": true}], "metrics": {"as_of": "2026-11-23T12:35:13.435Z", "anchors": {"origin": {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, "discovery": {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, "report": null, "acknowledgement": null, "disclosure": {"timestamp": "2022-04-12T00:00:00Z", "date_only": false, "value": "2022-04-12T00:00:00.000Z", "kind": "milestone", "label": "Published", "source": "cvelistv5", "record": "CVE-2022-24765", "field": "cveMetadata.datePublished", "metric_role": "disclosure", "metric_basis": "recorded_event"}, "exploit_publication": {"timestamp": "2022-04-14T09:53:26Z", "date_only": false, "value": "2022-04-14T09:53:26.000000Z", "kind": "sighting", "label": "Published proof of concept", "source": "https://t.me/cKure/9345", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "36bea4c0-26c5-4d99-ac22-ceca7055c98d", "content": "\u25a0\u25a0\u25a1\u25a1\u25a1 CVE-2022-24765: This vulnerability affects users working on multi-user machines where a malicious actor could create a .git directory in a shared location above a victim\u2019s current working directory. On Windows, for example, an attacker could create C:\\.git\\config, which would cause all git invocations that occur outside of a repository to read its configured values.\n\nhttps://github.blog/2022-04-12-git-security-vulnerability-announced/", "url": "https://t.me/cKure/9345", "metric_role": "exploit_publication", "metric_basis": "sighting_report"}, "exploitation": null, "patch": {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}}, "vendor_response_time": {"available": false, "missing": ["start", "end"]}, "time_to_exploit": {"available": false, "missing": ["end"]}, "disclosure_to_exploit": {"available": false, "missing": ["end"]}, "disclosure_to_exploit_publication": {"available": true, "seconds": 208406.0, "hours": 57.89055555555556, "days": 2.4121064814814814, "min_seconds": 122006.0, "max_seconds": 208406.0, "approximate": true, "ongoing": false, "order_known": true, "batch_listing": false, "end_before_start": false, "start": {"timestamp": "2022-04-12T00:00:00Z", "date_only": false, "value": "2022-04-12T00:00:00.000Z", "kind": "milestone", "label": "Published", "source": "cvelistv5", "record": "CVE-2022-24765", "field": "cveMetadata.datePublished", "metric_role": "disclosure", "metric_basis": "recorded_event"}, "end": {"timestamp": "2022-04-14T09:53:26Z", "date_only": false, "value": "2022-04-14T09:53:26.000000Z", "kind": "sighting", "label": "Published proof of concept", "source": "https://t.me/cKure/9345", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "36bea4c0-26c5-4d99-ac22-ceca7055c98d", "content": "\u25a0\u25a0\u25a1\u25a1\u25a1 CVE-2022-24765: This vulnerability affects users working on multi-user machines where a malicious actor could create a .git directory in a shared location above a victim\u2019s current working directory. On Windows, for example, an attacker could create C:\\.git\\config, which would cause all git invocations that occur outside of a repository to read its configured values.\n\nhttps://github.blog/2022-04-12-git-security-vulnerability-announced/", "url": "https://t.me/cKure/9345", "metric_role": "exploit_publication", "metric_basis": "sighting_report"}}, "time_to_patch": {"available": false, "missing": ["start"]}, "total_time_to_patch": {"available": true, "seconds": 34250584.0, "hours": 9514.051111111112, "days": 396.4187962962963, "min_seconds": 34164184.0, "max_seconds": 34250584.0, "approximate": true, "ongoing": false, "order_known": true, "batch_listing": false, "end_before_start": false, "start": {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, "end": {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}, "discovery_after_disclosure": false}, "disclosure_to_patch": {"available": true, "seconds": 33904984.0, "hours": 9418.051111111112, "days": 392.4187962962963, "min_seconds": 33818584.0, "max_seconds": 33904984.0, "approximate": true, "ongoing": false, "order_known": true, "batch_listing": false, "end_before_start": false, "start": {"timestamp": "2022-04-12T00:00:00Z", "date_only": false, "value": "2022-04-12T00:00:00.000Z", "kind": "milestone", "label": "Published", "source": "cvelistv5", "record": "CVE-2022-24765", "field": "cveMetadata.datePublished", "metric_role": "disclosure", "metric_basis": "recorded_event"}, "end": {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}}, "time_unpatched": {"available": true, "seconds": 34250584.0, "hours": 9514.051111111112, "days": 396.4187962962963, "min_seconds": 34164184.0, "max_seconds": 34250584.0, "approximate": true, "ongoing": false, "order_known": true, "batch_listing": false, "end_before_start": false, "start": {"timestamp": "2022-04-08T00:00:00Z", "date_only": false, "value": "2022-04-08T00:00:00+00:00", "kind": "other", "label": "Discovery date", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.discovery_date", "metric_role": "discovery", "metric_basis": "recorded_event", "linked_record": true}, "end": {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}}, "exploitation_to_patch": {"available": false, "missing": ["start"]}, "exploit_publication_to_patch": {"available": true, "seconds": 33696578.0, "hours": 9360.160555555556, "days": 390.0066898148148, "min_seconds": 33696578.0, "max_seconds": 33696578.0, "approximate": false, "ongoing": false, "order_known": true, "batch_listing": false, "end_before_start": false, "start": {"timestamp": "2022-04-14T09:53:26Z", "date_only": false, "value": "2022-04-14T09:53:26.000000Z", "kind": "sighting", "label": "Published proof of concept", "source": "https://t.me/cKure/9345", "record": "CVE-2022-24765", "field": "creation_timestamp", "uuid": "36bea4c0-26c5-4d99-ac22-ceca7055c98d", "content": "\u25a0\u25a0\u25a1\u25a1\u25a1 CVE-2022-24765: This vulnerability affects users working on multi-user machines where a malicious actor could create a .git directory in a shared location above a victim\u2019s current working directory. On Windows, for example, an attacker could create C:\\.git\\config, which would cause all git invocations that occur outside of a repository to read its configured values.\n\nhttps://github.blog/2022-04-12-git-security-vulnerability-announced/", "url": "https://t.me/cKure/9345", "metric_role": "exploit_publication", "metric_basis": "sighting_report"}, "end": {"timestamp": "2023-05-09T10:03:04Z", "date_only": false, "value": "2023-05-09T10:03:04+00:00", "kind": "other", "label": "Vendor fix", "source": "csaf_redhat \u00b7 RHSA-2023:2319", "record": "RHSA-2023:2319", "field": "vulnerabilities.0.remediations.0.date", "metric_role": "patch", "metric_basis": "recorded_event", "linked_record": true}}}}
