Orchardcore azure data protection

From CrestApps/CrestApps.AgentSkills · View interactive version

Orchardcore azure data protection is an AI agent skill from the GitHub repository CrestApps/CrestApps.AgentSkills. Skill for configuring Azure Data Protection in Orchard Core. Covers storing the ASP.NET Core Data Protection key ring in Azure Blob Storage with the OrchardCore.DataProtection.Azure feature, the OrchardCore DataProtection Azure configuration section, environment variable and Key Vault secret names,

How to use this skill

Skill file

Orchard Core Azure Data Protection

Module Overview

OrchardCore.DataProtection.Azure stores the ASP.NET Core Data Protection key

ring in Azure Blob Storage, isolated per tenant. All instances of a load-balanced

deployment must read the same key ring.

Orchard Core uses Data Protection for:

Configuration (`OrchardCore:DataProtection:Azure`)

Guidelines

| Property | Description | Default |

|---|---|---|

| ConnectionString | Storage account connection string (required). | |

| ContainerName | Blob container. Templatable. | dataprotection |

| BlobName | Key ring blob. Templatable. | Sites/{tenant}/DataProtectionKeys.xml |

| CreateContainer | Create the container if missing. | true |

{
  "OrchardCore": {
    "DataProtection": {
      "Azure": {
        "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey;EndpointSuffix=core.windows.net",
        "ContainerName": "dataprotection",
        "BlobName": "",
        "CreateContainer": true
      }
    }
  }
}

Default Key Storage Path

One container, one folder per tenant:

dataprotection/Sites/{tenant}/DataProtectionKeys.xml

Multi-Tenant Templating

Container per Tenant

{
  "OrchardCore": {
    "DataProtection": {
      "Azure": {
        "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey;EndpointSuffix=core.windows.net",
        "ContainerName": "{{ ShellSettings.Name }}-dataprotection",
        "BlobName": "{{ ShellSettings.Name }}DataProtectionKeys.xml",
        "CreateContainer": true
      }
    }
  }
}

Multi-Instance Deployments

Symptoms of Missing Shared Key Storage

Recommended Production Configuration

{
  "OrchardCore": {
    "DataProtection": {
      "Azure": {
        "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=prodaccount;AccountKey=prodkey;EndpointSuffix=core.windows.net",
        "ContainerName": "dataprotection",
        "CreateContainer": false
      }
    }
  }
}

Keep the connection string out of source control: use an environment variable

or a Key Vault secret.

Upgrading from 3.x

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.