Skip to content

fix: escape shell variables in cluster-roles source blocks - #3173

Merged
gtrivedi88 merged 1 commit into
eclipse-che:mainfrom
gtrivedi88:main
Jul 28, 2026
Merged

fix: escape shell variables in cluster-roles source blocks#3173
gtrivedi88 merged 1 commit into
eclipse-che:mainfrom
gtrivedi88:main

Conversation

@gtrivedi88

Copy link
Copy Markdown
Contributor

Summary

  • Escape shell variables ${USER_ROLES} and ${OPERATOR_NAMESPACE} in cluster-roles source blocks to prevent Asciidoctor from resolving them as AsciiDoc attributes

Root cause

PR #3159 added +attributes to source blocks that contain shell variables. This was needed so {orch-cli} resolves correctly (replacing hardcoded kubectl). But it also caused Asciidoctor to try resolving ${USER_ROLES} and ${OPERATOR_NAMESPACE} as attributes, producing "missing attribute" warnings that fail the publication builder.

Fix

Escape with backslash ($\{USER_ROLES}, $\{OPERATOR_NAMESPACE}) so Asciidoctor renders them literally while still resolving {orch-cli} and {prod-operator}.

Made with Cursor

@gtrivedi88
gtrivedi88 requested review from a team, deerskindoll and mkuznyetsov as code owners July 28, 2026 07:38
@gtrivedi88
gtrivedi88 requested a review from nickboldt July 28, 2026 07:38
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

Click here to review and test in web IDE: Contribute

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

🎊 Navigate the preview: https://6a6861676fe6bc4723593cef--eclipse-che-docs-pr.netlify.app 🎊

The Secure audit PR (eclipse-che#3159) added +attributes to source blocks
that contain shell variables ${USER_ROLES} and ${OPERATOR_NAMESPACE}.
Asciidoctor tried to resolve these as AsciiDoc attributes, causing
"missing attribute" warnings that fail the publication builder.

Escape with backslash so Asciidoctor renders them literally while
still resolving {orch-cli} and {prod-operator}.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gtrivedi88
gtrivedi88 merged commit d94f44c into eclipse-che:main Jul 28, 2026
6 checks passed
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