Skip to content

Is there any way to control access authentication for the JSON-RPC and HTTP API? #6169

Closed

Description

@PikaZ76

I have deployed a Tron node, and for security reasons, I want to implement measures to restrict access to its interfaces.

Does the Tron node have any built-in configuration that supports this functionality, or do I have to rely on additional measures like a proxy to achieve it?

Activity

  1. abn2357 commented on Feb 12, 2025

    @abn2357
    Contributor

    No built-in configuration

  2. SeriousCoding789 commented on Feb 14, 2025

    @SeriousCoding789
    Contributor

    As far as I can see, currently java-tron itself only provide rate and connect limits. You could find them in config file.

  3. halibobo1205 commented on Feb 17, 2025

    @halibobo1205
    Collaborator
  4. waynercheung commented on Feb 18, 2025

    @waynercheung
    Collaborator

    https://besu.hyperledger.org/public-networks/how-to/use-besu-api/authenticate, JSON-RPC authentication @eodiandie. We could give it a try.

    Hi,
    I think this is a great proposal and I’m quite interested in it.
    I previously raised an issue related to JSON-RPC, and we can develop the authentication functionality for the JSON-RPC interface together.

  5. waynercheung commented on Feb 27, 2025

    @waynercheung
    Collaborator

    https://besu.hyperledger.org/public-networks/how-to/use-besu-api/authenticate,

    According to the document mentioned above, besu supports two authentication methods:

    • Username and password
    • JWT public key.

    I think we can supports these two methods for Tron.

    Besides that, I will do some search to find if there is a specification about the authentication for eth jsonrpc apis.

  6. PikaZ76 commented on Mar 1, 2025

    @PikaZ76
    Author

    @waynercheung that's great! it's could be better if Tron get build-in authentication !

  7. waynercheung commented on May 28, 2025

    @waynercheung
    Collaborator

    @waynercheung that's great! it's could be better if Tron get build-in authentication !

    Yes, let's talk about the detailed solution later.

  8. waynercheung commented on Jul 28, 2025

    @waynercheung
    Collaborator

    Thanks for the ongoing discussion. This is complex and needs deeper research to get right. Our next substantial update is around September 10th. We’ll share progress in upcoming developer meetings—watch for announcements. The issue stays open. We value community input, so please share insights, approaches, or suggestions in comments. All ideas are welcome.

  9. waynercheung commented on Sep 28, 2025

    @waynercheung
    Collaborator

    The 4.8.1 release is requiring more time than expected to properly test and finalize. Let us circle back to review this issue once the 4.8.1 release is complete and we can dedicate proper attention to it.

  10. ferdinand026 commented on Mar 19, 2026

    @ferdinand026

    Any updates on this? Is there a planned roadmap for the implementation? Thanks!

  11. waynercheung commented on Mar 20, 2026

    @waynercheung
    Collaborator

    Any updates on this? Is there a planned roadmap for the implementation? Thanks!

    @ferdinand026 Thanks for your patience. This issue is still under active investigation. We will provide an update as soon as we have more findings to share.

  12. waynercheung commented on May 15, 2026

    @waynercheung
    Collaborator

    Quick update @PikaZ76 - this is still on my radar. I've been comparing how other Ethereum clients handle JSON-RPC auth (Geth / Besu / Erigon), and the leading direction for java-tron looks like optional JWT bearer auth on HTTP & JSON-RPC, similar to the Engine API scheme. I'll post a concrete proposal here once it's ready. Thanks for your patience.

  13. halibobo1205 commented on May 15, 2026

    @halibobo1205
    Collaborator

    Closing for now — tracked in #6497 going forward. Thanks @waynercheung @PikaZ76. cc @317787106

  14. moved this from To Do to Done in java-tronon May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions