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

Adds rpccookie to bitcoind auth methods #249

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

sr-gi
Copy link
Member

@sr-gi sr-gi commented Jan 8, 2024

Currently, we are authenticating against bitcoind using user/pass. This adds the option to use a cookie file instead.

Notice providing the two authentication methods at the same time is not permitted, users must set either the user/pass pair or the cookie file path.

Close #246

@sr-gi sr-gi force-pushed the 2024-01-authcookie branch 2 times, most recently from c42da84 to 410d45d Compare January 8, 2024 18:32
@d6n13l0l1v3r
Copy link

d6n13l0l1v3r commented Jan 8, 2024

work as expected I will provide details of the test comment below

Copy link

@d6n13l0l1v3r d6n13l0l1v3r left a comment

Choose a reason for hiding this comment

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

this change looks fine, I tested and work as expected details #246 (comment)

Copy link
Contributor

@orbitalturtle orbitalturtle left a comment

Choose a reason for hiding this comment

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

Nice, seems to work for me. Just thought I'd suggest to keep the conf template up to date, maybe with a comment in the # bitcoind section that only one auth method is allowed. https://github.com/talaia-labs/rust-teos/blob/master/teos/src/conf_template.toml

Also the lint error

Copy link
Collaborator

@mariocynicys mariocynicys left a comment

Choose a reason for hiding this comment

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

Looks good, some few comments inline.

teos/src/config.rs Outdated Show resolved Hide resolved
teos/src/main.rs Outdated Show resolved Hide resolved
@sr-gi sr-gi force-pushed the 2024-01-authcookie branch from 410d45d to 8377217 Compare March 20, 2024 18:07
@sr-gi
Copy link
Member Author

sr-gi commented Mar 20, 2024

Addresses review comments from @orbitalturtle and @mariocynicys

@sr-gi sr-gi force-pushed the 2024-01-authcookie branch from 8377217 to 726c4fa Compare March 20, 2024 19:35
@sr-gi sr-gi force-pushed the 2024-01-authcookie branch from 726c4fa to 900c746 Compare March 28, 2024 09:08
Currently we are authenticating against bitcoind using user/pass. This adds
the option to use a cookie file instead.
Copy link
Collaborator

@mariocynicys mariocynicys left a comment

Choose a reason for hiding this comment

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

LGTM

@sr-gi sr-gi merged commit 997f77f into talaia-labs:master Mar 28, 2024
7 checks passed
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 support for rpccookiefile in teos.toml
4 participants