Comments (5)
The /api
paths used for wallet connections are not protected with login password.
Is that what you mean?
from hornet-playbook.
Yes I know, question was how to protect with login/password.
I want to chose who can connect.
from hornet-playbook.
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.
This will disable access to /api for everyone
I want to be able to connect my wallet, but just me
from hornet-playbook.
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)
- Hornet private tangle setup HOT 5
- download hornet snapshot DB - 404 Error HOT 1
- Coordinator Bootstrap fails [mainnetdb/tangle.db: permission denied] HOT 2
- Out of Hosts. I cant get past this issue. HOT 14
- Pruning and Log Rotation HOT 2
- Autopeering phase never end on microk8s rpi4 HOT 5
- Build Hornet image failes with the error "Cannot locate specified Dockerfile: docker/Dockerfile.arm64\" HOT 4
- No sync HOT 12
- No data in Grafana HOT 3
- ERROR! the role 'haproxy' was not found HOT 2
- File permission issue HOT 1
- run gilt overlay fails HOT 2
- TASK [build hornet image] Failure HOT 1
- Debian 10 (Buster) build - Failure on scrypt install
- Ubuntu 20.04: usermod: user hornet is currently used by process 3271 HOT 3
- Set node Peer ID HOT 1
- Problem connecting to MQTT HOT 3
- No key.pub HOT 5
- WebSocket did not Open: Dashboard failed to load. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hornet-playbook.