Azure / Azure/Azure-Spring-Apps

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

Ouverte
#42 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Tracking
Langage dominant
Aucune donnée de langage
Étoiles
9
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par les Azure CLI deployment create/update parameters et la Azure Spring Apps deployments update API, en particulier imageregistrycredential. Comparez les flux demandés de managed identity ou d’ACR access-token avec la documentation actuelle de l’API et de la CLI. Le travail est terminé lorsqu’une image Azure Container Registry peut être déployée sans fournir de mot de passe, avec le flux d’authentification pris en charge documenté et testé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, spring-boot
Domaine
authentication, backend-api-design, cloud
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.