Skip to content

Workaround Linstor URL parsing issue#2677

Merged
stgraber merged 4 commits intolxc:mainfrom
stgraber:storage
Nov 20, 2025
Merged

Workaround Linstor URL parsing issue#2677
stgraber merged 4 commits intolxc:mainfrom
stgraber:storage

Conversation

@stgraber
Copy link
Copy Markdown
Member

Upstream issue is LINBIT/golinstor#19

This avoids the broken parser in golinstor which chokes on IPv6 addresses.

Signed-off-by: Stéphane Graber <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
There is no mechanism to override govulncheck for the situation where it
reports a security issue with no available fixes and where the code in
question isn't in use in the project.

Instead it fails and prevents any further change to be merged until an
eventual release of a fix.

So just make it informational and rely on dependency-review (Github
Action) instead for the blocking checks as that one can have exceptions
correctly added.

Signed-off-by: Stéphane Graber <[email protected]>
@stgraber stgraber disabled auto-merge November 20, 2025 06:18
@stgraber stgraber merged commit 9e5ec49 into lxc:main Nov 20, 2025
300 of 310 checks passed
controllerUrls := strings.Split(controllerConnection, ",")
c, err := linstorClient.NewClient(linstorClient.Controllers(controllerUrls), linstorClient.HTTPClient(httpClient), linstorClient.Log(linstorLogger{}))

parseConnection := func(connection string) (*url.URL, error) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a comment with a bit of context? If the upstream issue is fixed then this block of code might not need to be here.

LINBIT/golinstor#19

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm subscribed to the upstream issue, but their current parsing is very very weird and even if they relax the port restriction to make things work here, I'm not sure I'd want to use the rest of the logic. We're likely better off doing our own parsing here and just telling Linstor exactly what to connect to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants