Skip to content

Add a few bits about HTTPS #1007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/extensibility/custom-resources.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Create custom resource types for .NET Aspire
description: Learn how to create a custom resource for an existing containerized application.
ms.date: 05/17/2024
ms.date: 05/29/2024
ms.topic: how-to
ms.custom: devx-track-extended-azdevcli
---
Expand Down Expand Up @@ -333,6 +333,12 @@ If those API calls return a successful response (HTTP 200, Ok) then you should b

In the following sections, various technical details are discussed which are important to understand when developing custom resources for .NET Aspire.

### Secure networking

In this example, the MailDev resource is a container resource which is exposed to the host machine over HTTP and SMTP. The MailDev resource is a development tool and isn't intended for production use. To instead use HTTPS, see [MailDev: Configure HTTPS](https://github.com/maildev/maildev/blob/357a20edcd205413d3590aedb8fcd7c97563c40d/docs/https.md).

When developing custom resources that expose network endpoints, it's important to consider the security implications of the resource. For example, if the resource is a database, it's important to ensure that the database is secure and that the connection string is not exposed to the public internet.

### The `ReferenceExpression` and `EndpointReference` type

In the preceding code, the `MailDevResource` had two properties:
Expand Down
Loading