Skip to content

Add iac/ folder validation for JSON patches and linked base templates - #1227

Draft
bhapas wants to merge 2 commits into
elastic:mainfrom
bhapas:iac-folder-validation
Draft

Add iac/ folder validation for JSON patches and linked base templates#1227
bhapas wants to merge 2 commits into
elastic:mainfrom
bhapas:iac-folder-validation

Conversation

@bhapas

@bhapas bhapas commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds an optional iac/ folder to integration and input packages, and iac_blueprints manifest fields so packages can declare RFC 6902 JSON Patch contributions against a versioned blueprint id.

This does not introduce a new type: blueprint package. Canonical blueprints live in the integrations repo root. Integration and input packages ship:

  • RFC 6902 JSON Patch files (*.patches.json) in iac/
  • Linked or inlined base templates (*.cloudformation.json / *.arm.json), with allowLink: true so elastic-package .link files can point at a shared template

Blueprint ids are versioned: <provider>/<trust-model>/<scope>/v<n> (for example aws/federated-identity/account/v1).

Why is it important?

Packages need a spec-backed way to contribute IaC patches on top of shared base templates without a separate blueprint package type. Validating patch documents and linked templates in package-spec keeps invalid ops, missing required fields, unknown iac/ files, and unversioned blueprint ids from landing in packages.

Checklist

Related issues

bhapas and others added 2 commits August 14, 2026 13:03
Packages can ship RFC 6902 JSON patches and linked base templates without introducing a blueprint package type, using versioned ids such as aws/federated-identity/account/v1.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@infra-vault-gh-plugin-prod

infra-vault-gh-plugin-prod Bot commented Aug 14, 2026

Copy link
Copy Markdown

💔 Build Failed

Failed CI Steps

History

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.

1 participant