Skip to content

describe constant and show constants print a stored default value, which can be a credential #1524

Open

Description

@MendixMau

Summary

describe constant and show constants print the stored default value, which can be a credential. In agent-driven sessions this lands the secret in the transcript. Security-flavoured. Existing mitigation: mxcli constant set (v0.25) keeps secrets out of the model. #801 (closed) is unrelated.

Repro

  1. create constant M.ApiPassword ( Type: String, DefaultValue: 'example-value' );
  2. mxcli -p app.mpr -c "describe constant M.ApiPassword" and -c "show constants in M".

Expected

Values of constants whose name matches Password, Secret or Token (or constants marked private) are masked; a --reveal flag prints them.

Actual

The literal default is printed. The v0.27.0 source has no masking or reveal flag.

Tested with: Mendix 11.15.0, mxcli v0.26.0 on macOS; v0.27.0 source searched, not run.

Activity

  1. github-actions commented on Oct 16, 2026

    @github-actions

    Issue Triage

    Summary:
    The describe constant and show constants commands expose constant default values (including possible secrets) in the CLI output, which could be captured in agent‑driven session transcripts.

    Checklist (bug report)

    Required info Present? Details
    mxcli version ✅ v0.26.0 (tested)
    Mendix version ✅ 11.15.0
    Scenario (what was done) ✅ Ran mxcli -p app.mpr -c "describe constant M.ApiPassword" and show constants in M
    Expected output ✅ Secrets should be masked; a --reveal flag to show them
    Experienced output ✅ Literal default value is printed (no masking)
    AI bug report (session log or mxcli diag --bundle) ❌ Not provided

    Missing information:
    To help us investigate, could you please provide the session log or the output of mxcli diag --bundle for the commands you ran? This will give us the exact context needed to reproduce and fix the issue.

    Thank you for reporting this!


    Automated triage via OpenRouter — workflow source

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