Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upRequire apikey even when access control is disabled #516
Comments
This comment has been minimized.
This comment has been minimized.
|
Err....
Which git commit are you running there? |
This comment has been minimized.
This comment has been minimized.
|
$ ./run --version I suspect the difference (tested and provided it on my side) is this: $ cat .octoprint/config.yaml If accessControl is enabled it is protected. If disabled is isn't. |
foosel
added a commit
that referenced
this issue
Jun 3, 2015
Actual test whether key is provided or not happens in before_request handler of flask app, hence the more granular processing in the decorator was unecessary since around november '14. Adjusted to only do the actual processing necessary to replicate login_required behaviour/login users if necessary. Closes #516 (actually, that was solved since introduction of the before_request handler which took that work off the hands of the decorator, but now it's properly documented too)
This comment has been minimized.
This comment has been minimized.
|
This has actually been fixed since 254145d but I only just noticed when I wanted to tackle this issue here. Took the opportunity to also slightly refactor things. But should be solved in current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doing the following results in a HTTP/1.1 200 and the log file:
$ curl -D - 'http://10.0.0.9/downloads/logs/octoprint.log'
Where other API calls without the ?apikey= result in a HTTP/1.1 401
$ curl -D - 'http://10.0.0.9/api/logs/octoprint.log'
I assume this isn't intended behavior, as it isn't expected nor documented behavior.