Azure / Azure/Azure-Spring-Apps

Remove need for a password when deploying container image from Azure Container Registry

オープン
#42 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Tracking
主要言語
言語のデータがありません
スター
9
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

**Is your feature request related to a problem? Please describe.**

When creating a new deployment, or updating a deployment, for a container image hosted within Azure Container Registry into Azure Spring Apps, a registry username and password must be passed in the az cli command line with the following parameters: --registry-username and --registry-password.

Reference: https://learn.microsoft.com/en-us/cli/azure/spring/app/deployment?view=azure-cli-latest#az-spring-app-deployment-create

We would like to avoid needing to use a password.

**Describe the solution you'd like**

Allow the use of a managed identity to connect to the container registry, or allow an access token to be passed similar to the ACR login command documented here - https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli#az-acr-login-with---expose-token

**Describe alternatives you've considered**

There does not appear to be any other alternatives when running from the command line.

When running within a DevOps pipelines, store the password into Key Vault and setup the pipeline variables to read from Key Vault.

Though, this requires somebody to generate a password and put it into Key Vault.

**Describe the Customer Impact**

Would like to avoid the need for any password.

**Additional context**

It seems the password is required due to the Spring Apps API requiring it to be set within the imageregistrycredential as documented here - https://learn.microsoft.com/en-us/rest/api/azurespringapps/deployments/update?tabs=HTTP#imageregistrycredential

**Can we contact you for additional details?**

Yes.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Azure CLI deployment create/update parameters と Azure Spring Apps deployments update API、特に imageregistrycredential から始めます。要求されている managed identity または ACR access-token フローを、現在の API および CLI のドキュメントと比較します。Azure Container Registry のイメージをパスワードを指定せずにデプロイでき、サポートされている認証フローが文書化およびテストされていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, spring-boot
領域
authentication, backend-api-design, cloud
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。