-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fixed issue when registry creds are provided for ACRs using containerapp up
command
#7198
Fixed issue when registry creds are provided for ACRs using containerapp up
command
#7198
Conversation
️✔️Azure CLI Extensions Breaking Change Test
|
Hi @harryli0108, |
Thank you for your contribution! We will review the pull request and get back to you soon. |
The change looks good to me overall. However, could you please clarify: was this a regression? If yes, do you know when/how it was introduced? |
Another question: could you please clarify if this fix should be in the extension (this repo), or in the base Azure CLI? At this point some of our changes are checked in in the Extensions repo (mostly for preview features), while all the base features are in the base Azure CLI repo so that customers can get these features without installing an extra extension. |
Hi @harryli0108 The following test is failed because of the api-version of containerapp has been update from 2023-08-01-preview to 2023-11-02-preview, please rerun the test or checkout this file to main as you have rerun it before. Thanks.
|
Hi @harryli0108 Please merge the latest code from main branch.
|
These tests failed:
I will handle the others but do not include test_containerapp_dev_service failed because command Fixed: #7236 |
src/containerapp/HISTORY.rst
Outdated
@@ -11,7 +11,8 @@ upcoming | |||
0.3.47 | |||
++++++ | |||
* 'az containerapp add-on' : support for add-on milvus create and delete commands | |||
* [Breaking Change] 'az containerapp service': deprecate command from Azure CLI version 2.59.0 | |||
* 'az containerapp up' : Fix registry not found error in subscription when registry server parameters are provided for ACR from another subscription |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.3.47
has been released, please move this description to upcoming
.
Where is test |
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_python310_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_get_customdomainverificationid_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_get_customdomainverificationid_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerappjob_create_with_environment_id.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerappjob_create_with_environment_id.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_storage.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_node18_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_identity_system.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_identity_system.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_preview_create_with_environment_id.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_preview_create_with_environment_id.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerappjob_create_with_yaml.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_source_with_bookworm_buildpack_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_source_with_bookworm_buildpack_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_mtls.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerappjob_create_with_yaml.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerappjob_create_with_yaml.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_create_with_vnet_yaml.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_create_with_vnet_yaml.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_image_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_image_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_node18_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_node18_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_certificate_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_java_component.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_java_component.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_show_all_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_show_all_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_resiliency.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_resiliency.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_update_custom_domains.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_update_custom_domains.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_custom_domains_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_dev_add_on_binding_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_resiliency.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_on_arc_auto_install_extension_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_dapr_component_resiliency.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_dapr_component_resiliency.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_environment_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_environment_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_python310_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_python310_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_managed_service_binding_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_managed_service_binding_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_source_with_multiple_environments_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_source_with_multiple_environments_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_custom_domains_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_custom_domains_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_without_arguments_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_on_arc_auto_install_extension_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_usages.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerappjob_create_with_environment_id.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_dapr_component_resiliency.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_java_component.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_environment_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml | View secret | |
- | Basic Auth String | 1dd747e | src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container.yaml | View secret | |
- | Basic Auth String | 1dd747e | src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container_command.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_update_custom_domains.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_resource_group_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_resource_group_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml | View secret | |
- | Basic Auth String | 1dd747e | src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container.yaml | View secret | |
- | Basic Auth String | 1dd747e | src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container_command.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_update_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_update_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 1d8b8e7 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_source_with_bookworm_buildpack_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_show_all_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_dev_service_binding_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_dev_service_binding_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_resource_group_e2e.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_la_dynamic_json.yaml | View secret | |
- | Microsoft Azure Storage Account Key | 0c4f9d6 | src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_create_with_vnet_yaml.yaml | View secret |
and 59 others.
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
Can you help to merge this PR? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help to resolve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need support
Description
This PR aims to fix an issue with current container app up command in the scenario where user provides
--registry-server
,--registry-password
, and--registry-username
for ACRs. In the past, up command will treat it as ACRs in the current subscription and apply them. However, this results in issues when user starts to use ACRs cross subscriptions.Before
After
Related command
az containerapp up
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally? (pip install wheel==0.30.0
required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.json
automatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json
.