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

Mtls auth rpc #59

Merged
merged 3 commits into from
Jul 4, 2022
Merged

Mtls auth rpc #59

merged 3 commits into from
Jul 4, 2022

Conversation

orbitalturtle
Copy link
Contributor

Requires mtls to connect to the server's private api. Updates the cli to use mtls as well. Closes #25

Copy link
Member

@sr-gi sr-gi left a comment

Choose a reason for hiding this comment

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

Looks great. Comments are mainly nits and idiomatic stuff.

Two comments on top of the inline ones:

  • Is anyhow really necessary? I think the dependency kind off comes from CLN using it for their stuff, but given how few errors need to be handled and that we are not using it for the CLI it may be worth reworking this without it.
  • The README.md will need to be updated to take the keys/certs into account. i.e. specify that after running the tower, if the CLI is run remotely, then the corresponding keys need to be placed on the remote machine in the corresponding folder and so on.

teos/src/cli.rs Outdated Show resolved Hide resolved
teos/src/cli.rs Outdated Show resolved Hide resolved
teos/src/tls.rs Outdated Show resolved Hide resolved
teos/src/cli.rs Outdated Show resolved Hide resolved
teos/src/cli.rs Outdated Show resolved Hide resolved
teos/src/main.rs Outdated Show resolved Hide resolved
teos/src/tls.rs Outdated Show resolved Hide resolved
teos/src/tls.rs Outdated Show resolved Hide resolved
teos/src/tls.rs Outdated Show resolved Hide resolved
@orbitalturtle orbitalturtle force-pushed the mtls-auth-rpc branch 2 times, most recently from c12dfd4 to 6146fa8 Compare June 13, 2022 05:34
@orbitalturtle
Copy link
Contributor Author

@sr-gi Thanks for the review :D Made those changes

@orbitalturtle orbitalturtle requested a review from sr-gi June 13, 2022 05:35
Copy link
Member

@sr-gi sr-gi left a comment

Choose a reason for hiding this comment

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

Nice work! Here are some additional small changes.

teos/Cargo.toml Outdated Show resolved Hide resolved
teos/src/cli.rs Outdated Show resolved Hide resolved
teos/src/cli.rs Outdated Show resolved Hide resolved
teos/src/cli.rs Outdated Show resolved Hide resolved
teos/src/main.rs Outdated Show resolved Hide resolved
teos/src/tls.rs Outdated Show resolved Hide resolved
teos/src/tls.rs Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@orbitalturtle
Copy link
Contributor Author

@sr-gi Radtastic, fixed those things up.

sr-gi
sr-gi previously approved these changes Jun 14, 2022
Copy link
Member

@sr-gi sr-gi left a comment

Choose a reason for hiding this comment

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

LGTM

ACK 388aaff

@sr-gi sr-gi dismissed their stale review June 14, 2022 08:31

Didn't check the linter before approving, some additional changes are required

Copy link
Member

@sr-gi sr-gi left a comment

Choose a reason for hiding this comment

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

There are a couple linter related issues that need to be fixed:

  • cli.rs and tls.rs need formatting.
  • See inline for main.rs

teos/src/main.rs Outdated Show resolved Hide resolved
teos/src/main.rs Outdated Show resolved Hide resolved
@orbitalturtle orbitalturtle force-pushed the mtls-auth-rpc branch 2 times, most recently from bab8254 to d04f3a7 Compare June 14, 2022 18:29
@orbitalturtle
Copy link
Contributor Author

@sr-gi ah fixed!

@orbitalturtle orbitalturtle requested a review from sr-gi June 14, 2022 18:30
@sr-gi
Copy link
Member

sr-gi commented Jun 15, 2022

ACK d04f3a7

@sr-gi
Copy link
Member

sr-gi commented Jun 15, 2022

@orbitalturtle in order to merge this, all commits need to be signed.

Can you fix that and rebase?

@orbitalturtle
Copy link
Contributor Author

Sure thing :) The commits are now signed. @sr-gi

@sr-gi
Copy link
Member

sr-gi commented Jun 16, 2022

ACK 2128de8

@sr-gi sr-gi added the Seeking Code Review review me pls label Jun 22, 2022
@sr-gi sr-gi removed the Seeking Code Review review me pls label Jul 4, 2022
@sr-gi sr-gi merged commit 65f0709 into talaia-labs:master Jul 4, 2022
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.

Add gRPC authentication
2 participants