Skip to content

feat(sbom): support environment variables for os-pm - #217

Merged
nervgh merged 7 commits into
mainfrom
feat/sbom/add-pm-env
Aug 3, 2026
Merged

feat(sbom): support environment variables for os-pm#217
nervgh merged 7 commits into
mainfrom
feat/sbom/add-pm-env

Conversation

@nervgh

@nervgh nervgh commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

nervgh added 7 commits July 30, 2026 21:05
Add feature specification for supporting environment variables in OS
package manager configuration, enabling private registry access,
proxy configuration, and custom package manager behavior.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Add design documents for the new `packages[].env` field, including
YAML config schema, Go API contract, data model, implementation
plan, research, and quickstart guide.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Users can now specify environment variables in os-pm packages
directives, which are injected as inline prefixes before the
package manager install command. Validation ensures only
POSIX-compliant variable names are accepted.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Replace the single envVarTmpl with separate formatEnvVars and
formatSecretVar functions. Update InstallCmd signature to accept
env map. Remove post-processing in GeneratePackagesCommands and
rely solely on InstallCmd. Add POSIX validation for env var names.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Allow user-defined environment variables (e.g., CUSTOM_VAR,
DOCKER_CONFIG) to be passed as inline shell prefixes before package
manager install commands. Previously, only PACKAGES_VERSION and
REGISTRY were injected via the secret resolution template
(envVarTmpl). Rename envVarTmpl to formatSecretVar for clarity and
refactor helpers to use samber/lo.

Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
@nervgh
nervgh marked this pull request as ready for review July 31, 2026 09:07
@nervgh
nervgh merged commit 8bc1d20 into main Aug 3, 2026
14 of 15 checks passed
@nervgh
nervgh deleted the feat/sbom/add-pm-env branch August 3, 2026 17:31
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