)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"8c7145a50244d1e547f757167a92962b95917d84","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":5,"id":"c8fbc570_f4e86660","updated":"2026-11-03 15:49:03.000000000","message":"Pasting here Sashiko\u0027s findings (the AI bot accidentally picked this patch for review):\n\n```\nThank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:\n- [Medium] sample/management: inconsistent sync and awaited calls to queue_command()\n- [Medium] sample/management: dpc_completed not reset or tracked per kid on REAUTH\n- [Medium] sample/management: missing omi_tools and protocol modules in demo scripts\n- [Low] sample/management: DpcConnectedClient uses field() without @dataclass\n- [Low] sample/management: non-executable mode 0644 and header errors in demo scripts\n--\n\ncommit 62ec41043b0ac3e7de9a64fa8a8139f0cf01f720\nAuthor: Arne Schwabe (Code Review) via Openvpn-devel \u003copenvpn-devel@lists.sourceforge.net\u003e\n\nChange in openvpn[master]: Add python scripts that demonstrate using the dpc1 ACC protocol\n\nThis commit adds client and server Python demonstration scripts for the\nOpenVPN management interface and the dpc1 app custom control protocol.\n\n\u003e diff --git a/sample/management/acc_dpc1_client_demo.py b/sample/management/acc_dpc1_client_demo.py\n\u003e new file mode 100755\n\u003e index 0000000000000..1ae074d5c31a9\n\u003e --- /dev/null\n\u003e +++ b/sample/management/acc_dpc1_client_demo.py\n\u003e @@ -0,0 +1,114 @@\n\n[ ... ]\n\n\u003e +# This implements a small demonstration of using the\n\u003e +# OpenVPN Access Server Management Interface (OMI) and an app Custom Control\n\u003e +# protocol (dpc1). To use this use on the client use\n\u003e +\n\u003e +# --management-client-auth\n\u003e +# --app-custom-control dpc1\n\u003e +# --management /path/to/acc_dpc1_client_demo.py unix-script\n\u003e +\n\u003e +import base64\n\u003e +import json\n\u003e +import logging\n\u003e +import platform\n\u003e +from asyncio import CancelledError, Future\n\u003e +\n\u003e +logging.basicConfig()\n\u003e +\n\u003e +from omi_tools import run_main, start_management_protocol, ConnectData\n\u003e +from omi_client_protocol import OMIClientProtocol\n\n[Severity: Medium]\nAre the omi_tools, omi_client_protocol, and omi_server_protocol modules\nmissing from this commit?\n\nNeither sample/management/ nor the rest of the repository contains\nomi_tools.py, omi_client_protocol.py, or omi_server_protocol.py, so running\neither acc_dpc1_client_demo.py or acc_dpc1_server_demo.py fails immediately at\nstartup with ModuleNotFoundError.\n\n[ ... ]\n\n\u003e --- /dev/null\n\u003e +++ b/sample/management/acc_dpc1_server_demo.py\n\u003e @@ -0,0 +1,157 @@\n\u003e +#!/usr/bin/env python3\n\u003e +# Copyright (c) 2026 OpenVPN Inc \u003csales@openvpn.net\u003e\n\u003e +# Copyright (c) 2026 Arne Schwabe \u003carne@rfc2549.org\u003e\n\u003e +#\n\u003e +# Permission is hereby granted, free of charge, to any person obtaining a copy\n\u003e +# of this software and associated documentation files (the \"Software\"), to deal\n\u003e +# in the Software without restriction, including without limitation the rights\n\u003e +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\u003e +# copies of the Software, and to permit persons to whom the Software is\n\u003e +# furnished to do so, subject to the following conditions:\n\u003e +#\n\u003e +# The above copyright notice and this permission notice shall be included in all\n\u003e +# copies or substantial portions of the Software.\n\u003e +#\n\u003e +# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\u003e +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\u003e +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\u003e +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\u003e +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\u003e +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\u003e +# SOFTWARE.\n\u003e +\n\u003e +#\n\u003e +#  You should have received a copy of the GNU General Public License along\n\u003e +#  with this program; if not, see \u003chttps://www.gnu.org/licenses/\u003e.\n\u003e +\n\u003e +# This implements a small demonstration of using the\n\u003e +# OpenVPN Access Server Management Interface (OMI) and an app Custom Control\n\u003e +# protocol (dpc1). To use this use on the server\n\u003e +\n\u003e +# --management-client-auth\n\u003e +# --app-custom-control dpc1\n\u003e +# --management /path/to/acc_dpc1_server_demo.py unix-script\n\n[Severity: Low]\nShould sample/management/acc_dpc1_server_demo.py be committed with executable\nfile mode 100755 instead of 100644?\n\nBecause the usage instructions specify running it via --management\n/path/to/acc_dpc1_server_demo.py unix-script, invoking it directly without\nexecutable permissions fails with permission denied.\n\nAlso, in the headers of these two scripts:\n- acc_dpc1_server_demo.py has a stray GNU General Public License paragraph\n  immediately following the MIT license header.\n- acc_dpc1_client_demo.py instructs passing --management-client-auth on the\n  client, which OpenVPN rejects because it is a server-only option.\n\n[ ... ]\n\n\u003e +class DpcConnectedClient(ConnectedClient):\n\u003e +    # Remember the key-id that we authenticated\n\u003e +    dpc_completed: bool \u003d False\n\u003e +    env: Dict[str, str] \u003d field(default_factory\u003ddict)\n\n[Severity: Low]\nIs DpcConnectedClient missing the @dataclass decorator?\n\nIn Python, a subclass is not processed by the dataclasses module unless the\nsubclass itself is decorated with @dataclass. Without @dataclass on\nDpcConnectedClient, env \u003d field(default_factory\u003ddict) is not initialized to a\nper-instance dict upon instantiation and instead remains a raw\ndataclasses.Field descriptor object on the class until overwritten by\nclient_event_CONNECT() or client_event_REAUTH().\n\n\u003e +\n\u003e +\n\u003e +class OmiDPCServerProtocol(OMIServerProtocol):\n\u003e +    def __init__(self, finish_future: Future, connect_data: ConnectData):\n\u003e +        super().__init__(finish_future, connect_data)\n\u003e +        self._connected_client_class \u003d DpcConnectedClient\n\u003e +\n\u003e +    def receive_acc_client_dpc1(self, client: DpcConnectedClient, kid: int, acc_message: str):\n\u003e +        print(f\"Received DPC1 message: {acc_message!r}\")\n\u003e +        msg \u003d json.loads(acc_message)\n\u003e +        pprint(msg)\n\u003e +\n\u003e +        dpc_response \u003d msg[\"dpc_response\"]\n\u003e +        ver \u003d dpc_response[\"ver\"]\n\u003e +        if ver !\u003d \"1.0\":\n\u003e +            logger.error(f\"Received unknown ACC protocol version: {ver}\")\n\u003e +            return\n\u003e +\n\u003e +        client_info \u003d dpc_response.get(\"client_info\", {})\n\u003e +        antivirus \u003d \"antivirus\" in dpc_response\n\u003e +        disk_encryption \u003d \"disk_encryption\" in dpc_response\n\u003e +\n\u003e +        logger.info(\n\u003e +            f\"Received DPC1 response: antivirus\u003d{antivirus}, disk_encryption\u003d{disk_encryption}, client_info\u003d{client_info}\")\n\u003e +\n\u003e +        # Normally here would be a check that the response matches the policy\n\u003e +        # this demo script just allows everyone with a response to pass\n\u003e +        client.dpc_completed \u003d True\n\u003e +\n\u003e +        self.queue_command(f\"client-auth-nt {client.cid} {kid}\")\n\u003e +\n\u003e +    async def dpc_request_timeout(self, client: DpcConnectedClient, kid: int, timeout: int):\n\u003e +        await asyncio.sleep(timeout)\n\u003e +        if client.dpc_completed:\n\u003e +            return\n\u003e +\n\u003e +        client_deny \u003d f\u0027client-deny {client.cid} {kid} \"dpc1 timeout\" \"Timeout on device posture\"\u0027\n\u003e +        await self.queue_command(client_deny)\n\n[Severity: Medium]\nShould self.queue_command() be called consistently as either a synchronous\nmethod or an awaited coroutine across both scripts?\n\nIn OmiDPCServerProtocol, check_client_posture(), dpc_request_timeout(), and\nsend_client_deny_no_dpc1() all use await self.queue_command(...):\n\n    await self.queue_command(client_deny)\n\nHowever, OmiDPCServerProtocol.receive_acc_client_dpc1() and\nOmiDpc1ClientProtocol._send_dpc1_client_info() (in acc_dpc1_client_demo.py)\nare synchronous methods and call self.queue_command(...) without await:\n\n    self.queue_command(f\"client-auth-nt {client.cid} {kid}\")\n\n    command \u003d f\"acc-msg\\ndpc1\\n6\\n{b64msg}\\nEND\"\n    self.queue_command(command)\n\nIf queue_command() is an async coroutine, the unawaited calls in\nreceive_acc_client_dpc1() and _send_dpc1_client_info() create coroutine\nobjects that are never executed, silently dropping both the client posture\nresponse and the server client-auth-nt command. Conversely, if queue_command()\nis a regular synchronous function returning None, awaiting it in\ncheck_client_posture(), dpc_request_timeout(), and send_client_deny_no_dpc1()\nraises a TypeError at runtime.\n\n\u003e +\n\u003e +    def client_event_ESTABLISHED(self, client: DpcConnectedClient, kid: int, env: dict, extra: str):\n\u003e +        print(f\"CLient connected: {client}\")\n\u003e +\n\u003e +    async def send_client_deny_no_dpc1(self, client: DpcConnectedClient, kid: int):\n\u003e +        client_reason \u003d \"ACC[protocol dpc1]: To connect to this server you \" \\\n\u003e +                        \"need to upgrade to a client that supports the \" \\\n\u003e +                        \"OpenVPN Inc device posture protocol and has it \" \\\n\u003e +                        \"enabled, e.g. OpenVPN for Android, openvpn3-linux, \" \\\n\u003e +                        \"or OpenVPN Connect\"\n\u003e +        client_deny \u003d f\u0027client-deny {client.cid} {kid} \"no dpc1 support\" \"{client_reason}\"\u0027\n\u003e +        await self.queue_command(client_deny)\n\u003e +\n\u003e +    def client_event_CONNECT(self, client: DpcConnectedClient, kid: int, env: dict, extra: str):\n\u003e +        print(f\"Authenticating client {client}, {kid}, protos: {client.acc_negotiated_protocols}\")\n\u003e +        client.env \u003d env\n\u003e +        asyncio.create_task(self.check_client_posture(client, kid))\n\u003e +\n\u003e +    def client_event_REAUTH(self, client: DpcConnectedClient, kid: int, env: dict, extra: str):\n\u003e +        print(f\"Re-authenticating client {client}, {kid}, protos: {client.acc_negotiated_protocols}\")\n\u003e +        client.env \u003d env\n\u003e +        # Check client posture again on renegotiation\n\u003e +        asyncio.create_task(self.check_client_posture(client, kid))\n\u003e +\n\u003e +    async def check_client_posture(self, client: DpcConnectedClient, kid: int):\n\u003e +        await self.queue_command(\n\u003e +            f\"client-pending-auth {client.cid} {kid} \\\"NOTIFY::Checking your device posture, please wait\\\" 180\")\n\u003e +\n\u003e +        await self.queue_command(f\"client-pending-auth {client.cid} {kid} ACC 180\")\n\u003e +        # In this example we wait for 20 seconds to simulate a posture check on the server\n\u003e +        await asyncio.sleep(20)\n\u003e +\n\u003e +        if \"dpc1\" not in client.acc_negotiated_protocols:\n\u003e +            await self.send_client_deny_no_dpc1(client, kid)\n\u003e +            return\n\u003e +\n\u003e +        dpc_cmd \u003d {\"dpc_request\": {\"ver\": \"1.0\", \"correlation_id\": \"n/a\", \"timestamp\": \"yesterday\", \"client_info\": True,\n\u003e +                                   \"disk_encryption\": {\"full\": True}, \"antivirus\": {}}}\n\u003e +\n\u003e +        dpc_cmd_str \u003d json.dumps(dpc_cmd)\n\u003e +        acc_protocol \u003d \"dpc1\"\n\u003e +\n\u003e +        await self.send_acc_msg(client, kid, acc_protocol, dpc_cmd_str.encode())\n\u003e +        asyncio.create_task(self.dpc_request_timeout(client, kid, 60))\n\n[Severity: Medium]\nDoes keeping a single boolean client.dpc_completed without resetting it or\ntracking the key-id break posture timeouts on renegotiation?\n\nWhen a client connects via client_event_CONNECT() and responds to the initial\nposture check, receive_acc_client_dpc1() sets:\n\n    client.dpc_completed \u003d True\n\nWhen the client later renegotiates via client_event_REAUTH() with a new kid,\ncheck_client_posture() is spawned without resetting client.dpc_completed, and\nschedules dpc_request_timeout(client, kid, 60). If the client never responds\nto the renegotiation posture request, dpc_request_timeout() sees\nclient.dpc_completed is still True from the initial connection and returns\nearly without sending client-deny.\n\nIn addition, because posture completion is not tracked per kid and the tasks\ncreated with asyncio.create_task() in client_event_CONNECT(),\nclient_event_REAUTH(), and check_client_posture() are not tracked or canceled,\noverlapping posture checks or unsolicited responses during the 20-second delay\nin check_client_posture() can race on client.dpc_completed.\n\n-- \nSashiko AI review · https://sashiko.dev/#/patchset/24699879debec5f95ada94bb416c09306a52b09c-EmailReplacePatchSet-HTML@gerrit.openvpn.net?part\u003d1\n```","commit_id":"45fb330724493f03fbc54f182f6fea53283f1a5d"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"7e0ba0e4c60da9dc8b892e3b8256b76e5de500bb","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"42df60b5_5af3a98c","in_reply_to":"c8fbc570_f4e86660","updated":"2026-11-03 19:37:56.000000000","message":"Done","commit_id":"45fb330724493f03fbc54f182f6fea53283f1a5d"},{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"09f8e405a1f833b91fa7b18239eeaff091246bb2","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":7,"id":"f74ecba9_81aee414","updated":"2026-11-05 07:32:03.000000000","message":"https://sashiko.dev/#/patchset/fe5214e4b0c74321f906d962fed3264091f1f2fa-EmailReplacePatchSet-HTML@gerrit.openvpn.net?part\u003d1","commit_id":"2eab5e0e8841fc61017933bfe62d7386c7f3de94"},{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"29d4c98a0a0ca91b3a08a49fc73ea92246190e7f","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":8,"id":"1b2034b1_4102582b","updated":"2026-11-05 17:28:38.000000000","message":"https://sashiko.dev/#/patchset/67d1d819918ba106750d9248c7e7a1d89e0ba088-EmailReplacePatchSet-HTML@gerrit.openvpn.net?part\u003d1","commit_id":"6e50bb1d2c9a151a25a3ebdec30e88c37bd787f5"},{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"ad85dafffd5d3671b92d7dc461524c0bc5e98fd7","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":8,"id":"a4b64406_e7a81668","in_reply_to":"1b2034b1_4102582b","updated":"2026-11-05 17:34:39.000000000","message":"Sorry, this is for the other patch (2037). Got confused by the similar names.\n\nThis is the right link: https://sashiko.dev/#/patchset/88655f5ac15a8d9e5b463d616eff63ce4fb9445d-EmailReplacePatchSet-HTML@gerrit.openvpn.net?part\u003d1","commit_id":"6e50bb1d2c9a151a25a3ebdec30e88c37bd787f5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"bd6b14d1885a5af894b57a1a4a8ee4ed38e49e2f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"6a43465a_0820f193","in_reply_to":"a4b64406_e7a81668","updated":"2026-11-06 11:15:48.000000000","message":"Thanks I addressed all that is in this report. Sashiko will probably report again since it does not see this as patch series for the first comment and the second we don\u0027t care about the condition that Sashiko cares about.","commit_id":"6e50bb1d2c9a151a25a3ebdec30e88c37bd787f5"}],"sample/management/acc_dpc1_client_demo.py":[{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":23,"context_line":"#"},{"line_number":24,"context_line":"#  You should have received a copy of the GNU General Public License along"},{"line_number":25,"context_line":"#  with this program; if not, see \u003chttps://www.gnu.org/licenses/\u003e."},{"line_number":26,"context_line":"import asyncio"},{"line_number":27,"context_line":"import base64"},{"line_number":28,"context_line":"import json"},{"line_number":29,"context_line":"import logging"}],"source_content_type":"text/x-python","patch_set":4,"id":"948de9d4_f5f700ba","line":26,"updated":"2026-11-02 09:36:26.000000000","message":"Unused import?","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":23,"context_line":"#"},{"line_number":24,"context_line":"#  You should have received a copy of the GNU General Public License along"},{"line_number":25,"context_line":"#  with this program; if not, see \u003chttps://www.gnu.org/licenses/\u003e."},{"line_number":26,"context_line":"import asyncio"},{"line_number":27,"context_line":"import base64"},{"line_number":28,"context_line":"import json"},{"line_number":29,"context_line":"import logging"}],"source_content_type":"text/x-python","patch_set":4,"id":"af32fec6_38f9bf89","line":26,"in_reply_to":"948de9d4_f5f700ba","updated":"2026-11-02 16:40:12.000000000","message":"Done","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"logger \u003d logging.getLogger(__name__)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class OmiAccProtocol(OmiProtocol):"},{"line_number":38,"context_line":"    def __init__(self, finish_future, connect_data:ConnectData):"},{"line_number":39,"context_line":"        super().__init__(finish_future, connect_data)"},{"line_number":40,"context_line":"        self.accmsg \u003d \"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"cd76ff1a_5aff7b5f","line":37,"updated":"2026-11-02 09:36:26.000000000","message":"Shouldn\u0027t be OMIClientProtocol + receive_acc_dpc1 ?","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"logger \u003d logging.getLogger(__name__)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class OmiAccProtocol(OmiProtocol):"},{"line_number":38,"context_line":"    def __init__(self, finish_future, connect_data:ConnectData):"},{"line_number":39,"context_line":"        super().__init__(finish_future, connect_data)"},{"line_number":40,"context_line":"        self.accmsg \u003d \"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"079c2400_c53f19ec","line":37,"in_reply_to":"cd76ff1a_5aff7b5f","updated":"2026-11-02 16:40:12.000000000","message":"Acknowledged","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":37,"context_line":"class OmiAccProtocol(OmiProtocol):"},{"line_number":38,"context_line":"    def __init__(self, finish_future, connect_data:ConnectData):"},{"line_number":39,"context_line":"        super().__init__(finish_future, connect_data)"},{"line_number":40,"context_line":"        self.accmsg \u003d \"\""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def recv_notify_ACC(self, args):"},{"line_number":43,"context_line":"        # dpc1,0,eyJkcGNfcmVx[...]"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf720054_4a733cf4","line":40,"updated":"2026-11-02 09:36:26.000000000","message":"Do we need it in class? It looks like a variable only in recv_notify_ACC...? Ahh we can have fragments so we need it, right?","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":37,"context_line":"class OmiAccProtocol(OmiProtocol):"},{"line_number":38,"context_line":"    def __init__(self, finish_future, connect_data:ConnectData):"},{"line_number":39,"context_line":"        super().__init__(finish_future, connect_data)"},{"line_number":40,"context_line":"        self.accmsg \u003d \"\""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def recv_notify_ACC(self, args):"},{"line_number":43,"context_line":"        # dpc1,0,eyJkcGNfcmVx[...]"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf7e29ec_055c99fc","line":40,"in_reply_to":"bf720054_4a733cf4","updated":"2026-11-02 16:40:12.000000000","message":"Done","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":53,"context_line":"        if fragment !\u003d \"0\":"},{"line_number":54,"context_line":"            return"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        self.parseDpc1(self.accmsg)"},{"line_number":57,"context_line":"        self.accmsg \u003d \"\""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def parseDpc1(self, accmsg):"}],"source_content_type":"text/x-python","patch_set":4,"id":"6b553e57_49060f01","line":56,"updated":"2026-11-02 09:36:26.000000000","message":"should be snake_case instead of camelCase","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        if fragment !\u003d \"0\":"},{"line_number":54,"context_line":"            return"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        self.parseDpc1(self.accmsg)"},{"line_number":57,"context_line":"        self.accmsg \u003d \"\""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def parseDpc1(self, accmsg):"}],"source_content_type":"text/x-python","patch_set":4,"id":"f7271cdf_219e7f5f","line":56,"in_reply_to":"6b553e57_49060f01","updated":"2026-11-02 16:40:12.000000000","message":"Done","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":59,"context_line":"    def parseDpc1(self, accmsg):"},{"line_number":60,"context_line":"        msg \u003d json.loads(accmsg)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        logger.error(f\"Received sys_info message: {accmsg}\")"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        dpc_request \u003d msg[\"dpc_request\"]"},{"line_number":65,"context_line":"        ver \u003d dpc_request[\"ver\"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"46a55498_7af227f4","line":62,"updated":"2026-11-02 09:36:26.000000000","message":"error?","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def parseDpc1(self, accmsg):"},{"line_number":60,"context_line":"        msg \u003d json.loads(accmsg)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        logger.error(f\"Received sys_info message: {accmsg}\")"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        dpc_request \u003d msg[\"dpc_request\"]"},{"line_number":65,"context_line":"        ver \u003d dpc_request[\"ver\"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"96baa7e8_05348f05","line":62,"in_reply_to":"46a55498_7af227f4","updated":"2026-11-02 16:40:12.000000000","message":"Done","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":76,"context_line":"        if client_info:"},{"line_number":77,"context_line":"            self._sendDPC1ClientInfo()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def _sendDPC1ClientInfo(self):"},{"line_number":80,"context_line":"        system \u003d platform.system()"},{"line_number":81,"context_line":"        if system \u003d\u003d \"Darwin\":"},{"line_number":82,"context_line":"            system \u003d \"MacOS\""}],"source_content_type":"text/x-python","patch_set":4,"id":"d19d8e82_3f627c36","line":79,"updated":"2026-11-02 09:36:26.000000000","message":"should be snake_case instead of camelCase","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        if client_info:"},{"line_number":77,"context_line":"            self._sendDPC1ClientInfo()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def _sendDPC1ClientInfo(self):"},{"line_number":80,"context_line":"        system \u003d platform.system()"},{"line_number":81,"context_line":"        if system \u003d\u003d \"Darwin\":"},{"line_number":82,"context_line":"            system \u003d \"MacOS\""}],"source_content_type":"text/x-python","patch_set":4,"id":"172dbfe4_11b5cfb6","line":79,"in_reply_to":"d19d8e82_3f627c36","updated":"2026-11-02 16:40:12.000000000","message":"Done","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"1d683b5b9d3335e3de51328bffa65c6ffcecce39","unresolved":true,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        response \u003d {"},{"line_number":85,"context_line":"            \"dpc_response\": {"},{"line_number":86,"context_line":"                \"ver\": \"1.0\","},{"line_number":87,"context_line":"                \"client_info\": {"},{"line_number":88,"context_line":"                    \"os\": {"},{"line_number":89,"context_line":"                        \"type\": system,"}],"source_content_type":"text/x-python","patch_set":4,"id":"e8c3d033_8e84a97e","line":86,"updated":"2026-11-04 09:14:03.000000000","message":"missing correlation_id and timestamp","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"bd6b14d1885a5af894b57a1a4a8ee4ed38e49e2f","unresolved":true,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        response \u003d {"},{"line_number":85,"context_line":"            \"dpc_response\": {"},{"line_number":86,"context_line":"                \"ver\": \"1.0\","},{"line_number":87,"context_line":"                \"client_info\": {"},{"line_number":88,"context_line":"                    \"os\": {"},{"line_number":89,"context_line":"                        \"type\": system,"}],"source_content_type":"text/x-python","patch_set":4,"id":"bb3a1073_507679ea","line":86,"in_reply_to":"e8c3d033_8e84a97e","updated":"2026-11-06 11:15:48.000000000","message":"They are not really needed by Connexa. It works fine without them.","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"}],"sample/management/acc_dpc1_server_demo.py":[{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":49,"context_line":"logger \u003d logging.getLogger(__name__)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"class DpcConnectedClient(ConnectedClient):"},{"line_number":53,"context_line":"    # Remember the key-id that we authenticated"},{"line_number":54,"context_line":"    dpc_completed \u003d False"},{"line_number":55,"context_line":"    env \u003d {}"}],"source_content_type":"text/x-python","patch_set":4,"id":"76b6fec2_aaf99cf4","line":52,"updated":"2026-11-02 09:36:26.000000000","message":"Missing typing","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":49,"context_line":"logger \u003d logging.getLogger(__name__)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"class DpcConnectedClient(ConnectedClient):"},{"line_number":53,"context_line":"    # Remember the key-id that we authenticated"},{"line_number":54,"context_line":"    dpc_completed \u003d False"},{"line_number":55,"context_line":"    env \u003d {}"}],"source_content_type":"text/x-python","patch_set":4,"id":"aafbd8a1_f22becba","line":52,"in_reply_to":"76b6fec2_aaf99cf4","updated":"2026-11-02 16:40:12.000000000","message":"Done","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"1d683b5b9d3335e3de51328bffa65c6ffcecce39","unresolved":true,"context_lines":[{"line_number":65,"context_line":"        msg \u003d json.loads(accmsg)"},{"line_number":66,"context_line":"        pprint(msg)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"        dpc_response \u003d msg[\"dpc_response\"]"},{"line_number":69,"context_line":"        ver \u003d dpc_response[\"ver\"]"},{"line_number":70,"context_line":"        if ver !\u003d \"1.0\":"},{"line_number":71,"context_line":"            logger.error(f\"Received unknown ACC protocol version: {ver}\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"ce361a79_aeb3e62c","line":68,"updated":"2026-11-04 09:14:03.000000000","message":"Shouldn\u0027t we accept only response with the same correlation_id as request?","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"bd6b14d1885a5af894b57a1a4a8ee4ed38e49e2f","unresolved":true,"context_lines":[{"line_number":65,"context_line":"        msg \u003d json.loads(accmsg)"},{"line_number":66,"context_line":"        pprint(msg)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"        dpc_response \u003d msg[\"dpc_response\"]"},{"line_number":69,"context_line":"        ver \u003d dpc_response[\"ver\"]"},{"line_number":70,"context_line":"        if ver !\u003d \"1.0\":"},{"line_number":71,"context_line":"            logger.error(f\"Received unknown ACC protocol version: {ver}\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"7105021e_bfc3552b","line":68,"in_reply_to":"ce361a79_aeb3e62c","updated":"2026-11-06 11:15:48.000000000","message":"I never understood why we need the correlation id in the first place. The correlation id is also not something that is unique per message but rather all messages to a client have the same correlation id since that apparently helps Connexa to track that in their backend architecture.\n\nAnd if all messages to a client have the same id, I don\u0027t see the point in checking if the client echos it back correctly in this example script.","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"8f4244dba895408404aa9cd48780df96f6e8c94b","unresolved":true,"context_lines":[{"line_number":114,"context_line":"        await self.queue_command(f\"client-pending-auth {client.cid} {kid} \\\"NOTIFY::Checking your device posture, please wait\\\" 180\")"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        await self.queue_command(f\"client-pending-auth {client.cid} {kid} ACC 180\")"},{"line_number":117,"context_line":"        await asyncio.sleep(20)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        if \"dpc1\" not in client.acc_negotiated_protocols:"},{"line_number":120,"context_line":"            await self.send_client_deny_no_dpc1(client, kid)"}],"source_content_type":"text/x-python","patch_set":4,"id":"906666c0_f42bb8a1","line":117,"updated":"2026-11-02 09:36:26.000000000","message":"Why we need it? If we need maybe we can add comment?","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f8f325d241853a78764656eb0a43205fc4a87a1a","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        await self.queue_command(f\"client-pending-auth {client.cid} {kid} \\\"NOTIFY::Checking your device posture, please wait\\\" 180\")"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        await self.queue_command(f\"client-pending-auth {client.cid} {kid} ACC 180\")"},{"line_number":117,"context_line":"        await asyncio.sleep(20)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        if \"dpc1\" not in client.acc_negotiated_protocols:"},{"line_number":120,"context_line":"            await self.send_client_deny_no_dpc1(client, kid)"}],"source_content_type":"text/x-python","patch_set":4,"id":"85f62847_0931a657","line":117,"in_reply_to":"906666c0_f42bb8a1","updated":"2026-11-02 16:40:12.000000000","message":"Done","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"1d683b5b9d3335e3de51328bffa65c6ffcecce39","unresolved":true,"context_lines":[{"line_number":120,"context_line":"            await self.send_client_deny_no_dpc1(client, kid)"},{"line_number":121,"context_line":"            return"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        dpc_cmd \u003d {\"dpc_request\": {\"ver\": \"1.0\", \"correlation_id\": \"n/a\", \"timestamp\": \"yesterday\", \"client_info\": True,"},{"line_number":124,"context_line":"                                       \"disk_encryption\": {\"full\": True}, \"antivirus\": {}}}"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        dpc_cmd_str \u003d json.dumps(dpc_cmd)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7dac9071_179da6ee","line":123,"updated":"2026-11-04 09:14:03.000000000","message":"timestamp shouldn\u0027t be real timestamp? correlation_id shouldn\u0027t be real uuid?","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"bd6b14d1885a5af894b57a1a4a8ee4ed38e49e2f","unresolved":true,"context_lines":[{"line_number":120,"context_line":"            await self.send_client_deny_no_dpc1(client, kid)"},{"line_number":121,"context_line":"            return"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        dpc_cmd \u003d {\"dpc_request\": {\"ver\": \"1.0\", \"correlation_id\": \"n/a\", \"timestamp\": \"yesterday\", \"client_info\": True,"},{"line_number":124,"context_line":"                                       \"disk_encryption\": {\"full\": True}, \"antivirus\": {}}}"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        dpc_cmd_str \u003d json.dumps(dpc_cmd)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1c210a17_6f893651","line":123,"in_reply_to":"7dac9071_179da6ee","updated":"2026-11-06 11:15:48.000000000","message":"I am sure if we have a fixed format for these or if the format is actually correctly standardised accross the existing clients.","commit_id":"c6f1c752d4421e47ddb937aa0cbb5dad6361aeca"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0024c4cbdc35a31f159e098d3c5dd87b838b0f6a","unresolved":true,"context_lines":[{"line_number":65,"context_line":"        self._connected_client_class \u003d DpcConnectedClient"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def receive_acc_client_dpc1(self, client: DpcConnectedClient, kid: int, acc_message: str):"},{"line_number":68,"context_line":"        print(f\"Received DPC1 message: {acc_message!r}\")"},{"line_number":69,"context_line":"        msg \u003d json.loads(acc_message)"},{"line_number":70,"context_line":"        pprint(msg)"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"4db1b10d_d36aa385","line":68,"updated":"2026-11-05 09:12:17.000000000","message":"should be logger","commit_id":"22604de59ef894681fe6056bfcbc90c4c6a9fda7"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"bd6b14d1885a5af894b57a1a4a8ee4ed38e49e2f","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        self._connected_client_class \u003d DpcConnectedClient"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def receive_acc_client_dpc1(self, client: DpcConnectedClient, kid: int, acc_message: str):"},{"line_number":68,"context_line":"        print(f\"Received DPC1 message: {acc_message!r}\")"},{"line_number":69,"context_line":"        msg \u003d json.loads(acc_message)"},{"line_number":70,"context_line":"        pprint(msg)"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"10ab0d39_a0a3534d","line":68,"in_reply_to":"4db1b10d_d36aa385","updated":"2026-11-06 11:15:48.000000000","message":"Acknowledged","commit_id":"22604de59ef894681fe6056bfcbc90c4c6a9fda7"}]}
