fix: migrate sandbox and agent environment variables to encrypted only (#6623)

* base

* remove unnnecessary db migration

* update

* fix

* update

* update

* comments

* fix

* revert

* anotha

---------

Co-authored-by: Letta Bot <noreply@letta.com>
This commit is contained in:
jnjpng
2025-12-11 16:26:19 -08:00
committed by Caren Thomas
parent 799ddc9fe8
commit 4be813b956
11 changed files with 52 additions and 72 deletions

View File

@@ -1290,10 +1290,9 @@ async def test_agent_environment_variables_decrypt_on_read(server: SyncServer, d
decrypted = secret_obj.value_enc.get_plaintext()
assert decrypted == "test-value-67890"
# Verify get_value_secret() method works
value_secret = secret_obj.get_value_secret()
assert isinstance(value_secret, Secret)
assert value_secret.get_plaintext() == "test-value-67890"
# Verify direct value_enc access works
assert isinstance(secret_obj.value_enc, Secret)
assert secret_obj.value_enc.get_plaintext() == "test-value-67890"
@pytest.mark.asyncio