Skip to content

Commit 1bd56a7

Browse files
rgw/sts: fix for wrong certificate getting picked during
validation of a web token signature. A boolean flag is incorrectly set to true outside the 'if' statement, which causes an incorrect cert to be picked. fixes: https://tracker.ceph.com/issues/54562 Signed-off-by: Pritha Srivastava <[email protected]>
1 parent 16d0004 commit 1bd56a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/rgw/rgw_rest_sts.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ WebTokenEngine::validate_signature(const DoutPrefixProvider* dpp, const jwt::dec
384384
found_valid_cert = true;
385385
break;
386386
}
387-
found_valid_cert = true;
388387
}
389388
if (! found_valid_cert) {
390389
ldpp_dout(dpp, 0) << "Cert doesn't match that with the thumbprints registered with oidc provider: " << cert.c_str() << dendl;

0 commit comments

Comments
 (0)