mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 17:47:21 +00:00
Authenticated encryption for enterprise secrets (#1078)
This commit is contained in:
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,
|
||||
}
|
||||
Reference in new issue
Block a user