r/AZURE • • 9h ago

Media Microsoft Entra Resource Policy: Creating Custom Policies with Rego

Thumbnail
cloudtips.nl
5 Upvotes

Last week, I introduced a super exciting new feature: Microsoft Entra Resource Policy. This feature helps organizations prevent configuration changes that don’t align with their security and governance requirements. By assigning policies directly to your tenant, incoming Microsoft Graph requests are evaluated against your defined rules before any changes are applied. In my previous blog, I demonstrated how to assign and enforce built-in policies. This time, we’re taking things a step further by creating and deploying our own custom policies using Rego. 


r/AZURE • • 6h ago

Discussion Databricks still has no UI for Secret Scopes, so built an open-source web console to manage scopes, secrets, and ACLs (Zero secret persistence + full source on GitHub)

3 Upvotes

Every time my team needed to inspect, rotate, or update ACLs on a Databricks Secret Scope, we had to drop back to databricks secrets CLI commands or raw REST API calls just to check a key, change a secret value, or grant a principal READ/WRITE/MANAGE access.

So built Databricks Secret Manager (DBX Secret Console) an open-source website built on Databricks' native /api/2.0/secrets and OAuth M2M APIs, so teams can manage secret scopes cleanly in one place.

Links:

Why it's actually useful day-to-day

  • Multi-workspace & multi-cloud switching: Connect one Service Principal across AWS, Azure, and GCP Databricks workspaces and switch from a single top-bar menu.
  • On-demand secret reveal & editing: Values stay masked by default, reveal on click, copy in one click, and edit in place with live UTF-8 byte tracking up to Databricks' 128 KB limit.
  • Scope ACL management in the UI: Add or update READ, WRITE, and MANAGE permissions per user, group, or principal without writing JSON/CLI flags.
  • Azure Key Vault guardrails: Detects externally backed AKV scopes and blocks unsupported Databricks secret writes automatically.

How Security Works (and why I open-sourced everything)

  • Passing Service Principal credentials into any web tool shouldn't run on blind trust please inspect the code, test edge cases, or self-host it on your own Cloudflare account:
  • Zero customer secret storage: Databricks secret values, secret keys, scope names, and ACLs are never written to any database, KV store, server log, or localStorage/sessionStorage. Keys are fetched live on demand and cleared from JS memory on hide, workspace switch, or disconnect.
  • Write-only AES-256-GCM credential encryption: Your Service Principal client_secret is encrypted in a Cloudflare Worker using Web Crypto AES-256-GCM with per-record 96-bit random IVs and Associated Authenticated Data (owner_id:sp_id:key_version), and is never returned by any API endpoint after submission.
  • OAuth tokens never reach the browser: M2M /oidc/v1/token exchange happens server-side in ephemeral Worker memory only; the browser receives an opaque __Host-dbx_session cookie (HttpOnly; Secure; SameSite=Strict) over a same-origin /api/* Service Binding proxy.
  • Zero third-party frontend npm dependencies (vanilla ES modules) locked down with Content-Security-Policy: default-src 'self'; script-src 'self'; connect-src 'self'.
  • SSRF validator restricts outbound Worker requests strictly to official HTTPS Databricks domains (*.cloud.databricks.com, *.azuredatabricks.net, *.gcp.databricks.com, *.databricks.us, *.databricks.mil) with redirect: "error".
  • State-changing endpoints enforce exact Origin, X-Requested-With, Sec-Fetch-Site checks, and sliding-window rate limits.
  • One-click full purge on Disconnect: Clicking Disconnect executes a cascading DELETE across your user row, encrypted Service Principal credentials, and workspace hosts in D1 while clearing the session cookie and Worker token cache.

Security testing & feedback welcome: The repo includes the Cloudflare Worker security suite (apps/worker/test/security.test.ts), CI security checks (Gitleaks + CodeQL + CSP lint), and 1-command Cloudflare Pages/Workers + D1 self-hosting instructions (README.md). If you spot any flaw or potential bypass, please check SECURITY.md for Private Vulnerability Reporting or open an issue/PR for UX ideas!


r/AZURE • • 17h ago

Discussion Trying to practice Microsoft Azure, need help

2 Upvotes

So I recently passed my AZ 900 and so I have moved on to trying to learn how to actually do things in Microsoft Azure, and I’m trying to follow along with some of the guided lab exercises in Microsoft learn to prepare for the hands-on applied skills assessments.

Unfortunately, it appears that the lab exercises don’t come with sandboxes to practice in, so I used an account that I had created a few months back to follow along some of the labs with. I’m already passed the three month free trial thing that they give you and so now if I’m not mistaken minus the free 12 month stuff that they give you I think my account has switched to pay as you go.

Everything was going smoothly until I got to the step that required me to spin up a VM. Apparently I am not allowed to spin a VM’s because all of my quotas or whatever are set to zero of zero and so whenever I go to actually create a VM I keep getting errors saying that it failed.

I’m pretty much new to Microsoft Azure and this is my first time actually using resources in the console.

Does anyone know a solution to this or any workaround that I can do to practice for the applied skills assessments?


r/AZURE • • 5h ago

Question ECS Fargate vs EKS for a small set of services at ~1M users?

Thumbnail reddit.com
1 Upvotes