Skip to content

Add documentation for Managed Identity v2 Hackathon#885

Open
gladjohn wants to merge 2 commits intodevfrom
gladjohn-hack-2026
Open

Add documentation for Managed Identity v2 Hackathon#885
gladjohn wants to merge 2 commits intodevfrom
gladjohn-hack-2026

Conversation

@gladjohn
Copy link

@gladjohn gladjohn commented Mar 6, 2026

Document the results and outcomes of the Managed Identity v2 Multi-Language Implementation Hackathon, highlighting the achievements and deliverables.

Document the results and outcomes of the Managed Identity v2 Multi-Language Implementation Hackathon, highlighting the achievements and deliverables.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comprehensive documentation file under spikes/prototype/ describing the results and deliverables of a Managed Identity v2 Multi-Language Implementation Hackathon. The document covers the creation of PowerShell and Python implementations of MSI v2 with mTLS Proof-of-Possession token support, with the Python package published on PyPI as msal-msiv2==1.35.0rc3.

Changes:

  • Adds a 458-line Markdown document (2026_MS_SecurityHackathon_MSIV2.md) documenting the hackathon objectives, deliverables, architecture diagrams, security properties, testing results, and learnings.
  • Documents both PowerShell (in the dotnet MSAL repo) and Python implementations, including API examples, pipeline integration details, and comparison tables.
  • Includes Mermaid diagrams for the MSI v2 flow and end-to-end sequence.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 6, 2026 14:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


## Impact & Results

- **~2,250 lines** of production-ready Python code generated across **8 files**
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent line count: line 95 says "≈2,420 lines added" (which matches the per-file totals in the table: 1,595+182+46+175+56+321+45 = 2,420), but this line says "~2,250 lines." Please reconcile these two figures to avoid confusion.

Suggested change
- **~2,250 lines** of production-ready Python code generated across **8 files**
- **≈2,420 lines** of production-ready Python code generated across **8 files**

Copilot uses AI. Check for mistakes.
Comment on lines +95 to +106
**8 New Files (≈2,420 lines added)**

| File | Lines | Purpose |
|------|------:|---------|
| `msal/msi_v2.py` | 1,595 | End-to-end Windows MSI v2 flow: NCrypt → CSR → IMDS → mTLS |
| `msal/msi_v2_attestation.py` | 182 | ctypes bindings to AttestationClientLib.dll for KeyGuard attestation |
| `msal/managed_identity.py` | 46 | Core integration + `MsiV2Error` exception |
| `sample/msi_v2_sample.py` | 175 | Full E2E sample with logging and endpoint calls |
| `run_msi_v2_once.py` | 56 | Minimal one-shot MSI v2 example |
| `tests/test_msi_v2.py` | 321 | Unit tests (thumbprint, binding, gating behavior) |
| `msi-v2-sample.spec` | 45 | PyInstaller spec for standalone executable |
| `msal/__init__.py` | — | Exports `MsiV2Error` |
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The table header says "8 New Files" but msal/managed_identity.py already exists in this repository (689 lines). Similarly, msal/__init__.py also already exists. The 46 lines listed likely refer to lines added or modified, not a new file. Consider clarifying the header (e.g., "8 Files Added or Modified") and updating the "Lines" column description to indicate whether these are total lines or lines changed.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants