microsoft / microsoft/aspire

Disable Custom Domain validation on deployment

Open
#7,829 8 comments 0 reactions 0 assignees View on GitHub
area-deployment azure-container-apps
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

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

While it's great that there is a path to validating Custom Domains, there are still cases where this is really just not feasible. For instance any sort of SaaS Application which may provision a new domain/subdomain for tenants using the application.

As an example, we store the tenant data in a database that is created as part of our Aspire deployment. This would create a chicken/egg issue since Aspire needs to deploy in order for us to have the database to connect to and check which tenants should be mapped to.

This would create issues for deployment in trying to map/validate that we have an accurate list of which tenants should or should not be active.

### Describe the solution you'd like

```cs
myResource.PublishAsAzureContainerApp((azure, container) =>
{
container.DisableCustomDomainValidation()
});

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.