Skip to content

fi-core 1.2.0 exports process command-line arguments and OS user on every span #607

Closed

Description

@nik13

What happens

Since the zero-code release (@traceai/fi-core 1.2.0, typescript/packages/fi-core/src/otel.ts applicationResource), every FITracerProvider merges detectResources({ detectors: [envDetector, processDetector] }) into its resource. OpenTelemetry's processDetector adds:

  • process.pid, process.executable.name, process.executable.path
  • process.command, process.command_args
  • process.owner (the OS user name)
  • process.runtime.*

These attributes are exported with every span to Future AGI (and to any other OTLP destination). process.command_args can contain secrets passed on the command line (--api-key=..., connection strings), and process.owner is a personal identifier.

Where it surfaced

The coding-agent packages assert that hook traces never carry local host.* / process.* identity. After merging dev (fi-core 1.2.0) into the coding-agent integration branch, those privacy tests failed in 10 adapter suites. The integration branch now strips host.* / process.* in @traceai/agent-core before export, but other fi-core users still send them.

Suggested fix

  • Make process/host detection opt-in (or drop process.command_args, process.command and process.owner by default), and document the switch.
  • Apply the same content-privacy policy (FI_HIDE_*, redaction) to resource attributes, or exclude them from export unless explicitly enabled.
  • Add a test that a default provider exports no process.command_args / process.owner.

Activity

  1. added a commit that references this issue on Nov 8, 2026
    2c3a6e8
  2. nik13 commented on Nov 8, 2026

    @nik13
    ContributorAuthor

    Fixed on dev by #614 (2c3a6e8). @traceai/fi-core 1.2.1 detects only process.runtime.* by default; OTEL_NODE_RESOURCE_DETECTORS opts in to host, os and process attributes. It ships with the next dev→main release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions