[cdk-mintd] insecure local-only RPC server never started #1282
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk#1282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enabling
without specifying a TLS directory (with cert file, etc.) should in theory start an insecure server:
github.com/cashubtc/cdk@24d397d10b/crates/cdk-mint-rpc/src/proto/server.rs (L141-L144)However, this code path is never taken because a default value is initialized as
<workdir>/tlshere:github.com/cashubtc/cdk@24d397d10b/crates/cdk-mintd/src/lib.rs (L887)And
cdk-mintdfails to startup with "TLS directory does not exist"Thank you I think we left this in somewhat intentionally and did not update comments thinking we should enforce tls. However, I don't think this makes sense as it might be comment to use over localhost where there is no need for tls, I'll take a looks should be an easy enough fix.