diff --git a/src/Api/SecretsManager/Models/Request/ProjectCreateRequestModel.cs b/src/Api/SecretsManager/Models/Request/ProjectCreateRequestModel.cs index 65c4d244d2..3014ecdf82 100644 --- a/src/Api/SecretsManager/Models/Request/ProjectCreateRequestModel.cs +++ b/src/Api/SecretsManager/Models/Request/ProjectCreateRequestModel.cs @@ -8,6 +8,7 @@ public class ProjectCreateRequestModel { [Required] [EncryptedString] + [EncryptedStringLength(1000)] public string Name { get; set; } public Project ToProject(Guid organizationId) diff --git a/src/Api/SecretsManager/Models/Request/ProjectUpdateRequestModel.cs b/src/Api/SecretsManager/Models/Request/ProjectUpdateRequestModel.cs index 4490e02c4e..176b6cc598 100644 --- a/src/Api/SecretsManager/Models/Request/ProjectUpdateRequestModel.cs +++ b/src/Api/SecretsManager/Models/Request/ProjectUpdateRequestModel.cs @@ -8,6 +8,7 @@ public class ProjectUpdateRequestModel { [Required] [EncryptedString] + [EncryptedStringLength(1000)] public string Name { get; set; } public Project ToProject(Guid id) diff --git a/src/Api/SecretsManager/Models/Request/SecretCreateRequestModel.cs b/src/Api/SecretsManager/Models/Request/SecretCreateRequestModel.cs index c243d6e465..9d6f8c9aa1 100644 --- a/src/Api/SecretsManager/Models/Request/SecretCreateRequestModel.cs +++ b/src/Api/SecretsManager/Models/Request/SecretCreateRequestModel.cs @@ -8,14 +8,17 @@ public class SecretCreateRequestModel : IValidatableObject { [Required] [EncryptedString] + [EncryptedStringLength(1000)] public string Key { get; set; } [Required] [EncryptedString] + [EncryptedStringLength(5000)] public string Value { get; set; } [Required] [EncryptedString] + [EncryptedStringLength(10000)] public string Note { get; set; } public Guid[] ProjectIds { get; set; } diff --git a/src/Api/SecretsManager/Models/Request/SecretUpdateRequestModel.cs b/src/Api/SecretsManager/Models/Request/SecretUpdateRequestModel.cs index 6416849d24..d5cd320fff 100644 --- a/src/Api/SecretsManager/Models/Request/SecretUpdateRequestModel.cs +++ b/src/Api/SecretsManager/Models/Request/SecretUpdateRequestModel.cs @@ -8,14 +8,17 @@ public class SecretUpdateRequestModel : IValidatableObject { [Required] [EncryptedString] + [EncryptedStringLength(1000)] public string Key { get; set; } [Required] [EncryptedString] + [EncryptedStringLength(5000)] public string Value { get; set; } [Required] [EncryptedString] + [EncryptedStringLength(10000)] public string Note { get; set; } public Guid[] ProjectIds { get; set; } diff --git a/src/Api/SecretsManager/Models/Request/SerivceAccountUpdateRequestModel.cs b/src/Api/SecretsManager/Models/Request/SerivceAccountUpdateRequestModel.cs index 2a1885142e..017749725f 100644 --- a/src/Api/SecretsManager/Models/Request/SerivceAccountUpdateRequestModel.cs +++ b/src/Api/SecretsManager/Models/Request/SerivceAccountUpdateRequestModel.cs @@ -8,6 +8,7 @@ public class ServiceAccountUpdateRequestModel { [Required] [EncryptedString] + [EncryptedStringLength(1000)] public string Name { get; set; } public ServiceAccount ToServiceAccount(Guid id) diff --git a/src/Api/SecretsManager/Models/Request/ServiceAccountCreateRequestModel.cs b/src/Api/SecretsManager/Models/Request/ServiceAccountCreateRequestModel.cs index 60ab75b682..6771669209 100644 --- a/src/Api/SecretsManager/Models/Request/ServiceAccountCreateRequestModel.cs +++ b/src/Api/SecretsManager/Models/Request/ServiceAccountCreateRequestModel.cs @@ -8,6 +8,7 @@ public class ServiceAccountCreateRequestModel { [Required] [EncryptedString] + [EncryptedStringLength(1000)] public string Name { get; set; } public ServiceAccount ToServiceAccount(Guid organizationId)