Skip to content

feat: add env configuration parameter#145

Open
binlab wants to merge 1 commit intocarlpett:masterfrom
binlab:feat/add-env-configuration
Open

feat: add env configuration parameter#145
binlab wants to merge 1 commit intocarlpett:masterfrom
binlab:feat/add-env-configuration

Conversation

@binlab
Copy link
Copy Markdown

@binlab binlab commented Nov 7, 2025

Summary

This PR implements support for passing environment variables to the process before invoking the SOPS library.

It’s conceptually similar to the following PRs:

However, in this implementation, environment variables are injected at the resource level, not globally at the provider level.
(Technically, both approaches can coexist if needed.)


Motivation

This design resolves several limitations and edge cases related to using environment variables only within the provider block — especially when dynamic or per-resource secret configuration is required.

A detailed explanation, along with working examples, can be found here:


Testing

The examples include complete tests that demonstrate real-world usage, including dynamic variable passing and decryption behavior validation.

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