Commit Graph

56 Commits

Author SHA1 Message Date
Nandor Kracser c7e9960c7e storage/mysql: increase auth_request.state length to 4096
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
2020-02-21 12:53:18 +01:00
Nandor Kracser 80749ffd3f storage/sql: allow specifying sql flavor specific migrations
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
2020-02-21 12:53:18 +01:00
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 2019-12-27 18:08:17 +00:00
Mark Sagi-Kazar f141f2133b Fix whitespace 2019-12-18 15:56:12 +01:00
Mark Sagi-Kazar 367b187cf4 Fix missspell 2019-12-18 15:51:44 +01:00
Mark Sagi-Kazar 0773c6e9f3 Add github actions CI flow 2019-12-07 11:14:30 +01:00
Joel Speed c782ac809c Remove defaulting from connector_data column 2019-11-19 15:43:24 +00:00
Joel Speed 9ce4393156 Revert "Update SQL storage backend" 2019-11-19 15:43:15 +00:00
Joel Speed fea048b3e8 Fix SQL updater func 2019-11-19 15:43:13 +00:00
Joel Speed d38909831c Fix migration in SQL connector
I didn't realise quite what the migration mechanism was. Have understood
it now.
2019-11-19 15:43:13 +00:00
Joel Speed 80995dff9b Fix SQL storage 2019-11-19 15:43:10 +00:00
Joel Speed 7fc3f230df Update SQL storage backend 2019-11-19 15:43:05 +00:00
Nándor István Krácser d5d3abca6a Merge pull request #1566 from dexidp/preferred_username
add preffered_username to idToken
2019-10-30 13:25:23 +01:00
Nandor Kracser c1b421fa04 add preffered_username to idToken
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
2019-10-30 13:06:37 +01:00
Nandor Kracser d2c33db8a8 storage/mysql: support pre-5.7.20 instances with tx_isolation only 2019-09-23 09:36:01 +02:00
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>
2019-07-30 11:29:08 +02:00
Nandor Kracser a572ad8fec storage/sql: rework of the original MySQL PR 2019-07-23 14:27:10 +02:00
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>
2019-07-23 14:26:21 +02:00
Mark Sagi-Kazar d877fca092 Fix coding style 2019-02-22 21:43:55 +01:00
Mark Sagi-Kazar 06521ffa49 Remove the logrus logger wrapper 2019-02-22 21:31:46 +01:00
Mark Sagi-Kazar be581fa7ff Add logger interface and stop relying on Logrus directly 2019-02-22 13:38:57 +01:00
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>
2018-11-30 09:55:01 +01:00
Stephan Renatus 8f3cca7ba4 Revert "retry on serialization errors" 2018-11-29 08:24:13 +01:00
Stephan Renatus 5f054fcf2e Merge pull request #1342 from concourse/pr/retry-on-pg-serialization-error
retry on serialization errors
2018-11-21 10:29:46 +01:00
Alex Suraci 85dd0684ba extract and document serialization failure check 2018-11-20 10:50:55 -05:00