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

Replace GPG with NaCl #373

Merged
merged 4 commits into from
Apr 12, 2016
Merged

Replace GPG with NaCl #373

merged 4 commits into from
Apr 12, 2016

Conversation

bookshelfdave
Copy link
Contributor

  • hab-plan-build.sh has lots of TODO's, but it works.
  • need to work out default origin, HABITAT_ORIGIN env var etc.

"it compiles", tests fail, you'll need to be a Habitat bootstrap expert to get this rolling.

@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

@bookshelfdave bookshelfdave changed the title [WIP] Replace GPG with NaCl Replace GPG with NaCl Apr 12, 2016
@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

@@ -187,9 +187,9 @@ fn nacl_key_dir() -> String {

/// Calculate the BLAKE2b hash of a file
/// NOTE: the key is empty
pub fn hash_file(filename: &str) -> Result<String> {
pub fn hash_file<P: AsRef<Path>>(filename: &P) -> Result<String> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

That is a sweet change!

@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

GenerateServiceKey,
ListKeys,
Encrypt,
Decrypt,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wow, getting down there.

@@ -193,7 +193,7 @@ pub fn spawn(mut command: Command) -> CmdResult<Cmd> {
}

pub fn studio_run(cmd: &str, args: &[&str]) -> CmdResult<Cmd> {
let real_cmd = "hab-studio";
let real_cmd = "/src/components/studio/bin/hab-studio.sh";
Copy link
Collaborator

Choose a reason for hiding this comment

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

We'll want to keep hab-studio as the command to execute, meaning that the chef/hab-studio is required for functions. Or this happens in a Studio already, can't remember. This is fine for the moment though.

@reset
Copy link
Collaborator

reset commented Apr 12, 2016

@metadave great pull request. You caught a lot of things that would be easily missed in this refactor and it's great to see how far your Rust knowledge has improved in only the last month!

My only suggestion is just stylistic in nature: I would recommend avoiding multi-line comments. It can be the source of some headaches when you need to merge/rebase when those are being used.

The comments in general are awesome. I like to follow the "TODO {initials}: {msg}" pattern also. It helps us remember what our goals are and that this is still a work in progress 😄. Merge when ready!

@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

@bookshelfdave
Copy link
Contributor Author

thank you @reset @fnichol

@bookshelfdave
Copy link
Contributor Author

@delivery approve

@chef-delivery chef-delivery merged commit 5b777e8 into master Apr 12, 2016
@chef-delivery chef-delivery deleted the dp_artifact_nacl branch April 12, 2016 21:29
@chef-delivery
Copy link
Contributor

Change: 82488ca5-3965-435a-a1d9-99a965866b0d approved by: @metadave

raskchanky pushed a commit that referenced this pull request Apr 16, 2019
Merged change 82488ca5-3965-435a-a1d9-99a965866b0d

From review branch dp_artifact_nacl into master

Signed-off-by: dparfitt <[email protected]>
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.

4 participants