Azure Container Registry
- Obtain your Azure service account key
NOTE: In SaladCloud Portal, we are only going to get and make use of Username and Password from any of the listed three authentication method from Azure and here are the links their official documentation for each of the authentication methods blow including their pros and cons.
đ SaladCloud only makes use of Username and Password
Azure AD Service Principal
Pros:
- Better security: Service principal allows for more secure authentication than using a shared user account.
- Granular Access Control: You can assign specific permissions to the service principal, ensuring it has only the access it needs and nothing more.
- Automating access management: Service principal is a great way to automate authentication and authorization to access Azure resources using code or scripts.
Cons:
- Complexity: The service principal requires additional configuration steps, which can be challenging for inexperienced users.
- Lack of visibility: Unlike a user account, it can be more difficult to track which service principal is accessing which resources.
- Additional maintenance: Managing the lifecycle of a service principal can add to the overall management burden of the application.
Admin User
This authentication method refers to a user account that has been granted administrative privileges in an Azure subscription or resource group. Admin Users are able to perform administrative tasks such as creating and managing resources, setting permissions and access policies, and configuring settings that affect the entire subscription or resource group.
Pros:
- Easy to generate: Admin users can be created and granted access quickly and easily.
- Broad Access: Admin users have access to all resources within an account, which can be useful for managing multiple resources.
- Flexible: Admin users can be granted temporary access as needed and then removed when no longer required.
Cons:
- Security Risks: Admin users pose a greater security risk as they have unrestricted access to all resources within an account.
- Lack of Granular Control: Admin users canât be assigned granular permissions, which can lead to overprivileged access( i.e Admins may have too much access because they canât be given specific permissions leading to security risks)
- Difficult to Audit: Because admin users have access to all resources, it can be challenging to track their activity and audit their actions.
Repository-Scoped Access Token
To create a repository-scoped access token in Azure, youâll need to follow the steps outlined in the guide you linked to, which involves creating a personal access token in GitHub, then using that token to authenticate with Azure.
Pros:
- Specific Access: Repository-scoped access tokens can be scoped to specific repositories, ensuring that only the necessary resources are accessed.
- Enhance Security: Tokens can be revoked at any time, providing an additional layer of security in case of a breach or unauthorized access.
- No impact on users: Repository-scoped access tokens can be used to provide access without the need for user accounts.
Cons:
- Requires Enterprise Plan: This method requires an enterprise plan, which can be a barrier for smaller organizations or individuals.
- Limited scope: Repository-scoped access tokens are limited to the resources they are scoped to and canât be used to access other resources.
- Complexity: Managing access tokens can be complex and require additional configuration and management steps.
Note: The Azure AD Service Principal documentation is for Azure AD, but the same concept applies to other Azure services such as Azure Container Registry.
- Access the SaladCloud portal, Set up your SCE by selecting the private registry tab when setting the image source. In
the service dropdown option, choose âAzure Container Registryâ and provide the following information:
- Image name (example:
https://myregistry.azurecr.io/my-repository/my-image:v1.0
) - Username and Password
- Image name (example:
- Continue to configure and deploy your container group
Was this page helpful?