Skip to content

Commit 6f376f6

Browse files
committed
added a statement about running trusted code in sidecars
1 parent 82434a7 commit 6f376f6

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

articles/app-service/configure-sidecar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ ms.service: azure-app-service
1212

1313
This article provides practical steps for enabling and configuring sidecars in your App Service app.
1414

15+
> [!IMPORTANT]
16+
> Because sidecars share the same network namespace and environment as your main app, only run trusted code and container images as sidecars.
17+
1518
## Create a sidecar in the Azure portal
1619

1720
1. Go to your App Service resource in the Azure portal.

articles/app-service/overview-sidecar.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Sidecars enable you to add new capabilities, such as monitoring, caching, AI, or
2525

2626
- **Container roles:** Each sidecar-enabled app has one main container (`isMain: true`) and up to nine sidecar containers (`isMain: false`). In the container configuration, `isMain: true` designates the main app container. All others must have `isMain: false`.
2727
- **Networking:** All containers in the app share the same network namespace and communicate over `localhost`. There is no need for service name resolution, so use `localhost:<port>`. Each container must listen on a unique port. Only ports 80 and 8080 are supported for external HTTP traffic. For internal communication, use any available unique port.
28+
29+
> [!IMPORTANT]
30+
> Because sidecars share the same network namespace and environment as your main app, only run trusted code and container images as sidecars.
31+
2832
- **Lifecycle:** Sidecars start, stop, and scale together with the main app container. When your app scales out or in, all associated sidecar containers follow the same lifecycle automatically.
2933
- **Configuration:** Sidecars can be configured via the Azure portal, ARM templates, or CLI. You specify the container image, environment variables, and other settings for each container. App settings are shared across all containers. You can also set container-specific environment variables.
3034
- **Volume mounts:** Each container can have its own volume mounts.

0 commit comments

Comments
 (0)