Fly Machines API exec stdin - confidentiality, payload limits and completion guarantees

Hi Fly team,

We’re evaluating the Machines API POST /v1/apps/{app}/machines/{id}/exec endpoint for a security-sensitive, read-only comparison operation.

The proposed request would pass a bounded configuration JSON payload (maximum 16 KiB before JSON escaping) through stdin to an explicitly identified temporary Machine. No authentication tokens or database credentials would be included.

Before implementing this, could you clarify:

  1. Confidentiality: Are stdin and request-body contents recorded in control-plane logs, tracing, audit systems or support diagnostics? If so, who can access them and how long are they retained?

  2. Size limits: What are the supported maximum sizes for stdin and the complete JSON request body?

  3. Execution completion: If a request times out, disconnects or returns an incomplete response, can the guest command continue running? Is there a supported way to determine the outcome without executing it again?

  4. Exit status: Can a successful guest exit code of zero be omitted from the JSON response? What is the recommended way to establish successful completion unambiguously?

  5. Targeting: Does the app/Machine-specific endpoint guarantee execution exclusively against the specified Machine ID?

We’re particularly interested in whether this endpoint is appropriate for confidential, non-persistent input with strict execution verification.

We’re requesting documentation and clarification only. No commands, configuration changes or account operations are required.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.