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

feat: read tor cookies from a file #4317

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

therustmonk
Copy link
Contributor

Description

The PR adds a capability to read a tor cookie from a file.
To set a cookie value in the config of the tari_base_node we could use three ways:

tor.control_auth = "cookie=HEX"
tor.control_auth = "cookie=@" # read `/run/tor/control.authcookie` default cookie file
tor.control_auth = "cookie=@/custom/path/to/cookie/file"

Motivation and Context

Fixes #2808

How Has This Been Tested?

CI and manually (Fedora 35, stardard tor service + added ControlPort to the config)

@therustmonk therustmonk marked this pull request as ready for review July 17, 2022 22:06
Copy link
Member

@sdbondi sdbondi 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! utAck

@aviator-app aviator-app bot merged commit c75d224 into tari-project:development Jul 18, 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.

Allow base nodes and wallets to use cookie auth with tor control port
2 participants