api/client: New fails with a TLS core endpoint because the fibre state client dials insecurely
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #5268 by @0xShadowX — closed without merging
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- go, grpc
- Domain
- api, backend, networking, security
Research direction
Start at api/client.New and trace initTxClient, especially where appFibreCfg.StateAddress is set and the local Fibre client starts. Compare that connection with conn used by the tx client and CoreAccessor, including TLS credentials and the x-token interceptor. Done means api/client.New succeeds against a TLS, token-protected core endpoint and Blob.Submit and State remain usable.
Written by the indexing model from the issue text.
Description
Version: main (3b16e0d4)
api/client.New with a submit config fails when the core gRPC endpoint uses TLS:
starting fibre client: detect chain ID: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: EOF"
initTxClient builds the local Fibre client with appFibreCfg.StateAddress = conn.Target(). celestia-app's default fibre state client dials that address on its own connection with insecure credentials and without the x-token interceptor, while the tx client and CoreAccessor use conn, which has TLS and the token configured. The fibre client can't reach the endpoint, and since its Start error is returned from initTxClient, the whole client fails to build, including Blob.Submit and State.
Expected: api/client.New works against a TLS (and token-protected) core endpoint.
- Dominant language
- Go
- Stars
- 1k
- Forks
- 1.1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 55
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from celestiaorg/celestia-node
-
external needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
celestiaorg/celestia-node#5448 ·
Maintainers usually reply within 1 day
-
area:node good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
celestiaorg/celestia-node#1178 ·
Maintainers usually reply within 1 day
-
nodebuilder: preserve the existing config when config-update failsPossibly taken @guagucai claimed this 2 days ago. Openexternal needs:triage
Difficulty 3/5 1-2 days Newbie friendliness 25/100
celestiaorg/celestia-node#5436 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
celestiaorg/celestia-node#5237 ·
Maintainers usually reply within 1 day
-
api/rpc/client: Close namespace connectionsPossibly taken @neyy91 claimed this 102 days ago. Openexternal needs:triage stale
Difficulty 3/5 1-2 days Newbie friendliness 72/100
celestiaorg/celestia-node#5188 ·
Maintainers usually reply within 1 day
All issues in celestiaorg/celestia-node
Similar issues
-
ConcatAgenticMessages loses the approval request ID of a streamed MCP tool callPossibly taken @ningsiyuan1024 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
containers/gvisor-tap-vsock#796 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsPossibly taken @huanghaoyuanhhy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zilliztech/milvus-backup#1418 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
projectdiscovery/nuclei#8423 ·
Maintainers usually reply within 1 day