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

[Merged by Bors] - fix: fix fluvio hub utils #3198

Closed
wants to merge 2 commits into from

Conversation

morenol
Copy link
Contributor

@morenol morenol commented Apr 27, 2023

In the update of pem fdcfce5 to 2.0.0. It was changed the tag from PUBLIC KEY and PRIVATE KEY to PUBLIC_KEY and PRIVATE_KEY. This changes uses a global const so we use the same tag when we write to file and when we read from file

@morenol morenol requested a review from digikata April 27, 2023 02:11
@digikata
Copy link
Contributor

The global const is fine, but the reason for "PUBLIC KEY" and "PRIVATE KEY" with spaces is that those tags matched openssh generated key formats.

@morenol
Copy link
Contributor Author

morenol commented Apr 27, 2023

The global const is fine, but the reason for "PUBLIC KEY" and "PRIVATE KEY" with spaces is that those tags matched openssh generated key formats.

Right! I updated the consts to have the space in the tag. The issue right now is the difference between

let pem = Pem::new("PRIVATE_KEY", self.kp.secret.to_bytes().to_vec());

with:

        if pem.tag() != "PRIVATE KEY" {

Should I keep the tag without the underscore, right?

@digikata
Copy link
Contributor

digikata commented Apr 27, 2023

I took a longer look at it this morning and last night I was looking at the wrong key fmt, I think its good!

@morenol
Copy link
Contributor Author

morenol commented Apr 27, 2023

bors r+

bors bot pushed a commit that referenced this pull request Apr 27, 2023
In the update of `pem` fdcfce5 to `2.0.0`. It was changed the tag from `PUBLIC KEY` and `PRIVATE KEY` to `PUBLIC_KEY` and `PRIVATE_KEY`. This changes uses a global const so we use the same tag when we write to file and when we read from file
@bors
Copy link

bors bot commented Apr 27, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix: fix fluvio hub utils [Merged by Bors] - fix: fix fluvio hub utils Apr 27, 2023
@bors bors bot closed this Apr 27, 2023
@morenol morenol deleted the fix-fluvio-hub-util branch April 30, 2023 03:57
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.

2 participants