Kyle Travis
cfae2eb720
storage/kubernetes: remove shadowed ResourceVersion from Connector ( #1673 )
6 years ago
Yann Soubeyrand
99c3ec6820
Add ability to set ID and Secret from environment variables for static clients
...
Having ID and Secret in clear inside configuration files for static
clients is not ideal. This commit allows setting these from environment
variables.
Signed-off-by: Yann Soubeyrand <yann.soubeyrand@gmx.fr>
6 years ago
Nandor Kracser
c7e9960c7e
storage/mysql: increase auth_request.state length to 4096
...
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
6 years ago
Nandor Kracser
80749ffd3f
storage/sql: allow specifying sql flavor specific migrations
...
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
6 years ago
Jerry Sun
3a3a2bcc86
Wrap Kubernetes host address in square brackets
...
When constructing the host address string, the address is
not wrapped in square brackets. This does not work in IPv6
Kubernetes deployments. This commit adds square brackets
around the address. IPv4 was also tested to ensure it works
with wrapped address.
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
6 years ago
Mark Sagi-Kazar
55b49063f8
Update etcd
6 years ago
Aiden Andrews-McDermott
98f78db915
Updated config.go to remove the defaulting idle connection limit of 5 which is an issue for upstream https://github.com/go-sql-driver/mysql/issues/674
6 years ago
Mark Sagi-Kazar
309b33d05a
Rewrite kubernetes storage test
6 years ago
Mark Sagi-Kazar
2f8d1f8e42
Fix unconvert
6 years ago
Mark Sagi-Kazar
f141f2133b
Fix whitespace
6 years ago
Mark Sagi-Kazar
367b187cf4
Fix missspell
6 years ago
Mark Sagi-Kazar
142c96c210
Fix stylecheck
6 years ago
krishnadurai
91cbd466a5
Option to add staticPasswords from environment variables
6 years ago
Mark Sagi-Kazar
0773c6e9f3
Add github actions CI flow
6 years ago
Joel Speed
c782ac809c
Remove defaulting from connector_data column
6 years ago
Joel Speed
45a40a13a3
Revert "Update Kubernetes storage backend"
...
This reverts commit 228bdc324877bf67ecdd434503b9c1b25d8e7d28.
6 years ago
Joel Speed
236b25b68e
Revert "Fix ETCD storage backend"
6 years ago
Joel Speed
41b7c855d0
Revert "Update conformance"
...
This reverts commit 9c7ceabe8aebf6c740c237c5e76c21397179f901.
6 years ago
Joel Speed
9ce4393156
Revert "Update SQL storage backend"
6 years ago
Joel Speed
176ba709a4
Revert "Remove connectordata from other structs"
...
This reverts commit 27f33516db343bd79b56a47ecef0fe514a35082d.
6 years ago
Joel Speed
fea048b3e8
Fix SQL updater func
6 years ago
Joel Speed
d38909831c
Fix migration in SQL connector
...
I didn't realise quite what the migration mechanism was. Have understood
it now.
6 years ago
Joel Speed
80995dff9b
Fix SQL storage
6 years ago
Joel Speed
b9b315dd64
Fix conformance tests
6 years ago
Joel Speed
7a76c767fe
Update Kubernetes storage backend
6 years ago
Joel Speed
c54f1656c7
Fix ETCD storage backend
6 years ago
Joel Speed
c789c5808e
Update conformance
6 years ago
Joel Speed
7fc3f230df
Update SQL storage backend
6 years ago
Joel Speed
5c88713177
Remove connectordata from other structs
6 years ago
Joel Speed
575c792156
Store most recent refresh token in offline sessions
6 years ago
Nandor Kracser
c1b421fa04
add preffered_username to idToken
...
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
6 years ago
Tomasz Kleczek
42d61191c4
storage: conformance tests improvements
7 years ago
Nandor Kracser
d2c33db8a8
storage/mysql: support pre-5.7.20 instances with tx_isolation only
7 years ago
Michael Venezia
395febf808
storage/kubernetes: Removing Kubernetes TPR support
...
Third Party Resources (TPR) have been removed from Kubernetes for
roughly 2 years. This commit removes the support dex had for them.
Documentation has been updated to reflect this and to instruct users
on how to migrate from TPR-powered dex environment to a Custom Resource
Defintion (CRD) based one that dex > v2.17 will support
7 years ago
Stephan Renatus
d9487e553b
*: fix some lint issues
...
Mostly gathered these using golangci-lint's deadcode and ineffassign
linters.
Signed-off-by: Stephan Renatus <srenatus@chef.io>
7 years ago
Nandor Kracser
a572ad8fec
storage/sql: rework of the original MySQL PR
7 years ago
Pavel Borzenkov
e53bdfabb9
storage/sql: initial MySQL storage implementation
...
It will be shared by both Postgres and MySQL configs.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
7 years ago
Mark Sagi-Kazar
d877fca092
Fix coding style
7 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
joannano
88d1e2b041
keystone: test cases, refactoring and cleanup
7 years ago
knangia
0774a89066
keystone: squashed changes from knangia/dex
7 years ago
Haines Chan
b78b8aeee0
Replace "GET", "POST" to http.MethodGet and http.MethodPost
7 years ago
Stephan Renatus
73fdf4f75b
storage/sql/postgres: expose stdlib tunables, set them for tests
...
- adapted TestUnmarshalConfig to ensure the fields are read in
- added a test to see that at least MaxOpenConns works:
- this is only exposed through (*db).Stats() in go 1.11, so this test
has a build tag
- the other two configurables can't be read back, so we've got to
trust that the mechanism works given the one instance that's tested..
Signed-off-by: Stephan Renatus <srenatus@chef.io>
7 years ago
Stephan Renatus
8f3cca7ba4
Revert "retry on serialization errors"
7 years ago
Alex Suraci
85dd0684ba
extract and document serialization failure check
7 years ago
Alex Suraci
587081a643
postgres: refactor error handling to fix retrying
...
prior to this change, many of the functions in the ExecTx callback would
wrap the error before returning it. this made it impossible to check
for the error code.
instead, the error wrapping has been moved to be external to the
`ExecTx` callback, so that the error code can be checked and
serialization failures can be retried.
7 years ago
Alex Suraci
aa068b667a
postgres: improve readability of error check
7 years ago
Alex Suraci
9b9013a560
postgres: use stdlib to set serializable tx level
...
also use a context for the rollback, which is a bit cleaner since it
only results in one 'defer', rather than N from the loop
7 years ago
Alex Suraci
7e96021428
retry on serialization errors
7 years ago