)]}'
{"id":"openstack%2Fkeystone~1002327","triplet_id":"openstack%2Fkeystone~stable%2F2025.1~I41c2d2dfe6e594ddff8971b2178d278e569f0067","project":"openstack/keystone","branch":"stable/2025.1","hashtags":[],"change_id":"I41c2d2dfe6e594ddff8971b2178d278e569f0067","subject":"auth: encode ec2credential and oauth2_credential in the method bitmask","status":"NEW","created":"2026-08-25 15:24:40.000000000","updated":"2026-08-25 17:45:31.000000000","submit_type":"MERGE_IF_NECESSARY","mergeable":true,"submittable":false,"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"cherry_pick_of_change":1002289,"cherry_pick_of_patch_set":1,"meta_rev_id":"68d2f810a932090787f512a5fe31e1da9d096b7b","_number":1002327,"virtual_id_number":1002327,"owner":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"actions":{},"labels":{"Verified":{"recommended":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"tag":"autogenerated:zuul:check","value":1,"date":"2026-08-25 17:45:31.000000000","permitted_voting_range":{"min":-2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","value":1,"default_value":0,"optional":true},"Code-Review":{"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2026-08-25 17:45:31.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"}],"messages":[{"id":"4a2fce292567d993ffdb2df777ed6c06b900cbc9","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"date":"2026-08-25 15:24:40.000000000","message":"Patch Set 1: Cherry Picked from branch master.","accounts_in_message":[],"_revision_number":1},{"id":"68d2f810a932090787f512a5fe31e1da9d096b7b","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-08-25 17:45:31.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/b6509e7978c546a092f75a0cb8fd8b8a\n\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/08e9cae01fdc4a98ae7f92398c5084f0 : SUCCESS in 15m 56s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/ad09f79c350f42d4abf3c5e2d94fee5a : SUCCESS in 7m 10s\n- openstack-tox-py39 https://zuul.opendev.org/t/openstack/build/3d700681eac749d590c7cd8ea92078a4 : SUCCESS in 11m 59s\n- openstack-tox-py312 https://zuul.opendev.org/t/openstack/build/9bcf03a839124c50b11fd4c339635424 : SUCCESS in 12m 39s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/bc20cfeafe3d4e9abd10789a81dff166 : SUCCESS in 14m 52s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/2a0a37614abe4d198c551c6ca81f963d : SUCCESS in 13m 26s\n- keystone-dsvm-py3-functional https://zuul.opendev.org/t/openstack/build/4b5793bd6c414402a257b8cc8f59d252 : SUCCESS in 31m 31s\n- keystone-dsvm-py3-functional-fips https://zuul.opendev.org/t/openstack/build/31bb3888d44849059437c0ad4b5be1b9 : FAILURE in 37m 09s (non-voting)\n- keystone-dsvm-py3-functional-federation-ubuntu-jammy https://zuul.opendev.org/t/openstack/build/3fd7dce4b76b472ba8617dd08082ccd1 : FAILURE in 7m 48s (non-voting)\n- keystone-dsvm-py3-functional-federation-ubuntu-jammy-k2k https://zuul.opendev.org/t/openstack/build/05355c85fcf54c6e830881f80f3337ad : SUCCESS in 31m 08s (non-voting)\n- keystoneclient-devstack-functional https://zuul.opendev.org/t/openstack/build/1f32ced4174c48c39c5df5a45ca29cf5 : SUCCESS in 16m 40s (non-voting)\n- keystone-dsvm-ldap-domain-specific-driver https://zuul.opendev.org/t/openstack/build/620cb18fc04d4f6ea00d42e2ee5d39b7 : SUCCESS in 29m 41s (non-voting)\n- tempest-full-py3 https://zuul.opendev.org/t/openstack/build/4ecd1e56176f454d88213655afda225e : SUCCESS in 1h 35m 11s\n- grenade https://zuul.opendev.org/t/openstack/build/3838f65e5602407db0e297a5d27b915b : FAILURE in 28m 03s (non-voting)\n- tempest-ipv6-only https://zuul.opendev.org/t/openstack/build/7f21f7eb5cb94285b594ef6cbae37a79 : SUCCESS in 55m 27s\n- keystone-dsvm-functional-oidc-federation https://zuul.opendev.org/t/openstack/build/def1634d3ac94251a9527a24757ca8e9 : SUCCESS in 16m 55s (non-voting)\n\nWarning:\n  File .ssh/known_hosts.old found in build home directory during playbook opendev.org/opendev/base-jobs/playbooks/base/cleanup.yaml for job keystone-dsvm-py3-functional-fips.  Add to preserve-home-paths if safe, or otherwise remove.\n  File .ssh/known_hosts.old found in build home directory during playbook opendev.org/opendev/base-jobs/playbooks/base/post-logs.yaml for job keystone-dsvm-py3-functional-fips.  Add to preserve-home-paths if safe, or otherwise remove.","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"0df7e0e2bedce2f96051bce3cac83a76bd22d3a6","revisions":{"0df7e0e2bedce2f96051bce3cac83a76bd22d3a6":{"kind":"REWORK","_number":1,"created":"2026-08-25 15:24:40.000000000","uploader":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"ref":"refs/changes/27/1002327/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/keystone","ref":"refs/changes/27/1002327/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/keystone refs/changes/27/1002327/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/keystone refs/changes/27/1002327/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/keystone refs/changes/27/1002327/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/keystone refs/changes/27/1002327/1"}}},"commit":{"parents":[{"commit":"8b5cf08d5516380325e371cb0cdfb9b38e75a9b0","subject":"Merge \"Block app credential token rescoping\" into stable/2025.1","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/keystone/commit/8b5cf08d5516380325e371cb0cdfb9b38e75a9b0"}]}],"author":{"name":"Benjamin Pinchon","email":"benjamin.pinchon@corp.ovh.com","date":"2026-08-25 13:20:12.000000000","tz":120},"committer":{"name":"Grzegorz Grasza","email":"xek@redhat.com","date":"2026-08-25 15:24:40.000000000","tz":0},"subject":"auth: encode ec2credential and oauth2_credential in the method bitmask","message":"auth: encode ec2credential and oauth2_credential in the method bitmask\n\nconvert_method_list_to_integer() builds its map from CONF.auth.methods,\nso a method name absent from that list is silently dropped and the\nresult is 0, which convert_integer_to_method_list() turns back into\nan empty list.\n\n\u0027ec2credential\u0027 (keystone.api._shared.EC2_S3_Resource) and\n\u0027oauth2_credential\u0027 (keystone.api.os_oauth2) are written into\ntoken.methods by endpoints that are not auth plugins, so they cannot\nbe listed in CONF.auth.methods: load_auth_methods() would look for a\nkeystone.auth.\u003cname\u003e entry point that does not exist, and the name\nwould become client-requestable on POST /v3/auth/tokens. Neither has\never survived the fernet round-trip.\n\nMaster already ships the EC2 API ban (910ebab06) which rejects\ntokens with \u0027ec2credential\u0027 in token.methods. Without this round-trip\nfix that check never sees the method on a fernet token, so the ban\nis a no-op for issued tokens.\n\nReserve fixed high bits for both so they round-trip. High and fixed\nmeans they never collide with the sequential indexes and adding one\nnever shifts an existing index, so tokens in circulation stay\ndecodable.\n\nThis does not fix tokens already issued: they carry the integer 0\nand still decode to an empty list.\n\nChange-Id: I41c2d2dfe6e594ddff8971b2178d278e569f0067\nAssisted-by: Cursor Grok 4.6 \u003cnoreply@cursor.com\u003e\nSigned-off-by: Grzegorz Grasza \u003cxek@redhat.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/keystone/commit/0df7e0e2bedce2f96051bce3cac83a76bd22d3a6"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/keystone/commit/0df7e0e2bedce2f96051bce3cac83a76bd22d3a6"}]},"branch":"refs/heads/stable/2025.1","conflicts":{"base":"16afc813b7e6de727d8a91e065d7824b06e32925","ours":"8b5cf08d5516380325e371cb0cdfb9b38e75a9b0","theirs":"dbb5c174705153f23f93d143c951a2008c9912b6","merge_strategy":"recursive","contains_conflicts":false}}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"OK","labels":[{"label":"Verified","status":"MAY","applied_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"MAY"},{"label":"Workflow","status":"MAY"}]}],"submit_requirements":[{"name":"Verified","description":"Verified in gate by CI","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Verified\u003dMAX AND -label:Verified\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Verified\u003dMAX","label:Verified\u003dMIN"],"atom_explanations":{"label:Verified\u003dMAX":"","label:Verified\u003dMIN":""}}},{"name":"Code-Review","description":"Code reviewed by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX AND -label:Code-Review\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Code-Review\u003dMAX","label:Code-Review\u003dMIN"],"atom_explanations":{"label:Code-Review\u003dMAX":"","label:Code-Review\u003dMIN":""}}},{"name":"Workflow","description":"Approved for gate by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Workflow\u003dMAX AND -label:Workflow\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Workflow\u003dMAX","label:Workflow\u003dMIN"],"atom_explanations":{"label:Workflow\u003dMAX":"","label:Workflow\u003dMIN":""}}}]}
