-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
pam_rssh: init at unstable-2023-01-09 #209962
Conversation
would be great if we had this!
|
@woffs I updated the hashes and dropped the cargo patch as it's merged upstream. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1920 |
doCheck = false; | ||
# How do disable specific tests? | ||
# checkFlags = [ | ||
# # Expects $USER and $SSH_AUTH_SOCK | ||
# "--skip=lib::tests::sshagent_list_identities" | ||
# "--skip=lib::tests::sshagent_auth" | ||
# "--skip=lib::tests::sshagent_more_auth" | ||
# "--skip=lib::tests::parse_user_authorized_keys" | ||
# ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doCheck = false; | |
# How do disable specific tests? | |
# checkFlags = [ | |
# # Expects $USER and $SSH_AUTH_SOCK | |
# "--skip=lib::tests::sshagent_list_identities" | |
# "--skip=lib::tests::sshagent_auth" | |
# "--skip=lib::tests::sshagent_more_auth" | |
# "--skip=lib::tests::parse_user_authorized_keys" | |
# ]; | |
checkFlags = [ | |
# Expects $USER and $SSH_AUTH_SOCK | |
"--skip=test_sshagent_list_identities" | |
"--skip=test_sshagent_auth" | |
"--skip=test_sshagent_more_auth" | |
"--skip=test_parse_user_authorized_keys" | |
]; |
that does not work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I get the following error:
Details
error: environment variable `SSH_AUTH_SOCK` not defined
--> src/lib.rs:198:42
|
198 | let mut agent = AgentClient::new(env!("SSH_AUTH_SOCK"));
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: environment variable `SSH_AUTH_SOCK` not defined
--> src/lib.rs:213:42
|
213 | let mut agent = AgentClient::new(env!("SSH_AUTH_SOCK"));
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: environment variable `SSH_AUTH_SOCK` not defined
--> src/lib.rs:235:42
|
235 | let mut agent = AgentClient::new(env!("SSH_AUTH_SOCK"));
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: environment variable `USER` not defined
--> src/lib.rs:252:24
|
252 | let username = env!("USER");
| ^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you prefixing the tests with test_
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same error message
@SuperSandro2000 I think this is ready for re-review, minus the tests. |
Implemented in ##237579 |
Description of changes
An alternative to
pam_ssh_agent_auth
that offers support for FIDO2/U2F keys (ECDSA-SK + ED25519-SK). Support inpam_ssh_agent_auth
has stalled jbeverly/pam_ssh_agent_auth#23Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes