Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user@address:port support #3425

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add user@address:port support #3425

wants to merge 1 commit into from

Conversation

mkg20001
Copy link
Member

Adds support for #1994

Also fixes some issues with #1572 by adding debug logs that say why a machine was skipped

Note: There's some incomplete stuff and I also have no (actual) clue about C++ so I'd appreciate help

src/libutil/util.cc Outdated Show resolved Hide resolved
src/libutil/util.cc Outdated Show resolved Hide resolved
@edolstra
Copy link
Member

Not really opposed to this, but it's a lot of code to support something that can already be achieved via ssh_config.

@mkg20001 mkg20001 changed the title Add user@address:port support (+ more debug logs) Add user@address:port support Apr 25, 2020
@mkg20001
Copy link
Member Author

I'll move the additional debug logs to another PR

Right now just IPv6 support is missing

Meanwhile I learned how to C++, so that's why that took so long

@stale
Copy link

stale bot commented Feb 13, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 13, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this Apr 16, 2022
@tomberek
Copy link
Contributor

tomberek commented Oct 5, 2022

Still interested

@tomberek tomberek reopened this Oct 5, 2022
@stale stale bot removed the stale label Oct 5, 2022
@vincentbernat
Copy link
Member

There is already code for compression and SSH key, both of them can also be set in ssh_config. One can also use NIX_SSHOPTS. I am also interested into this to make darwin.builder work on another port than 22. I think the idea to support it in the URI of the builder is to avoid messing with too many user files.

@fricklerhandwerk fricklerhandwerk added cli The old and/or new command line interface UX The way in which users interact with Nix. Higher level than UI. and removed cli The old and/or new command line interface labels Mar 3, 2023
@Ericson2314
Copy link
Member

Note if we do this, we should also consider doing it with

Use the same notion of a Machine config for remote builders.

from NixOS/hydra#1164

This syntax would be used in the build machines files too, and we don't want that to drift further apart between Nix and Hydra.

@mkg20001
Copy link
Member Author

mkg20001 commented Mar 11, 2023

Currently I've got no intention of updating this pr, so feel free to force push / make a new one

(I should mention again I barely know c++ so it would be a pita for me to code this to the end anyways)

@Ericson2314 Ericson2314 marked this pull request as draft March 11, 2023 14:56
@Ericson2314
Copy link
Member

OK, very understandable after 3 years! I converted it to a draft.

@thufschmitt thufschmitt added the idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. label Apr 7, 2023
@Ericson2314 Ericson2314 self-assigned this Apr 7, 2023
@Ericson2314
Copy link
Member

Ericson2314 commented Apr 10, 2023

Discussed last Nix team meeting.

Verdict: Idea sounds good. Port parsing however should be pat of the URL parser in general, not extracted in this special case. Stores that don't support ports can just fail on that; stores that do like this one can set it very easily.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-04-10-nix-team-meeting-minutes-47/27357/1

@github-actions github-actions bot added fetching Networking with the outside (non-Nix) world, input locking store Issues and pull requests concerning the Nix store with-tests Issues related to testing. PRs with tests have some priority labels Jun 14, 2023
@Ericson2314
Copy link
Member

OK this PR is on the right track now, but it is not yet ready:

  1. Restore passing the user part of the URL to stores, get rid of authHack tricks.
  2. Tests if possible
  3. Release notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fetching Networking with the outside (non-Nix) world, input locking idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. store Issues and pull requests concerning the Nix store UX The way in which users interact with Nix. Higher level than UI. with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants