Git Product home page Git Product logo

Comments (5)

nuriel77 avatar nuriel77 commented on September 26, 2024

The /api paths used for wallet connections are not protected with login password.

Is that what you mean?

from hornet-playbook.

Torgalide avatar Torgalide commented on September 26, 2024

Yes I know, question was how to protect with login/password.
I want to chose who can connect.

from hornet-playbook.

nuriel77 avatar nuriel77 commented on September 26, 2024

You'd have to remove the wallet paths from permitted routes in the config.json
The best way of doing that is by overwriting the hornet config
The only thing you need to overwrite is the hornet_config_restAPI_permittedRoutes variable.
Maybe to something like this in the override file:

hornet_config_restAPI_permittedRoutes:
  - "/health"
  - "/api/v1/info"

from hornet-playbook.

Torgalide avatar Torgalide commented on September 26, 2024

This will disable access to /api for everyone
I want to be able to connect my wallet, but just me

from hornet-playbook.

nuriel77 avatar nuriel77 commented on September 26, 2024

I don't think this is possible, if I understand you correctly.
Which paths/access do you want to keep available for everyone?

By default the config has these permittedRoutes:

jq .restAPI.permittedRoutes <  /var/lib/hornet/config.json
[
  "/health",
  "/mqtt",
  "/api/v1/info",
  "/api/v1/tips",
  "/api/v1/messages/:messageID",
  "/api/v1/messages/:messageID/metadata",
  "/api/v1/messages/:messageID/raw",
  "/api/v1/messages/:messageID/children",
  "/api/v1/messages",
  "/api/v1/transactions/:transactionID/included-message",
  "/api/v1/milestones/:milestoneIndex",
  "/api/v1/milestones/:milestoneIndex/utxo-changes",
  "/api/v1/outputs/:outputID",
  "/api/v1/addresses/:address",
  "/api/v1/addresses/:address/outputs",
  "/api/v1/addresses/ed25519/:address",
  "/api/v1/addresses/ed25519/:address/outputs",
  "/api/v1/treasury"
]

These allow access to the wallet. By limiting only to /health and /api/v1/info people can view the node's health and basic information.

from hornet-playbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.