Skip to content

Fix unwanted back-quoting in usage string - #259

Merged
Andriy Knysh (aknysh) merged 2 commits into
cloudposse:masterfrom
stoned:fix-usage-desc
Nov 20, 2022
Merged

Andriy Knysh (aknysh) merged 2 commits into
cloudposse:masterfrom
stoned:fix-usage-desc

Conversation

@stoned

@stoned stoned commented Nov 20, 2022

Copy link
Copy Markdown
Contributor

what

  • Prevent, unwanted IMHO, backquoted word substitution in flag's usage message

why

  • Because these substitutions make the usage messages less understandable

references

Comment thread cmd/terraform_generate_varfiles.go Resolved

@aknysh Andriy Knysh (aknysh) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please see comments

Co-authored-by: Andriy Knysh <[email protected]>

@aknysh Andriy Knysh (aknysh) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks stoned

@aknysh
Andriy Knysh (aknysh) merged commit 401d88c into cloudposse:master Nov 20, 2022
Erik Osterman (Cloud Posse) (osterman) added a commit that referenced this pull request Jul 24, 2026
Dependabot alert #260 (high severity): postcss <= 8.5.17 is vulnerable to
path traversal via sourceMappingURL auto-loading, allowing arbitrary
.map file disclosure. Bumps the existing pnpm.overrides pin from
^8.5.10 to ^8.5.18 (patched), resolving to 8.5.23. Regenerates
pnpm-lock.yaml and NOTICE accordingly; website build verified clean.

Not addressed here: Dependabot alert #259 (github.com/google/cel-go,
medium severity, GHSA-gcjh-h69q-9w9g) already has a dedicated open
remediation PR (#2800) bumping to the patched v0.29.0 — duplicating
that bump on this unrelated branch would risk a go.sum conflict with
that PR, so it's left to land there.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Andriy Knysh (aknysh) added a commit that referenced this pull request Jul 26, 2026
* fix: restore auth for evaluated list commands

* fix(auth): correct describe-stacks skip-auth tests, add fix-log record

The describe-stacks auth-manager gate now also considers ProcessTemplates
(fixed in f1839ee), so the pre-existing skip-auth tests that only
disabled --process-functions no longer matched the intended behavior.
Updates them to disable both templates and functions, and adds a
regression test proving auth is still resolved when templates remain
enabled. Also adds the docs/fixes record for the nested-auth-inheritance
fix.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* [autocommit] formatting fixes

* fix(security): bump postcss to remediate GHSA-r28c-9q8g-f849

Dependabot alert #260 (high severity): postcss <= 8.5.17 is vulnerable to
path traversal via sourceMappingURL auto-loading, allowing arbitrary
.map file disclosure. Bumps the existing pnpm.overrides pin from
^8.5.10 to ^8.5.18 (patched), resolving to 8.5.23. Regenerates
pnpm-lock.yaml and NOTICE accordingly; website build verified clean.

Not addressed here: Dependabot alert #259 (github.com/google/cel-go,
medium severity, GHSA-gcjh-h69q-9w9g) already has a dedicated open
remediation PR (#2800) bumping to the patched v0.29.0 — duplicating
that bump on this unrelated branch would risk a go.sum conflict with
that PR, so it's left to land there.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* chore: regenerate NOTICE to match current go.sum after rebase

Rebasing onto the atmos-pro[bot] autocommit left NOTICE referencing
grpc-go v1.82.1, which doesn't match this branch's actual go.sum
(v1.81.1). Regenerating via scripts/generate-notice.sh restores the
accurate, go.sum-derived URL.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(auth): address CodeRabbit feedback on PR #2801

- cmd/list/dependencies.go: only treat --identity=false as AuthDisabled;
  an empty/default identity must still let a newly created auth manager
  run (matches the pattern already used in cmd/list/instances.go).
- cmd/list/settings.go: derive authDisabled from authManager == nil
  instead of hardcoding false, so an explicit --identity=false is
  actually honored by ExecuteDescribeStacksWithOptions instead of
  silently attempting per-component auth resolution.
- cmd/describe_skip_auth_test.go: strengthen the three new
  describe-stacks auth-guard tests to assert ProcessTemplates directly
  and document why the injected setCliArgsForDescribeStackCli stub is
  never invoked (getRunnableDescribeStacksCmd always calls the
  package-level function against the real cmd.Flags()), so the
  assertions are proven to exercise real behavior rather than pass
  coincidentally.
- docs/fixes/2026-07-24-nested-auth-inheritance.md: fix the Validation
  section's run count (3 targeted runs, not 4).

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* refactor(auth): replace mutable-func-var test seams with generated-mock interfaces

CodeRabbit flagged cmd/list/utils.go's createAuthManagerWithStackScan and
internal/exec/template_funcs_component.go's executeComponentFuncTerraformOutputs
as bare package-level func vars swapped by hand-written stubs in tests, instead
of the project's mandated interface + mockgen pattern. Rather than deferring to
a follow-up issue, convert both now, and fold in a third pre-existing instance
of the same anti-pattern (internal/exec/terraform_query.go's authManagerFactory)
so all three auth-manager-factory seams share one consistent, generated-mock
style, matching the existing TerraformOutputGetter convention.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
Co-authored-by: atmos-pro[bot] <173522224+atmos-pro[bot]@users.noreply.github.com>
Co-authored-by: Andriy Knysh <[email protected]>
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