Repository navigation
(GH-1729) Make nonfunctional secret extension manifests invalid #1745
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
Open
Gijs Reijn (Gijsreyn)
wants to merge
5
commits into
PowerShell:main
Choose a base branch
from
Gijsreyn:gh-1729/main/feat-secret-extension-contract
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,126
−61
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9604a96
(GH-1729) Make nonfunctional secret extension manifests invalid
Gijsreyn 6fcd53d
(GH-1729) Make nonfunctional secret extension manifests invalid
Gijsreyn e6ce2e9
Merge branch 'gh-1729/main/feat-secret-extension-contract' of https:/…
Gijsreyn 1f902e2
(GH-1729) Address review feedback on secret extension validation
Gijsreyn aa9f443
Resolve remarks Mikey
Gijsreyn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| _version: 2 | ||
| schemas: | ||
| extension: | ||
| manifest: | ||
| secret: | ||
|
Gijsreyn marked this conversation as resolved.
|
||
| title: | ||
| en-us: Secret command | ||
| description: | ||
| en-us: >- | ||
| Defines how to call the extension to retrieve a secret from a vault. | ||
| markdownDescription: | ||
| en-us: |- | ||
| Defines how to call the extension to retrieve a secret from a vault at runtime. When | ||
| this property is defined, the extension has the `secret` capability and DSC can invoke | ||
| the extension for the [`secret()`][01] configuration function. | ||
|
|
||
| When DSC invokes the `secret` command, it expects the extension to write the secret | ||
| value to stdout as a single line. If the extension writes more than one line to stdout, | ||
| DSC raises an error. If the extension writes nothing to stdout, DSC treats the secret as | ||
| not found for that extension. | ||
|
|
||
| For more information, see the [secret property reference][02]. | ||
|
|
||
| [01]: https://learn.microsoft.com/powershell/dsc/reference/schemas/config/functions/secret | ||
| [02]: https://learn.microsoft.com/powershell/dsc/reference/schemas/extension/manifest/secret | ||
| executable: | ||
| title: | ||
| en-us: Executable | ||
| description: | ||
| en-us: >- | ||
| The name of the command to run to retrieve a secret. | ||
| markdownDescription: | ||
| en-us: |- | ||
| Defines the name of the command to run to retrieve a secret. The value must be the | ||
| name of a command discoverable in the system's `PATH` environment variable or the | ||
| full path to the command. A file extension is only required when the command isn't | ||
| recognizable by the operating system as an executable. | ||
| args: | ||
| title: | ||
| en-us: Arguments | ||
| description: | ||
| en-us: >- | ||
| The arguments to pass to the command to retrieve a secret. The arguments must define | ||
| the secret name input argument exactly once and may define the vault input argument | ||
| at most once. | ||
| markdownDescription: | ||
| en-us: |- | ||
| Defines the list of arguments to pass to the command to retrieve a secret. Each item | ||
| can be a string representing a static argument, an object with the `nameArg` property, | ||
| or an object with the `vaultArg` property. | ||
|
|
||
| The arguments must define exactly one object with the `nameArg` property. DSC passes | ||
| the value of `nameArg` followed by the name of the secret to retrieve. Without this | ||
| argument, DSC can't tell the extension which secret to retrieve, so DSC doesn't load | ||
| the extension manifest. | ||
|
|
||
| The arguments may define at most one object with the `vaultArg` property. DSC passes | ||
| the value of `vaultArg` followed by the name of the vault when the `secret()` function | ||
| specifies a vault. When the function doesn't specify a vault, DSC omits this argument. | ||
| constraints: | ||
| nameArg: | ||
| title: | ||
| en-us: Secret name input argument | ||
| description: | ||
| en-us: >- | ||
| The arguments must define exactly one object with the `nameArg` property. | ||
| markdownDescription: | ||
| en-us: |- | ||
| The arguments must define exactly one object with the `nameArg` property. DSC passes | ||
| the value of `nameArg` followed by the name of the secret to retrieve. Without this | ||
| argument, DSC can't tell the extension which secret to retrieve. | ||
| errorMessage: | ||
| en-us: >- | ||
| The `secret` command must define the secret name input argument exactly once. Define | ||
| exactly one argument in `secret.args` as an object with the `nameArg` property. | ||
| vaultArg: | ||
| title: | ||
| en-us: Vault input argument | ||
| description: | ||
| en-us: >- | ||
| The arguments may define at most one object with the `vaultArg` property. | ||
| markdownDescription: | ||
| en-us: |- | ||
| The arguments may define at most one object with the `vaultArg` property. DSC passes | ||
| the value of `vaultArg` followed by the name of the vault when the `secret()` function | ||
| specifies a vault. | ||
| errorMessage: | ||
| en-us: >- | ||
| The `secret` command defines the vault input argument more than once. Define at most | ||
| one argument in `secret.args` as an object with the `vaultArg` property. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.