Describe the bug
From @tejaswikolli-web ...
"
We have a request to update az acr | Microsoft Learn for more specific documentation on the use of build-args and secret-build-args in the az acr build command in Azure CLI.
The user has noted that some users have mistakenly exposed GitHub credentials by putting them in build-args instead of secret-build-args.
-
--build-args: This is used to pass build arguments that are not sensitive. These arguments are not encrypted and can be seen by anyone who can view the build logs.
-
--secret-build-args: This is used to pass sensitive build arguments, such as passwords or access tokens. These arguments are encrypted and cannot be seen in the build logs.
The user is requesting more specific documentation to help users understand the difference between these two options and to prevent the accidental exposure of sensitive information.
"
Currently the descriptions of these two parameters are as follows:
-
--build-args: Build argument in '--build-arg name[=value]' format. Multiples supported by passing --build-arg multiple times.
-
--secret-build-args: Secret build argument in '--secret-build-arg name[=value]' format. Multiples supported by passing '--secret-build-arg name[=value]' multiple times.
Two requests:
- If customers are misunderstanding these two parameters and exposing secrets as a result, we need futher clarity given to the descriptions.
- Currently there is no example using these two parameters. To help customers understand the use of these two parameters, please add two examples -- one for each parameter.
Related command
az acr build
Errors
No known customer error. This GitHub issue is about a reported customer misunderstanding.
Issue script & Debug output
n/a
Expected behavior
n/a
Environment Summary
Azure CLI 2.56.0
Additional context
This issue was originally reported through MSFT e-mail and and is being copied here for engineering response.
Describe the bug
From @tejaswikolli-web ...
"
We have a request to update az acr | Microsoft Learn for more specific documentation on the use of
build-argsandsecret-build-argsin theaz acr buildcommand in Azure CLI.The user has noted that some users have mistakenly exposed GitHub credentials by putting them in
build-argsinstead ofsecret-build-args.--build-args: This is used to pass build arguments that are not sensitive. These arguments are not encrypted and can be seen by anyone who can view the build logs.--secret-build-args: This is used to pass sensitive build arguments, such as passwords or access tokens. These arguments are encrypted and cannot be seen in the build logs.The user is requesting more specific documentation to help users understand the difference between these two options and to prevent the accidental exposure of sensitive information.
"
Currently the descriptions of these two parameters are as follows:
--build-args: Build argument in '--build-arg name[=value]' format. Multiples supported by passing --build-arg multiple times.--secret-build-args: Secret build argument in '--secret-build-arg name[=value]' format. Multiples supported by passing '--secret-build-arg name[=value]' multiple times.Two requests:
Related command
az acr build
Errors
No known customer error. This GitHub issue is about a reported customer misunderstanding.
Issue script & Debug output
n/a
Expected behavior
n/a
Environment Summary
Azure CLI 2.56.0
Additional context
This issue was originally reported through MSFT e-mail and and is being copied here for engineering response.