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

Add parameter to set revision --revision for the Azure Service Mesh addon while creating AKS cluster. #7270

Merged
merged 12 commits into from
Feb 29, 2024

Conversation

deveshdama
Copy link
Contributor

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az aks create -g myResourceGroup -n myCluster --enable-azure-service-mesh --revision asm-1-17

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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.

Copy link

azure-client-tools-bot-prd bot commented Feb 7, 2024

⚠️Azure CLI Extensions Breaking Change Test
⚠️aks-preview
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter revision

Copy link

Hi @deveshdama,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 7, 2024

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

It would be great if you could help update one of the existing live test cases to cover the new option.

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

It would be great if you could help update one of the existing live test cases to cover the new option.

@FumingZhang
Copy link
Member

Feature owner queued live tests, test passed!

  • test_aks_azure_service_mesh_with_pluginca
  • test_aks_azure_service_mesh_enable_disable
  • test_aks_azure_service_mesh_with_ingress_gateway
  • test_aks_azure_service_mesh_with_egress_gateway
  • test_aks_azure_service_mesh_get_revisions
  • test_aks_azure_service_mesh_get_upgrades

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhoxing-ms
Copy link
Contributor

@wangzelin007 Could you please bypass the CI issue?

Copy link

gitguardian bot commented Feb 29, 2024

⚠️ GitGuardian has uncovered 94 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_python310_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_get_customdomainverificationid_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_get_customdomainverificationid_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_image_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_image_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_storage.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_node18_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_identity_system.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_identity_system.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_preview_create_with_environment_id.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_preview_create_with_environment_id.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_mtls.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_create_with_vnet_yaml.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_create_with_vnet_yaml.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_node18_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_node18_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_certificate_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 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 1705364 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 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_resiliency.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_resiliency.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_update_custom_domains.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_update_custom_domains.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_custom_domains_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_resiliency.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_environment_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_environment_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_python310_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_python310_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_custom_domains_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_custom_domains_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_without_arguments_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_usages.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_with_environment_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_image_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_update_custom_domains.yaml View secret
- Microsoft Azure Storage Account Key 1705364 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 1705364 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 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_custom_domains.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_update_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_update_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 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 1705364 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 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_la_dynamic_json.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_create_with_vnet_yaml.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_certificate_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_certificate_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_without_arguments_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_patch_list_and_apply_without_arguments_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_logs_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_logs_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_logs_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_dapr_components.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_update_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_dapr_components.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_dapr_components.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_nfsazurefile_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_nfsazurefile_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_tcp_ingress.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_storage.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_env_storage.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_preview_create_with_environment_id.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_nfsazurefile_e2e.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_preview_create_with_environment_id.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_preview_create_with_environment_id.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_tcp_ingress.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_tcp_ingress.yaml View secret
- Microsoft Azure Storage Account Key 1705364 src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_get_customdomainverificationid_e2e.yaml View secret

and 14 others.

🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. 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


🦉 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!

@wangzelin007 wangzelin007 merged commit 141ed26 into Azure:main Feb 29, 2024
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS Auto-Assign Auto assign by bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants