Skip to content

Conversation

@fbac
Copy link
Collaborator

@fbac fbac commented Jun 11, 2025

Validate provided chains with chainID by adding chain ID verification to websocket URL validation in pkg/config/validation.go

The validateWebsocketURL function in pkg/config/validation.go now accepts a chainID parameter and establishes an actual connection to Ethereum nodes to verify the chain ID matches the expected value. The function performs URL parsing validation, checks for proper websocket schemes (ws or wss), connects using ethclient, and confirms the node's chain ID. Additionally, the Docker Compose script receives proper quoting for profile variables, and the gorilla/websocket dependency changes from direct to indirect status in go.mod.

📍Where to Start

Start with the validateWebsocketURL function in pkg/config/validation.go to understand the new chain ID validation logic.


Macroscope summarized 6323382.

@fbac fbac requested a review from a team as a code owner June 11, 2025 10:51
@graphite-app
Copy link

graphite-app bot commented Jun 11, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@fbac fbac force-pushed the 06-22-chain_validation branch from e97a027 to d4042f9 Compare June 11, 2025 10:54
@fbac fbac force-pushed the 06-22-chain_validation branch from 789becb to ff521de Compare June 11, 2025 10:58
@fbac fbac force-pushed the 06-22-chain_validation branch from ff521de to 6323382 Compare June 11, 2025 11:03
@fbac fbac mentioned this pull request Jun 11, 2025
@mkysel mkysel merged commit fc74392 into main Jun 13, 2025
9 checks passed
@mkysel mkysel deleted the 06-22-chain_validation branch June 13, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants