Authenticated encryption for enterprise secrets (#1078)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-17 20:36:34 +02:00
1 parent 031874cebf
commit 274d718314
26 files changed
+740 -89

No files matched your search

@@ -0,0 +1,19 @@
namespace AIStudio.Tools;
/// <summary>
/// The formats in which AI Studio encrypts the secrets of enterprise configuration plugins.
/// </summary>
public enum EnterpriseEncryptionFormat
{
/// <summary>
/// "ENC:v1:", which every version of AI Studio reads. It is not authenticated, so a wrong
/// encryption secret is not always detected.
/// </summary>
V1,
/// <summary>
/// "ENC:v2:", which is authenticated: AI Studio refuses every value encrypted with another
/// secret or changed afterward. Versions before v26.10.1 cannot read it.
/// </summary>
V2,
}