ee5779f699
Bumps [semver](https://github.com/npm/node-semver) from 7.3.8 to 7.5.3. - [Release notes](https://github.com/npm/node-semver/releases) - [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/node-semver/compare/v7.3.8...v7.5.3) --- updated-dependencies: - dependency-name: semver dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
index.js | ||
package-lock.json | ||
package.json |
README.md
Azure Key Vault Mock Attestation service
This folder contains the source code for the Azure Key Vault Mock Attestation service which is used to run the Secure Key Release live tests for Azure Key Vault.
Secure Key Release requires a signed attestation in order to release the key. In order to simluate the attestation we created this mock service that can generate a fake key for testing key release as well as provide endpoints for the Managed HSM to call out when verifying the attestation token.
Endpoints
GET /generate-test-token
: called by the test itself, it returns a signed token that can be passed to the Managed HSM when releasing the key.GET /.well-known/openid-configuration
: the OIDC discovery document containing thejwks_uri
as described in the OIDC spec. The service uses/keys
as thejwks_uri
.GET /keys
: Thejwks_uri
points to this endpoint, and is used to get the public key of the attestation service in order to verify the attestation token.
How to use the service
This service is published as a Docker container to the Azure SDK Tools Docker container registry and the image can be used to deploy the service to an Azure App Service or Azure Container Instance as needed.
Note: The service is not intended to be used in production, it is only used for testing.
Locally you can run the service by running the following command:
npm install
npm run start
To start an express app service locally using port 5000.