Skip to content

Add IP / Port Settings to Signer #305

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

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Add IP / Port Settings to Signer #305

wants to merge 27 commits into from

Conversation

jclapis
Copy link
Collaborator

@jclapis jclapis commented May 21, 2025

The signer module currently hardcodes the IP it binds to as 0.0.0.0, and the port isn't able to be specified in the configuration file - it's only pulled from an environment variable. In Docker mode it doesn't matter, but that's not ideal for people running natively that want to restrict the traffic to localhost since it will open up the Signer API to the entire network.

This modifies it to match PBS's setup, where host (IP) and port are both configuration variables. Users can manually override the combo with the CB_SIGNER_ENDPOINT environment variable which is an analog of the PBS one. It also specifies a default signer host (localhost) and port (20000) in case the configuration parameters are unset and the environment variable isn't present.

@jclapis jclapis requested review from ManuelBilbao and ltitanb May 21, 2025 16:31
@jclapis jclapis self-assigned this May 21, 2025
@jclapis jclapis added the signer Signer module label May 21, 2025
@jclapis jclapis force-pushed the add-ip-bind-to-signer branch from 2e2ba3b to c0f591d Compare May 28, 2025 04:59
@jclapis jclapis marked this pull request as ready for review June 3, 2025 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
signer Signer module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants