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

Enable passing of secure parameters #364

Merged
merged 7 commits into from
Mar 22, 2024

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Mar 14, 2024

PR Summary

  • Add ability to pass secureString and secureObject parameter types
  • These get passed as JSON (aligned with how you'd define them in an ARM parameters file) to resources where properties match:
{
  "secureString": "string"
}

and

{
  "secureObject": { }
}
  • See the test Echo resource as an example
  • Enable execution of expressions for parameter default values
  • Enable type validation of default values for parameters
  • Removed redundant input JSON schema validation since it's already being done in the command resource method invocation

PR Context

@SteveL-MSFT SteveL-MSFT merged commit c867585 into PowerShell:main Mar 22, 2024
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the secure-params branch March 22, 2024 19:42
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 12, 2024
This change updates the casing for the secure parameter types from
`securestring` and `secureobject` to `secureString` and `secureObject`,
as implemented in PowerShell#364.

It updates both the source and composed schemas.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 15, 2024
This change updates the casing for the secure parameter types from
`securestring` and `secureobject` to `secureString` and `secureObject`,
as implemented in PowerShell#364.

It updates both the source and composed schemas.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 16, 2024
This change updates the casing for the secure parameter types from
`securestring` and `secureobject` to `secureString` and `secureObject`,
as implemented in PowerShell#364.

It updates both the source and composed schemas.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 18, 2024
This change updates the casing for the secure parameter types from
`securestring` and `secureobject` to `secureString` and `secureObject`,
as implemented in PowerShell#364.

It updates both the source and composed schemas.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 18, 2024
This change updates the casing for the secure parameter types from
`securestring` and `secureobject` to `secureString` and `secureObject`,
as implemented in PowerShell#364.

It updates both the source and composed schemas.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants