0.6
0.6
2021-03-11
Breaking change
backend
will be consumed by proxy and request as transport configuration now. The previous behaviour
thatbackend
represents aproxy
functionality is removed. Also thebackend
block must be defined in
definitions
,proxy
orrequest
.- Config migration, add a
proxy
block:
- Config migration, add a
endpoint "/old" {
backend = "reference"
# or
backend {
#...
}
}
# change to:
endpoint "/new" {
proxy {
backend = "reference"
}
# or
proxy {
backend {
#...
}
}
}
Change
- Client-Request and upstream response body buffering by default
- Server shutdown delay and deadline defaults to
0s
now and can be configured via env if required - Websocket connection upgrades in combination with
proxy {}
are disabled- we will add a proxy option for ws usage later on
Bug Fixes
- An absolute path resolving for
*_file
configuration attributes (#120)
Features
- Endpoint:
- Add
jwt_sign()
function to be able to create and sign a token with ajwt_signing_profile
. Docs (#112) - Add
unixtime()
function for the current unix time in seconds (#124)
Code Refactoring
- underlying code structure to represent an
endpoint
block withproxy
,request
andresponse
configuration - hcl evaluation context as own 'container' with
context.Context
interface - test cleanups
Dependencies
- build with go 1.16
- logrus to v1.8.1
- hcl to v2.9.1
- kin-openapi to v.0.49.0