microsoft / Intune-Resource-Access

Sample code and scripts for interfacing with the Intune Resource Access APIs.
MIT License
56 stars 59 forks source link

Feature request: 3P integration testing capability #158

Open hmphome opened 1 month ago

hmphome commented 1 month ago

Hello,

Having a Third-party certification authority setup with Intune we want to have a means to smoke-test the whole setup end-to-end every few minutes, to make sure it's available when needed.

Specifically:

The obvious way would be to have a real device which onboards itself to Intune, so the whole flow is executed. However, such a setup isn't easy to achieve, to have a real device/VM reliably running all the time and somehow forced to re-onboard itself to Intune every few minutes, in sync with some other tool looking into what's going on on the CA. And then keeping it updated and all that.

(I wonder how this repository has been tested with the real Intune. Maybe there's some software emulator which can communicate to Intune and pretend to be a real device? It'd be great addition to this repository then.)

Another idea which we have tried - capture one real CSR from a real device and try to replay it.

Observations:

The last point isn't very clear as the error code doesn't seem to be documented. But it probably means that the ChallengePassword is signed by a signing certificate which is periodically rotated, and when it happens all previously generated ChallengePasswords stop being accepted. There's nothing in the public documentation about it, and there's no way to predict when such a rotation is going to take place next time.

Ask: a software solution which could be used to meaningfully test a 3P CA and Intune integration.