Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI #3930] [Fix] fix ut in SessionSigningSuite by getting session…
… public key and user sign from LocalProperty ### _Why are the changes needed?_ Followed by issue #3930 and pr #3932. - correct ut in SessionSigningSuite by fetching session public key and user sign via scala scripts instead of `SET` command in SQL , to prevent accidently redacted by `spark.redaction.regex` - removed `syncronized` in SignUtils introduced in pr #3932 , with confirming no thread safe problem during the signing and verification ### _How was this patch tested?_ - [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3974 from bowenliang123/3932-fix2. Closes #3930 c5f07b9 [liangbowen] comment 1f4ace3 [liangbowen] use KyuubiReservedKeys.KYUUBI_SESSION_USER_SIGN/KYUUBI_SESSION_SIGN_PUBLICKEY for property name a034cbe [liangbowen] style 1f127c1 [liangbowen] remove `synchronized` from `signWithPrivateKey` and `verifySignWithECDSA` in SignUtils ff5a21d [liangbowen] fix ut by getting `kyuubi.session.sign.publickey` and `kyuubi.session.user.sign` via `spark.sparkContext.getLocalProperty` in scala scripts. Authored-by: liangbowen <liangbowen@gf.com.cn> Signed-off-by: ulysses-you <ulyssesyou@apache.org>
- Loading branch information