Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "Request Session Key" doesn't seem to respect BASE_PATH? #154

Open
wols opened this issue Aug 29, 2024 · 0 comments
Open

[Bug]: "Request Session Key" doesn't seem to respect BASE_PATH? #154

wols opened this issue Aug 29, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@wols
Copy link

wols commented Aug 29, 2024

NetBox Secrets plugin version

v2.0.3

NetBox version

v4.0.9

Steps to Reproduce

# netbox/configuration.py

BASE_PATH = 'netbox/'

Click "User Key" > "+ Add Session Key" ... "Request Session Key"

Expected Behavior

"POST /netbox/api/plugins/secrets/session-keys/ HTTP/1.1" 200 ...

Observed Behavior

The GET requests to /netbox/... but the POST to /api/...

# /var/log/nginx/access.log

"GET /netbox/plugins/secrets/user-keys/ HTTP/1.1" 200 10787 "http://server.my.domain/netbox/"
"GET /netbox/plugins/secrets/user-keys/1/ HTTP/1.1" 200 10939 "http://server.my.domain/netbox/plugins/secrets/user-keys/"
"GET /netbox/static/netbox_secrets/secrets.js HTTP/1.1" 200 8946 "http://server.my.domain/netbox/plugins/secrets/user-keys/1/"
"POST /api/plugins/secrets/session-keys/ HTTP/1.1" 404 1473 "http://server.my.domain/netbox/plugins/secrets/user-keys/1/"
@wols wols added the type: bug Something isn't working label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Development

No branches or pull requests

1 participant