Skip to content

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

Merge pull request #7620 from Infisical/bernie/pki-348-increase-windows-post-command-character-limit-to-8192

carlosmonastyrski7975c9331503
diff --cc docs/documentation/platform/pki/applications/certificate-syncs/linux-server.mdx
index 7e3ccfbebf,2cf4512d9f..248a531e5b
--- a/docs/documentation/platform/pki/applications/certificate-syncs/linux-server.mdx
+++ b/docs/documentation/platform/pki/applications/certificate-syncs/linux-server.mdx
@@@ -149,11 -149,11 +149,11 @@@ The field accepts a whole script, so se
<PostSyncCommandVariables />
-### Length Limit
+### Length limit
- A command is limited to 2048 characters, counted after the variables are substituted. For anything longer, put the logic in a script on the server and call that script.
+ A command is limited to 8192 characters, counted after the variables are substituted. For anything longer, put the logic in a script on the server and call that script.
-### Post-Sync Command FAQ
+### Post-sync command FAQ
<AccordionGroup>
<Accordion title="When exactly does the command run?">
diff --cc docs/documentation/platform/pki/applications/certificate-syncs/windows-server.mdx
index 93f877262b,ec3cae5c14..d823981782
--- a/docs/documentation/platform/pki/applications/certificate-syncs/windows-server.mdx
+++ b/docs/documentation/platform/pki/applications/certificate-syncs/windows-server.mdx
@@@ -157,11 -157,13 +157,13 @@@ Your Gateway runs the command, never In
<PostSyncCommandVariables />
-### Length Limit
+### Length limit
- A command is limited to 2048 characters. Windows caps a command line at 8191 characters and the command is sent to PowerShell encoded, which expands it, so the substituted values count against the same budget. If a long command combined with a sync that delivers many certificates does not fit, the sync reports it clearly. Move the logic into a script file on the server and call that script instead.
+ A command is limited to 8192 characters, counted after the variables are substituted. For anything longer, put the logic in a script on the server and call that script.
+
+ Going past 2048 characters requires a Gateway on Infisical CLI v0.43.124 or later. See the Gateway version note above.
-### Post-Sync Command FAQ
+### Post-sync command FAQ
<AccordionGroup>
<Accordion title="When exactly does the command run?">