mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
test(proxy): assert SSO rotation ciphertext fails to decrypt under old master key
This commit is contained in:
parent
d35d68b2a5
commit
3169cb286b
1 changed files with 9 additions and 0 deletions
|
|
@ -14709,6 +14709,15 @@ async def test_rotate_sso_config_reencrypts_all_string_fields(monkeypatch):
|
|||
# non-string field passes through unchanged
|
||||
assert rotated["role_mappings"] == {"admin": ["proxy_admin"]}
|
||||
|
||||
assert (
|
||||
decrypt_value_helper(
|
||||
rotated["google_client_secret"],
|
||||
key="google_client_secret",
|
||||
exception_type="debug",
|
||||
)
|
||||
!= "google-secret"
|
||||
)
|
||||
|
||||
monkeypatch.setattr("litellm.proxy.proxy_server.master_key", new_key)
|
||||
assert (
|
||||
decrypt_value_helper(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue