Skip to content

Commit 9fcf379

Browse files
author
Jill Grant
authored
Merge pull request #278048 from matternst7258/main
[operator-nexus] Service Principal best practices and guidance
2 parents 0ea0424 + 8352720 commit 9fcf379

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

articles/operator-nexus/TOC.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@
148148
href: howto-credential-rotation.md
149149
- name: Credential Manager Key Vault
150150
href: how-to-credential-manager-key-vault.md
151-
- name: Service Principal Rotation
152-
href: howto-service-principal-rotation.md
153151
- name: Network Fabric
154152
expanded: false
155153
items:
@@ -243,6 +241,12 @@
243241
href: howto-use-mde-runtime-protection.md
244242
- name: Configure Network Access Control Lists for SSH Access on Management VPN
245243
href: howto-configure-acls-for-ssh-management-on-access-vpn.md
244+
- name: Service Principal Best Practices
245+
href: howto-service-principal.md
246+
expanded: false
247+
items:
248+
- name: Service Principal Rotation
249+
href: howto-service-principal-rotation.md
246250
- name: Install CLI Extension
247251
href: howto-install-cli-extensions.md
248252
- name: Troubleshooting
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Azure Operator Nexus service principal best practices
3+
description: Guidance how to properly use Service Principals in Operator Nexus.
4+
ms.service: azure-operator-nexus
5+
ms.custom: template-how-to
6+
ms.topic: how-to
7+
ms.date: 06/12/2024
8+
author: matternst7258
9+
ms.author: matthewernst
10+
---
11+
12+
# Service principal best practices
13+
14+
Service principals in Azure are identity entities that are used by applications, services, and automation tools to access specific Azure resources. They can be thought of as 'users' for applications, allowing these applications to interact with Azure services. Service principals provide and control permissions to Azure resources within your subscription, allowing you to specify exactly what actions an application can perform in your environment.
15+
16+
For more information on how to create a Service principal, an existing Azure Learn [documentation](/entra/architecture/service-accounts-principal) goes into Service Principal fundamentals.
17+
18+
## Service principals in Operator Nexus
19+
20+
A single customer-provided Service principal is used by Operator Nexus to facilitate the connectivity between Azure and the on-premises cluster.
21+
22+
## Creating a service principal
23+
24+
For information on how to rotate a service principal, reference [how to create a service principal](../active-directory/develop/howto-create-service-principal-portal.md).
25+
26+
## Rotating a service principal
27+
28+
For information on how to rotate a service principal, reference [how to rotate service principal](../operator-nexus/howto-service-principal-rotation.md).
29+
30+
## Best practices
31+
32+
The list is a high-level list of recommended security considerations to take into account when managing a new service principal.
33+
34+
- **Least Privilege**: Assign the minimum permissions necessary for the service principal to perform its function. Avoid assigning broad permissions if they aren't needed.
35+
- **Lifecycle Management**: Regularly review and update service principals. Remove or disable them when not required.
36+
- **Use Managed Identities**: Where possible, use Azure Managed Identities instead of creating and managing service principals manually.
37+
- **Secure Secrets**: If a service principal uses a password (client secret), ensure credentials are stored securely. Consider using Azure Key Vault.
38+
- **Monitor Activity**: Use Azure Monitor and Azure Log Analytics to track the activities of your service principals.
39+
- **Rotation of Secrets**: Regularly rotate and change the service principal's secrets. The maximum recommended duration is 180 days.
40+
- **Use Azure Policy**: Implement Azure policies to audit and enforce best practices for service principals.

0 commit comments

Comments
 (0)