Skip to content

feat(cli): aggregate step authorization into top-level config field #1200

Merged
gastonyelmini merged 2 commits intomainfrom
release-17.4.0
Apr 9, 2026
Merged

feat(cli): aggregate step authorization into top-level config field #1200
gastonyelmini merged 2 commits intomainfrom
release-17.4.0

Conversation

@gastonyelmini
Copy link
Copy Markdown
Contributor

@gastonyelmini gastonyelmini commented Apr 9, 2026

Adds a top-level authorization field to the generated ingestionSourcesConfig.json that aggregates all authorization requirements from every integration step — regardless of whether the step has an ingestionSourceId or not.

Previously, authorization metadata was only available inside childIngestionSources, which excluded root steps (steps matched directly by ingestionSourceId) and steps without an ingestionSourceId (like fetch-account). This meant downstream consumers like docs-v2 could never generate complete authorization documentation.

The new field collects permissions, roles, oauthScopes, apis, endpoints, licenses, and documentationLinks from all steps, deduplicates them, and sorts them alphabetically. It is only present when at least one step declares authorization.

@gastonyelmini gastonyelmini requested a review from a team as a code owner April 9, 2026 16:04
Adds a top-level "authorization" field to the generated ingestion
sources config that aggregates permissions, roles, oauthScopes, apis,
endpoints, licenses, and documentationLinks from all integration steps,
regardless of ingestionSourceId. Values are deduplicated and sorted.

This enables downstream consumers like docs-v2 to generate complete
authorization documentation without traversing childIngestionSources.
@gastonyelmini gastonyelmini changed the title fix(cli): include matched root steps in childIngestionSources feat(cli): aggregate step authorization into top-level config field Apr 9, 2026
@gastonyelmini gastonyelmini merged commit db92eb9 into main Apr 9, 2026
8 checks passed
@gastonyelmini gastonyelmini deleted the release-17.4.0 branch April 9, 2026 17:10
Copy link
Copy Markdown
Contributor

@VDubber VDubber left a comment

Choose a reason for hiding this comment

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

Review Summary

Clean, well-tested feature addition. The code correctly deduplicates, sorts, and conditionally omits the authorization field. Version bumps are consistent across all packages. No security, data volume, or performance concerns.

Dimension Score (1-5) Rationale
Security risk 1 No auth, credential, or data exposure changes. CLI-time metadata only.
Data volume impact 1 No effect on runtime data pipelines. Adds a small field to a static config JSON.
Performance risk 1 Build-time CLI command processing a handful of steps. No runtime impact.

Verdict: Approve with suggestions — see inline comments.

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.

3 participants