Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Python dynamic providers to capture secrets #15864

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Apr 4, 2024

  1. Allow Python dynamic providers to capture secrets

    This allows the serialization used by dynamic providers to capture secrets, and if so, marks the resulting input value as a secret so that the `__provider` property will be a secret in the state.
    
    The `__provider` property will no longer always be a secret. It will only be marked as a secret if a secret was captured during serialization of the provider.
    
    Note: Previously, it wasn't possible to capture Outputs when serializing the resource provider. This change makes it possible and allows secrets to be captured.
    justinvp committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    e2a2c53 View commit details
    Browse the repository at this point in the history
  2. Make the new behavior opt-in

    By default, we continue to always make `__provider` a secret, unless `auto_secret` is set to `True`, in which case we only make `__provider` a secret if any secret Outputs were captured.
    justinvp committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    3448535 View commit details
    Browse the repository at this point in the history
  3. Add some more comments

    justinvp committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    6c23be0 View commit details
    Browse the repository at this point in the history
  4. Adjust Output.get docstring

    justinvp committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    6c3ff8d View commit details
    Browse the repository at this point in the history