Commit c0b2541
K8SPSMDB-1448: sync user secrets with vault (#2121)
* K8SPSMDB-1448: sync user secrets with vault
https://perconadev.atlassian.net/browse/K8SPSMDB-1448
* use `github.com/pkg/errors`
* add `serviceAccountTokenPath`
* Update pkg/apis/psmdb/v1/psmdb_defaults.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* `go mod tidy`
* add `tlsSecret` field
* use `errors.Wrap`
* fix validation message
* add unit-tests
* fix users-vault test
* improve validation
* small fixes
* small go mod change
* add test cases
* improve test
* implement cached vault
* fix tests
* refactor
* remove debug prints
* small improvements
* small fix
* `make manifests`
* fix unit-tests
* address comments
* return on logged error
* fix cached vault
* secret client per cluster + provider handler for future secret storages
* mac fix
* logging improvements
* implement critical errors
* fix wrapped errors
* small fix
* fix if condition
* fix unit-tests
* apply copilot suggestions
* make `endpointURL` required
* fix test
* fix validation error
* improve logs
* continue reconcile on failed connection to the vault
* small test fix
* fix test
* block reconcile when user secret doesn't exist
* final fix for `users-vault` test
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Mayank Shah <mayank.shah@percona.com>
Co-authored-by: Viacheslav Sarzhan <slava.sarzhan@percona.com>1 parent 00affaf commit c0b2541
File tree
26 files changed
+1540
-151
lines changed- config/crd/bases
- deploy
- e2e-tests
- users-vault
- conf
- version-service/conf
- pkg
- apis/psmdb/v1
- controller/perconaservermongodb
- secret
- vault
26 files changed
+1540
-151
lines changedLines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24852 | 24852 | | |
24853 | 24853 | | |
24854 | 24854 | | |
| 24855 | + | |
| 24856 | + | |
| 24857 | + | |
| 24858 | + | |
| 24859 | + | |
| 24860 | + | |
| 24861 | + | |
| 24862 | + | |
| 24863 | + | |
| 24864 | + | |
| 24865 | + | |
| 24866 | + | |
| 24867 | + | |
| 24868 | + | |
| 24869 | + | |
| 24870 | + | |
| 24871 | + | |
| 24872 | + | |
| 24873 | + | |
| 24874 | + | |
| 24875 | + | |
| 24876 | + | |
| 24877 | + | |
24855 | 24878 | | |
24856 | 24879 | | |
24857 | 24880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25711 | 25711 | | |
25712 | 25712 | | |
25713 | 25713 | | |
| 25714 | + | |
| 25715 | + | |
| 25716 | + | |
| 25717 | + | |
| 25718 | + | |
| 25719 | + | |
| 25720 | + | |
| 25721 | + | |
| 25722 | + | |
| 25723 | + | |
| 25724 | + | |
| 25725 | + | |
| 25726 | + | |
| 25727 | + | |
| 25728 | + | |
| 25729 | + | |
| 25730 | + | |
| 25731 | + | |
| 25732 | + | |
| 25733 | + | |
| 25734 | + | |
| 25735 | + | |
| 25736 | + | |
25714 | 25737 | | |
25715 | 25738 | | |
25716 | 25739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25711 | 25711 | | |
25712 | 25712 | | |
25713 | 25713 | | |
| 25714 | + | |
| 25715 | + | |
| 25716 | + | |
| 25717 | + | |
| 25718 | + | |
| 25719 | + | |
| 25720 | + | |
| 25721 | + | |
| 25722 | + | |
| 25723 | + | |
| 25724 | + | |
| 25725 | + | |
| 25726 | + | |
| 25727 | + | |
| 25728 | + | |
| 25729 | + | |
| 25730 | + | |
| 25731 | + | |
| 25732 | + | |
| 25733 | + | |
| 25734 | + | |
| 25735 | + | |
| 25736 | + | |
25714 | 25737 | | |
25715 | 25738 | | |
25716 | 25739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25711 | 25711 | | |
25712 | 25712 | | |
25713 | 25713 | | |
| 25714 | + | |
| 25715 | + | |
| 25716 | + | |
| 25717 | + | |
| 25718 | + | |
| 25719 | + | |
| 25720 | + | |
| 25721 | + | |
| 25722 | + | |
| 25723 | + | |
| 25724 | + | |
| 25725 | + | |
| 25726 | + | |
| 25727 | + | |
| 25728 | + | |
| 25729 | + | |
| 25730 | + | |
| 25731 | + | |
| 25732 | + | |
| 25733 | + | |
| 25734 | + | |
| 25735 | + | |
| 25736 | + | |
25714 | 25737 | | |
25715 | 25738 | | |
25716 | 25739 | | |
| |||
0 commit comments