Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Raw secrets operations models

Daniel Hougaardebdfe31c1705
diff --git a/cli/packages/api/model.go b/cli/packages/api/model.go
index 56b9807f7a..4797955c12 100644
--- a/cli/packages/api/model.go
+++ b/cli/packages/api/model.go
@@ -161,6 +161,14 @@ type Secret struct {
PlainTextKey string `json:"plainTextKey"`
}
+type RawSecret struct {
+ SecretKey string `json:"secretKey,omitempty"`
+ SecretValue string `json:"secretValue,omitempty"`
+ Type string `json:"type,omitempty"`
+ SecretComment string `json:"secretComment,omitempty"`
+ ID string `json:"id,omitempty"`
+}
+
type GetEncryptedWorkspaceKeyRequest struct {
WorkspaceId string `json:"workspaceId"`
}
@@ -409,12 +417,23 @@ type CreateSecretV3Request struct {
SecretPath string `json:"secretPath"`
}
+type CreateRawSecretV3Request struct {
+ SecretName string `json:"-"`
+ WorkspaceID string `json:"workspaceId"`
+ Type string `json:"type,omitempty"`
+ Environment string `json:"environment"`
+ SecretPath string `json:"secretPath,omitempty"`
+ SecretValue string `json:"secretValue"`
+ SecretComment string `json:"secretComment,omitempty"`
+ SkipMultilineEncoding bool `json:"skipMultilineEncoding,omitempty"`
+}
+
type DeleteSecretV3Request struct {
SecretName string `json:"secretName"`
WorkspaceId string `json:"workspaceId"`
Environment string `json:"environment"`
- Type string `json:"type"`
- SecretPath string `json:"secretPath"`
+ Type string `json:"type,omitempty"`
+ SecretPath string `json:"secretPath,omitempty"`
}
type UpdateSecretByNameV3Request struct {
@@ -427,6 +446,15 @@ type UpdateSecretByNameV3Request struct {
SecretValueTag string `json:"secretValueTag"`
}
+type UpdateRawSecretByNameV3Request struct {
+ SecretName string `json:"-"`
+ WorkspaceID string `json:"workspaceId"`
+ Environment string `json:"environment"`
+ SecretPath string `json:"secretPath,omitempty"`
+ SecretValue string `json:"secretValue"`
+ Type string `json:"type,omitempty"`
+}
+
type GetSingleSecretByNameV3Request struct {
SecretName string `json:"secretName"`
WorkspaceId string `json:"workspaceId"`