OpenStack API Requiring X-Auth-User on all requests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Eric Day |
Bug Description
After authenticating with the OpenStack API, subsequent requests to nova should only require the X-Auth-Token for authentication. However, it also requires the X-Auth-User header to be present; it doesn't matter what the user value is.
Here is the stack trace for a request with only X-Auth-Token:
Traceback (most recent call last):
File "/usr/local/
result = self.applicatio
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
response = self.app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/root/
username = req.headers[
File "/usr/local/
return self.environ[
KeyError: 'HTTP_X_AUTH_USER'
Related branches
- Devin Carlen (community): Approve
- Jay Pipes (community): Approve
-
Diff: 62 lines (+37/-2)2 files modifiednova/api/openstack/__init__.py (+2/-2)
nova/tests/api/openstack/test_auth.py (+35/-0)
Changed in nova: | |
importance: | Undecided → Critical |
milestone: | none → austin-final-freeze |
Changed in nova: | |
assignee: | nobody → Eric Day (eday) |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → Fix Released |