diff --git a/Cargo.lock b/Cargo.lock index bf008011..daa65035 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,7 +26,7 @@ dependencies = [ "slog-scope 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "slog-term 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "update-ssh-keys 0.1.0 (git+https://github.com/sdemos/update-ssh-keys-rs)", + "update-ssh-keys 0.1.0 (git+https://github.com/coreos/update-ssh-keys?tag=v0.1.0)", "users 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1317,7 +1317,7 @@ dependencies = [ [[package]] name = "update-ssh-keys" version = "0.1.0" -source = "git+https://github.com/sdemos/update-ssh-keys-rs#3e42c7a12d37e48356cc313db7b779f88e0f2c98" +source = "git+https://github.com/coreos/update-ssh-keys?tag=v0.1.0#fcbbf62deb7bbe1df527d71c8b6c0231cb1090cb" dependencies = [ "clap 2.26.2 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1557,7 +1557,7 @@ dependencies = [ "checksum unicode-xid 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "36dff09cafb4ec7c8cf0023eb0b686cb6ce65499116a12201c9e11840ca01beb" "checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" "checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" -"checksum update-ssh-keys 0.1.0 (git+https://github.com/sdemos/update-ssh-keys-rs)" = "" +"checksum update-ssh-keys 0.1.0 (git+https://github.com/coreos/update-ssh-keys?tag=v0.1.0)" = "" "checksum url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eeb819346883532a271eb626deb43c4a1bb4c4dd47c519bd78137c3e72a4fe27" "checksum users 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "99ab1b53affc9f75f57da4a8b051a188e84d20d43bea0dd9bd8db71eebbca6da" "checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122" diff --git a/Cargo.toml b/Cargo.toml index ec50f116..cc7907f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ reqwest = "0.7" hyper = "0.11" error-chain = { version = "0.11", default-features = false } openssh-keys = "0.1" -update-ssh-keys = { git = "https://github.com/sdemos/update-ssh-keys-rs" } +update-ssh-keys = { git = "https://github.com/coreos/update-ssh-keys", tag = "v0.1.0" } ipnetwork = "0.12" clippy = { version = "*", optional = true } hostname = "0.1" diff --git a/src/metadata.rs b/src/metadata.rs index 7511227d..06fe7bb9 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -136,7 +136,7 @@ impl Metadata { // find the ssh keys user and open their ssh authorized keys directory let user = users::get_user_by_name(&ssh_keys_user) .ok_or_else(|| format!("could not find user with username {:?}", ssh_keys_user))?; - let mut authorized_keys_dir = AuthorizedKeys::open(user, true) + let mut authorized_keys_dir = AuthorizedKeys::open(user, true, None) .chain_err(|| format!("failed to open authorzied keys directory for user '{}'", ssh_keys_user))?; // add the ssh keys to the directory