Skip to main content

159 posts tagged with "Security"

Security Practices and Solutions

View All Tags

Fixed: "You don't have access to this" (Error Code 53003) When You Sign In to the Azure CLI with a Device Code

· 17 min read
Jagdish Kumawat
Founder @ Dewiride

I signed a second account in to the Azure CLI with az login --use-device-code. The sign-in page took the code and the password, then said "You don't have access to this", with error code 53003 behind its More details link, while the terminal just kept waiting. My tenant's Conditional Access blocks the device code flow, and the same az login without --use-device-code, which signs in through the browser, worked.

Fixed: Framing '…' Violates the Following Content Security Policy Directive: "frame-ancestors …" in a Teams Dialog

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

A Teams dialog that should have shown my agent's web page showed a grey area with a sad-page icon, and the browser's console said Framing '…' violates the following Content Security Policy directive: "frame-ancestors https://teams.microsoft.com https://*.teams.microsoft.com". The page allowed Teams' old addresses, but Teams on the web now runs at teams.cloud.microsoft.

How to Generate a Subresource Integrity (SRI) Hash for a Script in the Terminal

· 9 min read
Jagdish Kumawat
Founder @ Dewiride

A <script> tag that loads code from another site, such as a CDN, runs whatever that site sends. An integrity attribute with the file's hash makes the browser check the file first, and refuse to run it if even one character changed. You make the hash with one command in the terminal.

Fixed: "The HMAC key is 24 bytes long, which is below the minimum recommended length of 64 bytes for SHA512" in Apache Airflow®

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

A fresh Apache Airflow® 3.4.0 installation printed the same warning four times while I signed in and ran one Dag: The HMAC key is 24 bytes long, which is below the minimum recommended length of 64 bytes for SHA512. The key in question is the secret Airflow signs its access tokens with, and the one it generates for you is too short. Here's how I traced it, and the one setting that fixes it.

Fixed: "Endpoint is unsecured. Untrusted apps can send telemetry to the dashboard." in the Aspire Dashboard

· 16 min read
Jagdish Kumawat
Founder @ Dewiride

I started the Aspire Dashboard with the Aspire CLI to watch an ASP.NET Core API's telemetry, and a red banner sat on top of the page: Endpoint is unsecured. Untrusted apps can send telemetry to the dashboard. The dashboard's telemetry endpoint accepts data from any app until you give it an API key. A key removed the banner, and from then on the API had to send the same key, or its telemetry was turned away without a single error in the API.

Build an Overtime Timesheet App in Power Apps — Part 19: Set SharePoint Permissions from the Setup Flow

· 32 min read
Jagdish Kumawat
Founder @ Dewiride

Part 3 locked down the Overtime Timesheet app's SharePoint site by hand: a permission level without delete, the staff group in Visitors, and lists with their own permissions, own-entries-only and content approval. This part adds all of it to the setup flow from Part 18, so a new site gets the same protection in one run, and a second run changes nothing.