Skip to content

Limit module settings returned by workload API - #7560

Open
Bilal Sellak (bilalsellak) wants to merge 2 commits into
Azure:mainfrom
bilalsellak:fix/workload-module-list-settings
Open

Bilal Sellak (bilalsellak) wants to merge 2 commits into
Azure:mainfrom
bilalsellak:fix/workload-module-list-settings

Conversation

@bilalsellak

@bilalsellak Bilal Sellak (bilalsellak) commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

This change is to make he workload API GET /modules response now return only image and imageHash in each module's settings. Other runtime-specific settings, such as createOptions, are omitted. Module names, types, and status are unchanged.

Azure IoT Edge PR checklist:

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines and Best Practices

  • I have read the contribution guidelines.
  • Title of the pull request is clear and informative.
  • Description of the pull request includes a concise summary of the enhancement or bug fix.

Testing Guidelines

  • Pull request includes test coverage for the included changes.
  • Description of the pull request includes
    • concise summary of tests added/modified
    • local testing done.

The workload API module list now returns only the image and image hash
in each module's settings. Other runtime settings, such as create
options, are omitted. Full module settings remain available through the
management API.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The security boundary lacks handler-level regression coverage, and the API wording does not precisely describe the fixed allowlist.

4 open findings
What changed in this PR

Restricts workload module listings to safe image metadata while preserving management API behavior.

Changes:

  • Allows only image and imageHash in workload responses.
  • Adds redaction unit coverage.
  • Updates all workload API specifications.
File Description
edgelet/​edgelet-http-workload/​src/​module/​list.rs Filters module settings and tests redaction.
edgelet/​api/​workloadVersion_2020_07_07.yaml Updates response documentation.
edgelet/​api/​workloadVersion_2019_01_30.yaml Updates response documentation.
edgelet/​api/​workloadVersion_2018_06_28.yaml Updates response documentation.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread edgelet/edgelet-http-workload/src/module/list.rs
Comment thread edgelet/api/workloadVersion_2018_06_28.yaml Outdated
Comment thread edgelet/api/workloadVersion_2019_01_30.yaml Outdated
Comment thread edgelet/api/workloadVersion_2020_07_07.yaml Outdated
Verify that GET /modules returns only image and imageHash for every
module, and state the exact returned settings fields in the workload
API specs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants