For Python automation against Azure or Microsoft Graph, the secure baseline is: create an App Registration as the application definition, use its Application (client) ID as the stable identifier in code, let Microsoft Entra create or associate a service principal as the tenant-local security principal, grant only the minimum Azure RBAC roles or Graph application permissions needed at the narrowest possible scope, obtain tokens with a supported library such as MSAL or Azure Identity, and let the target resource enforce authorization using the token’s app identity plus the assigned roles and permissions. In Microsoft Entra, the application object and service principal are distinct objects: the app object defines the application globally in its home tenant, while the service principal is the concrete instance used in a tenant. Microsoft documents that when you register a new
Every tool, repo, and tutorial worth knowing. Nothing left out.
| # | Name | Description | Link |
|---|---|---|---|
| 01 | Official Docs | Complete CC documentation | code.claude.com/docs |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- All chat responses and explanations: Russian only
- All git commit messages: English only
- All code comments, docstrings, variable names: English only
- All PR descriptions, issue comments, CI/CD messages: English only
- All file names, function names, class names: English only
- All review to Jira: English only
- When explaining what you did after a commit or file change — explain in Russian,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [build-system] | |
| requires = ["setuptools>=68"] | |
| build-backend = "setuptools.build_meta" | |
| [project] | |
| name = "kvpass" | |
| version = "0.1.0" | |
| requires-python = ">=3.11" | |
| dependencies = [ | |
| "azure-identity>=1.16.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from math import log | |
| import requests | |
| import json | |
| import logging | |
| from requests.exceptions import ( | |
| ConnectionError, | |
| Timeout, | |
| RequestException, |
gh api repos/username/repo_name/branches/main/protection \
--method PUT \
--input - <<'JSON'
{
"required_status_checks": null,
"enforce_admins": true,
"required_pull_request_reviews": {
"dismiss_stale_reviews": false,
"require_code_owner_reviews": true,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SERVER="192.168.10.211" | |
| TMPFILE=$(mktemp) | |
| showmount -e $SERVER > "$TMPFILE" | |
| echo "# ===============================" | |
| echo "# NFS mounts for $SERVER" | |
| echo "# ===============================" |
NewerOlder
