taskcluster / ec2-manager

Mozilla Public License 2.0
2 stars 14 forks source link

Add the claimCredentials endpoint #74

Closed walac closed 5 years ago

walac commented 5 years ago

claimCredentials receives a RSA2048 signature of the identity document and returns the credentials for the worker.

The document is validated according using the iid-verify [1] package.

Informations about the instance, like instance-id and region are extracted from the identity document.

The given instance must be in a running state, otherwise the endpoint will fail.

[1] https://www.npmjs.com/package/iid-verify

jhford commented 5 years ago

@walac please re-flag me in bugzilla when the tests are passing :)