Repository navigation
Implement dynamic SCEP challenge with webhooks. - #160
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 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
…ok validation is canceled' Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…encertserver into features/dynamic-scep-challenge
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.