This PR adds an optional startup option named "apikey". If the API Key is set, calls to the Mountebank API will require a matching value set in the x-api-key header, otherwise an unauthorized response will be returned. This does not affect calls to imposters.
@bbyars would you be interested in pulling this into master? This just optionally adds some minimal security to the API so we don't risk exposing certs and keys.
This PR adds an optional startup option named "apikey". If the API Key is set, calls to the Mountebank API will require a matching value set in the x-api-key header, otherwise an unauthorized response will be returned. This does not affect calls to imposters.
mb start --apikey abc123