tyk
tyk copied to clipboard
config_helper pkg
Description
Trying to create a multi-purpose config helper package to parse config env vars and expose /configs
and /envs
endpoints with the actual configuration.
The package accepts any struct and exposes it; it could be useful in any component.
To access the endpoints you need to add X-Tyk-Authorization
header with the value of the secret
in the config.
WIP
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Refactoring or add test (improvements in base code or adds test coverage to functionality)
Checklist
- [ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own
fork, don't request your
master
! - [ ] Make sure you are making a pull request against the
master
branch (left side). Also, you should start your branch off our latestmaster
. - [ ] My change requires a change to the documentation.
- [ ] If you've changed APIs, describe what needs to be updated in the documentation.
- [ ] If new config option added, ensure that it can be set via ENV variable
- [ ] I have updated the documentation accordingly.
- [ ] Modules and vendor dependencies have been updated; run
go mod tidy && go mod vendor
- [ ] When updating library version must provide reason/explanation for this update.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] Check your code additions will not fail linting checks:
- [ ]
go fmt -s
- [ ]
go vet
- [ ]
API tests result: success :white_check_mark:
Branch used: refs/pull/4061/merge
Commit:
Triggered by: pull_request (@tbuchaillot)
Execution page