Skip to content

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

Feat: Agent improvements, get ETag from secrets request

Daniel Hougaard79efe64504fb
diff --git a/cli/packages/api/api.go b/cli/packages/api/api.go
index 9ae356cd0a..d438adb336 100644
--- a/cli/packages/api/api.go
+++ b/cli/packages/api/api.go
@@ -490,5 +490,7 @@ func CallGetRawSecretsV3(httpClient *resty.Client, request GetRawSecretsV3Reques
return GetRawSecretsV3Response{}, fmt.Errorf("CallGetRawSecretsV3: Unsuccessful response [%v %v] [status-code=%v] [response=%v]", response.Request.Method, response.Request.URL, response.StatusCode(), response.String())
}
+ getRawSecretsV3Response.ETag = response.Header().Get(("etag"))
+
return getRawSecretsV3Response, nil
}