Skip to content

Conversation

tonybaloney
Copy link
Contributor

Purpose

The database code is a spaghetti-code of bicep and Jinja2 templates that makes it hard to read and lint.

This PR refactors them into modules for each purpose then moves the AZD core code to AVM

@secure()
param dbserverPassword string

module dbserver '../core/database/cosmos/cosmos-pg-adapter.bicep' = {

Check failure

Code scanning / templateanalyzer

Administrator Username Types.

Resource properties can be configured using a hardcoded value or Azure Bicep/ template expressions. When specifying sensitive values use secure parameters such as secureString or secureObject. Sensitive values that use deterministic expressions such as hardcodes string literals or variables are not secure.
name: containerAppsEnvironmentName
}

resource postgres 'Microsoft.App/containerApps@2023-04-01-preview' = {

Check failure

Code scanning / templateanalyzer

Use managed identity for authentication.

Using managed identities have the following benefits: - Your app connects to resources with the managed identity. You don't need to manage credentials in your container app. - You can use role-based access control to grant specific permissions to a managed identity. - System-assigned identities are automatically created and managed. They're deleted when your container app is deleted. - You can add and delete user-assigned identities and assign them to multiple resources. They're independent of your container app's life cycle. - You can use managed identity to authenticate with a private Azure Container Registry without a username and password to pull containers for your Container App. - You can use managed identity to create connections for Dapr-enabled applications via Dapr components.
@tonybaloney
Copy link
Contributor Author

This is a WIP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant