pulumi/pkg/backend
Chris Smith c408068075
Add User-Agent header to CLI requests (#881)
Today we don't send any version information with API requests to the service, so we cannot make breaking changes between versions of the backend API while preserving backwards compatibility.

This PR adds a `User-Agent` header with REST requests that sends a CLI version number of "1". If the service were to make a breaking change, it could use this header to determine which response handler to use. (e.g. return a different response for "" or "1" and another for "2".) Obviously we want to avoid being in this situation, but in the event that we need to make a breaking change, we'll need this value.

We send the Pulumi version as well, though the SDK will probably rev much more quickly than the backend API client version.

Fixes #848
2018-02-05 09:38:00 -08:00
..
cloud Add User-Agent header to CLI requests (#881) 2018-02-05 09:38:00 -08:00
local Clean up colorization logic 2018-01-31 15:46:14 -08:00
state Support secrets for cloud stacks. 2017-12-22 07:59:27 -08:00
backend.go Clean up colorization logic 2018-01-31 15:46:14 -08:00
display.go Clean up colorization logic 2018-01-31 15:46:14 -08:00
stack.go Clean up colorization logic 2018-01-31 15:46:14 -08:00
updates.go Add "pulumi history" command (#826) 2018-01-24 18:22:41 -08:00