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

**URL:** <https://community.fly.io/t/fly-machines-api-exec-stdin-confidentiality-payload-limits-and-completion-guarantees/28953>\
**Category:** Questions / Help\
**Tags:** machines\
**Created:** [October 30, 2026, 11:23am UTC](https://community.fly.io/t/fly-machines-api-exec-stdin-confidentiality-payload-limits-and-completion-guarantees/28953 "2026-10-30T11:23:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eid](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@Eid](https://community.fly.io/u/Eid)\
**Post date:** [October 30, 2026, 11:23am UTC](https://community.fly.io/t/fly-machines-api-exec-stdin-confidentiality-payload-limits-and-completion-guarantees/28953/1 "2026-10-30T11:23:34Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [November 9, 2026, 11:23am UTC](https://community.fly.io/t/fly-machines-api-exec-stdin-confidentiality-payload-limits-and-completion-guarantees/28953/2 "2026-11-09T11:23:36Z")

</div>

Closed on November 9, 2026, 11:23am UTC

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