Maksim Nabokikh
3d97c59032
test: add concurrency tests for storage implementations ( #4631 )
...
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
7 days ago
Mark Sagi-Kazar
e230d9426d
test: use new Go features in tests
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
7 months ago
Oleksandr Redko
9891daa585
refactor: simplify tests by using slog.DiscardHandler ( #4058 )
...
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
12 months ago
Bob Maertz
ad31b5d6f7
Passing context storage ( #3941 )
...
Signed-off-by: Bob Maertz <1771054+bobmaertz@users.noreply.github.com>
1 year ago
Sean Liao
0b6a78397e
use slog for structured logging ( #3502 )
...
Signed-off-by: Sean Liao <sean+git@liao.dev>
2 years ago
Ferenc Fabian
2377b0a0cd
Add context to storage's Create endpoints ( #2935 )
...
* Initial commit
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
* Finish the syntex fixes
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
* Add fixes after running the tests
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
* Change background context to request context
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
---------
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
2 years ago
Maksim Nabokikh
1e116f66ca
fix: prevent server side request forgery using Kubernetes storage ( #2479 )
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
3 years ago
m.nabokikh
4b5f1d5289
fix: refresh token only once for all concurrent requests
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
4 years ago
Mark Sagi-Kazar
a02f2e8fac
chore: fix lint violations
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
4 years ago
m.nabokikh
9fad0602ec
fix: do not update offlinesession lastUsed field if refresh token was not change
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
4 years ago
m.nabokikh
bc5371e730
Add make file commands for kind
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
5 years ago
m.nabokikh
5a48d8a82d
chore: test Kubernetes storage with KinD
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
5 years ago
m.nabokikh
be378dd9a7
feat: Retry Kubernetes update requests
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
5 years ago
m.nabokikh
4801b2c975
fix: Handle kubernetes API conflicts properly for signing keys
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
6 years ago
Justin Slowik
6d343e059b
Generates/Stores the device request and returns the device and user codes.
...
Signed-off-by: justin-slowik <justin.slowik@thermofisher.com>
6 years ago
Mark Sagi-Kazar
309b33d05a
Rewrite kubernetes storage test
6 years ago
Mark Sagi-Kazar
06521ffa49
Remove the logrus logger wrapper
7 years ago
Mark Sagi-Kazar
be581fa7ff
Add logger interface and stop relying on Logrus directly
7 years ago
Stephan Renatus
b9f6594bf0
*: github.com/coreos/dex -> github.com/dexidp/dex
...
Signed-off-by: Stephan Renatus <srenatus@chef.io>
8 years ago
Eric Stroczynski
4a88d0641a
: update {S->s}irupsen/logrus
9 years ago
Eric Chiang
a7b8e52b92
storage/kubernetes: fix conflict error detection in TRP creation
...
PR #815 fixed the Kubernetes storage implementation by correctly
returning storage.ErrAlreadyExists on POST conflicts. This caused a
regression in TPR creation (#822 ) when some, but not all, of the
resources already existed. E.g. for users upgrading from old
versions of dex.
Fixes #822
9 years ago
rithu john
2e22a948cf
cmd/dex: add logging config and serve logger for different modules.
9 years ago
Eric Chiang
4ab78d0ded
storage/kubernetes: run transactional conformance tests
10 years ago
Eric Chiang
bc16de0b58
storage/kubernetes: don't guess the kubeconfig location and change test env
...
Using the default KUBECONFIG environment variable to indicate that
the Kubernetes tests should be run lead to cases where developers
accidentally ran the tests. This has now been changed to
"DEX_KUBECONFIG" and documentation hsa been added detailing how to
run these tests.
Additionally, no other storage reads environment variables for its
normal configuration (outside of tests) so the Kubernetes storage
no longer does.
Overall, be less surprising.
10 years ago
Eric Chiang
691476b477
storage/kubernetes: manage third party resources and drop support for 1.3
10 years ago
Eric Chiang
558059ee58
storage/kubernetes: add garbage collection method
10 years ago
Eric Chiang
7ff3ce85a2
*: add password resource to kubernetes storage implementation
10 years ago
Eric Chiang
63f56b4269
storage: hook up conformance tests for SQL
10 years ago
Eric Chiang
e2bf8ceb63
storage: rename "storagetest" package to "conformance"
10 years ago
Eric Chiang
bfe560ee21
rename
10 years ago
Eric Chiang
820b460583
storage/kubernetes: garbage collect expired objects
10 years ago
Eric Chiang
cab271f304
initial commit
10 years ago