iotaledger / inx-chronicle

IOTA permanode implemented using the IOTA Node Extension (INX) interface.
Apache License 2.0
14 stars 13 forks source link

Opening public route does not work as expected / documented #1218

Closed HolgerKoether closed 1 year ago

HolgerKoether commented 1 year ago

Bug description

Adding a public route (in order to disable JWT authentication) by adding --public-route=/api/* or --public-route=* does not work. When querying the URL (e.g. http://135.181.40.39:14265/api/explorer/v2/milestones/by-index/30/blocks) the error message {"error":{"code":"400","message":"missing or malformed jwt, error: code=400, message=missing or malformed jwt"}} appears

Used documentation: https://wiki.iota.org/shimmer/chronicle/reference/authentication/

2023-04-03 17_51_18-root@ubuntu-32gb-hel1-1_ __inx-chronicle_docker

Rust version

Chronicle version

Hardware specification

Steps to reproduce the bug

  1. see above (happy to share root access to the test system)

Expected behaviour

Chronicle returns the respective data

Actual behaviour

the jwt token is still required

Errors

`{"error":{"code":"400","message":"missing or malformed jwt, error: code=400, message=missing or malformed jwt"}}`
DaughterOfMars commented 1 year ago

The route requires that it is surrounded by quotes. Have you tried - "--public-route='*'" or - "--public-route='/api/*'"?

HolgerKoether commented 1 year ago

yes, the same result.

HolgerKoether commented 1 year ago

the correct parameter is - "--public-route=api/*"