← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2052916] Re: HTTP get on s3tokens and ec2tokens endpoint gives 500 internal error

 

Reviewed:  https://review.opendev.org/c/openstack/keystone/+/908760
Committed: https://opendev.org/openstack/keystone/commit/6096457d7400c280f9ee07a9c5b9760e74ecee4b
Submitter: "Zuul (22348)"
Branch:    master

commit 6096457d7400c280f9ee07a9c5b9760e74ecee4b
Author: Tobias Urdin <tobias.urdin@xxxxxxxxx>
Date:   Mon Feb 12 08:36:53 2024 +0000

    Dont enforce when HTTP GET on s3tokens and ec2tokens
    
    When calling the s3tokens or ec2tokens API with a
    HTTP GET we should get a 405 Method Not Allowed but
    we get a 500 Internal Server Error because we enforce
    that method.
    
    Closes-Bug: #2052916
    Change-Id: I5f60d10dc25551175cc73ca8f3f28b0b95ec9f99
    Signed-off-by: Tobias Urdin <tobias.urdin@xxxxxxxxx>


** Changed in: keystone
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/2052916

Title:
  HTTP get on s3tokens and ec2tokens endpoint gives 500 internal error

Status in OpenStack Identity (keystone):
  Fix Released

Bug description:
  When doing a HTTP GET against s3tokens and ec2tokens endpoint we
  should get a 405 method not allowed but because the get method is
  getting enforced we get a 500 internal server error instead.

  AssertionError: PROGRAMMING ERROR: enforcement
  (`keystone.common.rbac_enforcer.enforcer.RBACEnforcer.enforce_call()`)
  has not been called; API is unenforced.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/2052916/+subscriptions



References