4.0.0 (2021-07-03)
Bug Fixes
- authentication: Fix email verified check and validation (3316011)
- authorization: Delete unwanted error logs (b84dba8)
- bucket: Fix no trailing / generated in the transform S3 entries (0d39b8c)
- config: Change config to be more uniform (569dcc1)
- deps: update github.com/johannesboyne/gofakes3 commit hash to 92d5d4a (0bee00e)
- deps: update golang.org/x/net commit hash to 04defd4 (cee1781)
- deps: update golang.org/x/oauth2 commit hash to a41e5a7 (bbf29ef)
- deps: update module github.com/go-chi/chi/v5 to v5.0.3 (15fbfbf)
- deps: update module github.com/go-chi/cors to v1.2.0 (089f1ba)
- deps: update module github.com/go-playground/validator/v10 to v10.6.1 (5961572)
- deps: update module github.com/golang/mock to v1.6.0 (9ddb52f)
- deps: update module github.com/prometheus/client_golang to v1.11.0 (cee4e06)
- deps: update module github.com/spf13/viper to v1.8.1 (db878c9)
- deps: update module github.com/uber/jaeger-client-go to v2.29.1 (bf4a5a0)
- deps: update module github.com/uber/jaeger-lib to v2.4.1 (60f7159)
- responsehandler: Avoid setting empty header (c24a4d6)
- responsehandler: Fix data to be usable with sprig (cd85134)
- responsehandler: Fix folder list function to use generic template execution function (2f78240)
- responsehandler: Fix no helpers for internal server error specific case template (13cb88e)
- responsehandler: Remove old and unused data in folder list (2ff36f4)
- responsehanlder: Fix use real request and not proxy in template data (186ad45)
- responsehanlder: Remove uneeded data transformation (dd93506)
- server: Fix hostrouter to ensure wildcard domains are tested in the injection order (178cb61)
- Fix potential unescape path coming from server (04b88bb)
- s3client: Do not create pointer on interface (c2e0045)
- server: Fix panic catch (3990245)
Code Refactoring
- config: Change error package (2035315)
- Change all errors to add stack trace and rework some others (24f28ab)
- authentication: Refactor authentication to save user as soon as possible (dfafc0d)
- authx: Rework context functions (98aec3b)
- log: Change public to private for local method used (a7745e2)
- responsehandler: Change structure name to keep names in sync (371400c)
- responsehandler: Refactor code and add set response handler in context (2661b65)
- responsehandler: Rename header data structure (f806541)
- templates: Refactor json body error helper name (44505aa)
- Change bucket package to use context (d7945bc)
- Change error key names and template file names (4ebaa6f)
- Changing authx methods to get resource and user from context (3c141c5)
- Changing tracing methods to get trace from context (e82807d)
- Extract execute template and template functions to general utils (08f5395)
- Refactor bucket context http middleware (dca6d97)
Continuous Integration
- Change linter step in CI (5cb0df2)
- Pin mkdocs-material version (a1189d9)
- Switch from CircleCI to Github Actions (6dbd5df)
- Update CI to filter update path (7cd0e45)
Documentation
- Add documentation on cache-control (218ed7f)
- Add documentation to explain how to migrate from v3 to v4 (6c9fe8b)
- Add line numbers on code example (c4977d8)
- Improved templates and headers documentation (68573b2)
- Patch documentation about prometheus metrics (4e4e2d1)
- Refactor documentation to use mkdocs with material theme (064785b)
- Refactor README (db33c70)
- responsehandler: Add documentation on interface (4b83595)
Features
- Upgrade alpine version in docker image (b3b0c4d)
- authx: Add more getter to generic user (45a750a)
- bucket: Add templating on PUT metadata and storage class (7fe1f2c)
- bucket: Clean bucket structure and values (c1b61f5)
- config: Add default header template when template is override without headers (fce9bea)
- log: Add set logger to context function and refactor (5db6244)
- log: Simplify logger construction (9744774)
- logger: Display stack trace when possible and when an error is provided to logger.Error (4566e5b)
- logger: Improve log errors in error, fatal, etc (cd65b71)
- responsehandler: Add helpers for template execution (7a9d511)
- responsehandler: Add request data to all response data (8cb3a47)
- responsehandler: Add S3 proxy custom functions to all template execution (90f0dff)
- responsehandler: Add user into all template data (d044d8a)
- responsehandler: Change template engine from html to text (a26e93f)
- s3client: Add context in S3 requests (a525367), closes #190
- Add new functions to template and change template to use them (get current scheme and host) (cb83e46)
- Add response handler package (258bf2f)
- Add support for custom headers on templates (6c5e9e1)
- Add support for json responses and content type header (2dfc071)
- Add way to add headers to streamed files (5b6da64)
- Add webhooks support (f817a8d)
- Change configuration format for targets and remove deprecated options (5bb59ee)
- Change log middleware and inject logger in context (1e4b610)
- Change S3 client package to prepare all aws clients for all targets (328006b)
- Hide local path in built stack trace (e47bcab)
- Move utils package to create a general one (e6c21c1)
- responsehandler: Create a structure for error templating (676f817)
- responsehandler: Create a structure for target list template (60177a1)
Maintenance
- Change coverage mode (4e5d235)
- Clean dependencies (5e4ce98)
- Delete github pages base configuration (182cacc)
- Edit gitignore (3ce55b5)
- Update pre-commit hooks (5d3bcdd)
Styles
Tests
- bucket: Clean dead code (ed47606)
- bucket: Rework tests with new code (7bdbb43)
- config: Fix tests (e1d3960)
- models: Add unit tests on user models (aabab6e)
- responsehandler: Add tests (e075ab8)
- responsehandler: Add tests (632c6c9)
- responsehandler: Fix tests with rename structure (0dfc1ba)
- s3client: Add tests for load cleanup (0a03edf)
- s3client: Fix tests (7c07dcb)
- server: Update and fix tests (b44570a)
- utils: Clean dead code (100a45e)
- utils: Clean tests (609f040)
BREAKING CHANGES
- responsehandler: Change template executor. This will change template
render. - This is done in order to have the same naming
everywhere. This will break error configuration keys. - responsehandler: Add helpers for template execution, warning on concat
- Remove deprecated options in configuration