Trove ships with a default admin_token in paste

Bug #1299332 reported by Jamie Lennox
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Jamie Lennox
Icehouse
Fix Released
Medium
Jamie Lennox

Bug Description

The admin_token is a security override for middleware authentication that allows the user to register against keystone without a username and password.

It will generally not be used in a production system and it will be different (if available) for every deployment so we shouldn't ship a sample one that looks real.

Changed in trove:
assignee: nobody → Jamie Lennox (jamielennox)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/83270
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=ae696056fbac7d74a395710934950e0013cd4d37
Submitter: Jenkins
Branch: master

commit ae696056fbac7d74a395710934950e0013cd4d37
Author: Jamie Lennox <email address hidden>
Date: Thu Mar 27 12:08:21 2014 +1000

    Don't specify admin_token in paste config

    This is not a value that is going to be useful on other systems and
    shouldn't be included in the default pipeline.

    Closes-Bug: #1299332
    Change-Id: I714539b7536965fa08a3ddc64493b481df7397e3

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
milestone: none → juno-1
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/95057

Revision history for this message
Jamie Lennox (jamielennox) wrote :

It has been fixed for the sample etc file, however it managed to sneak back into some test config files that devstack uses.

Changed in trove:
status: Fix Committed → In Progress
Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Just removing the admin_token isn't a satisfying solution. There should be admin_{user,tenant_name,password}.

Absolutely all other OpenStack projects have these. Even after the above patch, I have to manually patch the trove configuration file to fix it in my package, this is annoying.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/95057
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=9db80e79ea3e687000121729648af7e79b7b2d78
Submitter: Jenkins
Branch: master

commit 9db80e79ea3e687000121729648af7e79b7b2d78
Author: Jamie Lennox <email address hidden>
Date: Fri May 23 13:02:45 2014 +1000

    Remove admin_token from configs

    A previous review removed the admin_token from the sample config file.
    It appears that devstack doesn't use that file but instead uses one of
    the .test files.

    Admin tokens are actively discouraged as a form of authenticating in
    auth_token middleware and the behaviour when using admin_token in
    combination with a username and password (as this default produces in
    devstack) can lead to problems in authentication.

    Closes-Bug: #1299332
    Change-Id: I78d2c184f7937006b808d580e3663ab055f7c5fe

Changed in trove:
status: In Progress → Fix Committed
Revision history for this message
Loic Dachary (dachary) wrote :

Thomas, you write : "Absolutely all other OpenStack projects have these. Even after the above patch, I have to manually patch the trove configuration file to fix it in my package, this is annoying.". Could you provide a few URLs showing that ? It looks like there is a confusion between devstack needs and packaging requirement ;-)

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Loic, I'm not talking about the *.test files, but really trove.conf and so on. These are the one which I care for. I don't really care about devstack (I don't use it, though I do use tempest for package validation).

Revision history for this message
Shuichiro MAKIGAKI (shuichiro-makigaki) wrote :

Thomas,
I agree with you, and other OpenStack components (cinder, glance, neutron, etc.) also have these configs as default.
I opened a new Bug #1325482 about admin_{user,tenant_name,password}.
If you have a chance it would be great to hear any feedback.

Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/100659

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (stable/icehouse)

Reviewed: https://review.openstack.org/100659
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=6fd76f882f08c6c617851f460eab87d67e9df86c
Submitter: Jenkins
Branch: stable/icehouse

commit 6fd76f882f08c6c617851f460eab87d67e9df86c
Author: Jamie Lennox <email address hidden>
Date: Thu Mar 27 12:08:21 2014 +1000

    Don't specify admin_token in paste config

    This is not a value that is going to be useful on other systems and
    shouldn't be included in the default or test pipelines.

    The two similar commits were squashed together here.

    (cherry picked from commit ae696056fbac7d74a395710934950e0013cd4d37)
    (cherry picked from commit 9db80e79ea3e687000121729648af7e79b7b2d78)

    Closes-Bug: #1299332
    Change-Id: I714539b7536965fa08a3ddc64493b481df7397e3

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in trove:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.