Reviewed: https://review.opendev.org/c/openstack/neutron/+/799162 Committed: https://opendev.org/openstack/neutron/commit/ec550f5f52c5377f57499eeadd7e0d665dcdb73d Submitter: "Zuul (22348)" Branch: master
commit ec550f5f52c5377f57499eeadd7e0d665dcdb73d Author: ramishra <[email protected]> Date: Fri Jul 2 11:07:22 2021 +0530 Add fake_project_id middleware for noauth This adds a middleware for noauth that would inject a fake project_id for create requests. This would ensure that api consumers don't have to provide a fake project_id in requests. Closes-Bug: #1934039 Change-Id: I5e1de571034be41f1147c130fce66e6cf70b1369 ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1934039 Title: Neutron with noauth authentication strategy needs fake 'project_id' in request body Status in neutron: Fix Released Bug description: Neutron can be deployed standalone without keystone using authentication_strategy=noauth. However with the policy enforcement for resources[1] to have the tenant_id/project_id in the request body or 'X_PROJECT_ID' header, one can't create resources without providing a fake project_id in POST requests. Neutron should remove this need for requests have a fake project_id. Also, neutron does not support 'http_basic' auth_strategy atm which would be a good addition. [1] https://github.com/openstack/neutron- lib/blob/master/neutron_lib/api/definitions/port.py#L90 To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1934039/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

