Commit Graph

132 Commits

Author SHA1 Message Date
b743f57690 Improve error handling in processPathRequest by logging failures during local destination announcement and path request sending
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 4s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 5s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 4s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 36s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 38s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 1m18s
Run Gosec / tests (push) Successful in 1m33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 2s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 2s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 3s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 34s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m19s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-12-06 12:19:46 -06:00
bd0c94109e Improve error handling in ValidateLinkProof by logging failures during RTT packet transmission 2025-12-06 12:19:37 -06:00
6896672562 Update AES256 CBC decryption test 2025-12-06 12:19:32 -06:00
dd87da4a51 Fix packet handling in Transport to clarify link data processing
Some checks failed
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 22s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 29s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 27s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 33s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 31s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 32s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Failing after 37s
Go Revive Lint / lint (push) Successful in 34s
Run Gosec / tests (push) Failing after 41s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 30s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 32s
2025-12-01 20:52:04 -06:00
c8d231556c Add channel handling to Link struct; implement methods for managing incoming channel packets, resource advertisements, and packet delivery. Enhance initialization with IncomingLinkHandler registration and improve error handling for resource requests.
Some checks failed
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 17s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 25s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 31s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 31s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 23s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 40s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 38s
Go Revive Lint / lint (push) Successful in 30s
Run Gosec / tests (push) Failing after 57s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 29s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 27s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 33s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 35s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Failing after 36s
2025-12-01 20:30:59 -06:00
b489135c5b Enhance Transport struct with path request handling and cleanup mechanisms; introduce DiscoveryPathRequest and PathAnnounceEntry types for improved path management, and implement maintenance jobs for expired paths, discovery requests, and announces. 2025-12-01 20:30:53 -06:00
1d83e7f539 Add request handling and metadata management to Resource struct; introduce methods for request ID, response status, and hashmap access, while removing deprecated IsCompressed method for cleaner code. 2025-12-01 20:30:42 -06:00
565b13a0eb Add ResourceAdvertisement struct and related methods for managing resource advertisements; implement packing and unpacking functionality with msgpack for efficient data handling. 2025-12-01 20:30:37 -06:00
52f8e21da0 Refactor Destination struct to enhance request handling and link management; introduce IncomingLinkHandler for improved link processing and update transport interface usage. 2025-12-01 20:30:32 -06:00
ad5b6ed83a Add LoadOrCreateTransportIdentity function to manage transport identity loading and creation; implement storage path handling and error logging for improved identity management. 2025-12-01 20:30:27 -06:00
cced3f5092 Add HandleInbound method for processing incoming channel packets; introduce GenericMessage struct for message handling and packing/unpacking functionality. 2025-12-01 20:30:22 -06:00
3b2a8591a7 Update link management by adding RegisterLink and UnregisterLink methods; improve handleLinkPacket and handleProofPacket for better link validation and error logging.
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 39s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 43s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 41s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 45s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 14s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 13s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 20s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 21s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 20s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 21s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 20s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 1m15s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Failing after 1m17s
Go Revive Lint / lint (push) Successful in 1m11s
Run Gosec / tests (push) Failing after 1m30s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-12-01 20:02:02 -06:00
f513c6abcd Add RESPONSE_MAX_GRACE_TIME constant to resource.go for enhanced timeout management 2025-12-01 20:01:54 -06:00
e83bc31ccc Update Link management with improved request handling, timeout mechanisms, and resource management; refactor packet handling for better clarity and efficiency. 2025-12-01 20:01:48 -06:00
1e67bc56b6 Improve Destination struct with better request handling and link management 2025-12-01 20:01:31 -06:00
cfcdb62168 Add HandleIncomingLinkRequest and GetLinkID methods for improved link handling and status retrieval; enhance logging for link proof generation and sending process.
Some checks failed
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 26s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 34s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 32s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 46s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 35s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Has been cancelled
Run Gosec / tests (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 38s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 44s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 42s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 41s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 27s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 43s
Go Build Multi-Platform / Create Release (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Revive Lint / lint (push) Has been cancelled
2025-11-21 12:43:22 -06:00
d14692b19b Add FromFile and loadPrivateKey methods to Identity for loading identity from file and initializing keys 2025-11-21 12:43:16 -06:00
59486330ec update HandleIncomingLinkRequest to accept packet instead of linkID and add HandleRequest method for improved request handling 2025-11-21 12:43:00 -06:00
1133e9755d Add better logging in HandlePacket and handleLinkPacket for better error tracking and clarity 2025-11-21 12:42:18 -06:00
b450aa8569 refactor: update delivery callback in TestPacketReceiptCallbacks to use channel for improved synchronization
Some checks failed
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 20s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 38s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 39s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 36s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Build Multi-Platform / build (arm, windows) (push) Failing after 34s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 30s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m25s
Go Revive Lint / lint (push) Successful in 44s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 29s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 44s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 43s
Go Build Multi-Platform / Create Release (push) Has been skipped
Run Gosec / tests (push) Successful in 59s
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 21:49:50 -06:00
678ab32ee6 refactor: simplify index increment for IFAC code handling in handleAnnouncePacket for improved readability 2025-11-20 21:45:49 -06:00
4e37112aee refactor: replace log statements with debug logging in packet.go for improved clarity and consistency 2025-11-20 21:45:44 -06:00
af046370db refactor: replace log statements with debug logging in link.go for improved clarity and consistency 2025-11-20 21:45:39 -06:00
eb40fd6451 refactor: remove flaky address resolution checks in TestNewUDPInterface for improved test reliability 2025-11-20 21:45:35 -06:00
763fb4a962 refactor: improve variable initialization in GetRTT method for better clarity 2025-11-20 21:45:30 -06:00
673f19b1ff feat: add OpenBSD support for TCP keepalive configuration in TCPClientInterface 2025-11-20 21:45:25 -06:00
4a20551e9a feat: add NetBSD support for TCP keepalive configuration in TCPClientInterface 2025-11-20 21:45:20 -06:00
1ac5696c80 refactor: improve variable initialization and return types in Identity methods for clarity 2025-11-20 21:45:15 -06:00
5c2ea259b8 refactor: replace log statements with debug logging for packet resend errors in channel.go 2025-11-20 21:45:10 -06:00
7573e942f1 refactor: streamline Read and Close methods in buffer.go for improved clarity and efficiency 2025-11-20 21:45:06 -06:00
d3cf775394 refactor: simplify RequestPath method by removing unnecessary error handling 2025-11-20 21:45:01 -06:00
72d70b2141 feat: add receipt management for packet handling, including registration, unregistration, and proof validation 2025-11-20 21:31:36 -06:00
06da42a148 feat: implement PacketReceipt struct with methods for receipt creation, validation, and timeout handling 2025-11-20 21:31:31 -06:00
ec8b843cd4 feat: enhance Packet struct with new fields and hash methods for improved functionality 2025-11-20 21:31:24 -06:00
9e7e9a71ca feat: add link establishment tests and implement key generation, handshake, and proof validation in the Link module 2025-11-20 21:31:18 -06:00
b0669954a4 code cleanup 2025-11-20 21:25:50 -06:00
ded5853026 move platformGetRTT implementation to tcp_common.go for non-Linux platforms 2025-11-20 21:24:58 -06:00
b0fad14504 fix: add security comment for TCP_INFO syscall in platformGetRTT function
Some checks failed
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 23s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 24s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 39s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 41s
Go Build Multi-Platform / build (arm64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, windows) (push) Has been cancelled
Go Build Multi-Platform / Create Release (push) Has been cancelled
Go Build Multi-Platform / build (arm, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm, windows) (push) Has been cancelled
Go Revive Lint / lint (push) Has been cancelled
Go Build Multi-Platform / build (arm, freebsd) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, darwin) (push) Has been cancelled
Run Gosec / tests (push) Has been cancelled
2025-11-20 18:21:14 -06:00
24aa4fa88b remove default RTT implementation for non-Linux platforms and enhance keepalive period configuration for FreeBSD and Windows
Some checks failed
Go Build Multi-Platform / build (arm, linux) (push) Failing after 38s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 41s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 22s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 29s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 37s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 31s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 34s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 33s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m0s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 48s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m25s
Run Gosec / tests (push) Failing after 58s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 18:14:57 -06:00
189645940c fix: add security comments to clarify handling of non-critical errors in ratchet file operations
Some checks failed
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 35s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 39s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 38s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 29s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 32s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 35s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 36s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 36s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 34s
Run Gosec / tests (push) Failing after 58s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 46s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m28s
Go Revive Lint / lint (push) Successful in 55s
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 18:04:30 -06:00
4f37df2fc0 fix: add security comments to handle non-critical errors in ratchet persistence 2025-11-20 18:04:26 -06:00
4859f5513a fix: add security comment for Unix timestamp handling in CreatePacket function 2025-11-20 18:04:22 -06:00
2a2d6d6515 feat: add platform-specific TCP timeout configurations for Darwin, FreeBSD, Windows, and Linux 2025-11-20 18:04:11 -06:00
3d943aaaef refactor: improve announce packet handling by clarifying address extraction and validation logic
Some checks failed
Go Build Multi-Platform / build (arm, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm, windows) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, darwin) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, windows) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Has been cancelled
Run Gosec / tests (push) Has been cancelled
Go Revive Lint / lint (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, linux) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, windows) (push) Has been cancelled
Go Build Multi-Platform / Create Release (push) Has been cancelled
Go Build Multi-Platform / build (amd64, darwin) (push) Has started running
2025-11-20 17:57:13 -06:00
d5d7fbdb79 refactor: simplify comments in getHashablePart function for clarity 2025-11-20 17:57:07 -06:00
fdfe895d2d feat: enhance TCP and UDP interfaces with improved timeout settings and MTU configuration 2025-11-20 17:57:00 -06:00
01e639133b feat: enhance AutoInterface with improved configuration and multicast handling 2025-11-20 17:56:54 -06:00
6c6953e664 refactor: update identity management to use raw byte storage and msgpack for ratchet persistence 2025-11-20 17:56:48 -06:00
b4039dc148 feat: implement ratchet management with persistence and rotation 2025-11-20 17:56:40 -06:00
ba18fba43e Fix announce packet and debug logging 2025-11-20 17:56:29 -06:00