Skip to content

Implement dynamic SCEP challenge with webhooks. - #160

Merged
jjrdk merged 6 commits into
masterfrom
features/dynamic-scep-challenge
Nov 26, 2026
Merged

jjrdk merged 6 commits into
masterfrom
features/dynamic-scep-challenge

Conversation

@jjrdk

@jjrdk jjrdk commented Nov 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

@jjrdk
jjrdk requested a balanced review from Copilot November 26, 2026 17:31
@jjrdk jjrdk self-assigned this Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Caller cancellation can leave CSR/request state retained indefinitely in Intune’s singleton dictionary, while the captured HTTP client risks stale connections and per-row report queries add excessive database round trips.

3 open issues
What changed in this PR

Adds optional webhook authorization to OpenCertServer’s Intune SCEP integration while preserving Intune challenge validation, plus a protected certificate-backed device report.

Changes:

  • Adds a fail-closed HTTPS webhook with bearer authentication and a configurable timeout.
  • Exposes device reporting scoped to configured Intune certificate profiles.
  • Documents configuration and adds BDD scenarios, including optional simulator interoperability checks.
File Description
tests/​opencertserver.contrib.intune.tests/​TestHostBuilder.cs Supports custom Intune options and handlers; maps reporting.
tests/​opencertserver.contrib.intune.tests/​Steps/​DynamicScep.cs Implements webhook, reporting, and simulator test steps.
tests/​opencertserver.contrib.intune.tests/​Features/​DynamicScep.feature Covers authorization decisions, failures, and report access.
src/​opencertserver.contrib.intune/​README.md Introduces webhook authorization and simulator testing.
src/​opencertserver.contrib.intune/​IntuneJson.cs Adds webhook models and report serialization support.
src/​opencertserver.contrib.intune/​IntuneDeviceReport.cs Implements paginated, profile-filtered certificate reporting.
src/​opencertserver.contrib.intune/​DynamicChallengeValidator.cs Adds webhook validation after Intune approval.
src/​opencertserver.contrib.intune/​DynamicChallengeOptions.cs Defines and validates webhook settings.
src/​opencertserver.contrib.intune/​ContribIntuneExtensions.cs Registers the validator and protected report endpoint.
src/​opencertserver.certserver/​Program.cs Wires webhook configuration and device reporting into the host.
src/​opencertserver.certserver/​appsettings.json Adds disabled-by-default webhook configuration.
docs/​standards.md Summarizes authorization behavior and linked test coverage.
docs/​getting-started.md Adds webhook setup and reporting guidance.
docs/​documentation.md Defines the webhook contract and report limitations.

Review effort: Balanced

jjrdk and others added 5 commits November 26, 2026 20:11
…ok validation is canceled'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…encertserver into features/dynamic-scep-challenge
@jjrdk
jjrdk merged commit 2a9c0a1 into master Nov 26, 2026
6 checks passed
@jjrdk
jjrdk deleted the features/dynamic-scep-challenge branch November 26, 2026 20:56
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