Commit Graph

196 Commits

Author SHA1 Message Date
JCPrice0024
e04d4d8422 found another minor bug in results.go
Documented behavior
2022-12-05 17:34:37 -05:00
Jason Fulghum
09ec939a10 Updating test name 2022-11-30 13:14:13 -08:00
Jason Fulghum
6f3f182296 Removing newline 2022-11-30 10:29:33 -08:00
Tan Yong Zhi
a3d471612e Swap long and short form flag behavior 2022-11-30 13:43:37 +08:00
Tan Yong Zhi
67566b8898 Fix tests 2022-11-29 19:49:18 +08:00
Tan Yong Zhi
f654cee95d Fix value being read in param suffix 2022-11-29 17:26:06 +08:00
Aaron Son
f7c69bf881 Merge pull request #4749 from dolthub/aaron/cluster-jwks-auth
go/libraries/doltcore/sqle/cluster: Add JWT authentication for peer communication to cluster replicas.
2022-11-15 12:21:55 -08:00
Zach Musgrave
04dec6e54c Added alias for renamed option 2022-11-14 15:23:22 -08:00
Aaron Son
b22fbf11f2 go/libraries/doltcore/sqle/cluster: Add JWT authentication for peer communication to cluster replicas.
A remotesapi server running on a cluster replica publishes a JWKS.

Every outbound GRPC call the cluster replica makes includes a JWT signed with a
private key.

remotesapi servers running on cluster replicas require and validate incoming
JWTs for cluster traffic. The set of valid signing keys is taken from the
JWKSes which are published at /.well-known/jwks.json on the standby replica
hosts.

It is possible to configure tls_ca on cluster remotesapi to configure the set
of trusted roots for outbound TLS connections. Because the JWKSes are served
over the same connection, and becuase signed JWTs are not replay resistent, TLS
is recommended for all deployment topologies.
2022-11-10 09:26:38 -08:00
Aaron Son
3c484143c6 go/libraries/utils/jwtauth: First pass at multiJWKS store. 2022-11-09 09:07:45 -08:00
Taylor Bantle
f7246f854b Supply multiple refs to --not 2022-11-02 13:39:38 -07:00
reltuk
546d2b6898 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2022-11-02 16:55:49 +00:00
Aaron Son
57523a9323 go/libraries/doltcore/sqle/cluster: Add the ability to generate a keypair, serve a JWKS, and sign outbound RPCs with a JWT. 2022-11-02 09:54:09 -07:00
Zach Musgrave
0f0265db30 Deleted zombie copy of pipeline code 2022-09-13 17:33:26 -07:00
Zach Musgrave
e9f6e4a16e Delted unused panic to err code 2022-09-13 17:29:02 -07:00
Brian Hendriks
683b8d39b0 comments 2022-08-23 12:08:02 -07:00
Brian Hendriks
30722658b3 refactor 2022-08-23 11:40:27 -07:00
jennifersp
f42712b240 allow optional empty value for string value for arg parsing (#4093)
* arg value should allow optional empty value

* fix godocs
2022-08-15 20:05:44 -07:00
coffeegoddd
b68814c796 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2022-08-05 17:21:26 +00:00
Andy Arthur
c811935149 close files in filesys.CopyFile 2022-07-28 20:08:05 -07:00
Andy Arthur
c95153ca6c added temp migration environment 2022-07-25 14:52:47 -07:00
Andy Arthur
226da75db3 added temp file method to utils/filesys 2022-07-25 14:52:47 -07:00
Taylor Bantle
0e0e5d9893 Attempt to fix windows unit test 2022-07-22 15:10:25 -07:00
Taylor Bantle
3c53115480 Copyright header 2022-07-22 13:54:33 -07:00
Taylor Bantle
5225c27946 Use go gen_keys for auth bats 2022-07-22 13:37:44 -07:00
Taylor Bantle
5090f66984 Aaron feedback 2022-07-22 13:24:59 -07:00
Taylor Bantle
f230900d52 Bats, more plugin tests 2022-07-20 14:41:47 -07:00
Taylor Bantle
7b2bac8f81 Add tests 2022-07-19 17:45:19 -07:00
Taylor Bantle
c197a51ef6 Start on jwtauth changes 2022-07-19 16:40:06 -07:00
James Cor
e1c706b0e6 Merge branch 'main' into james/local-user 2022-07-08 11:04:06 -07:00
Aaron Son
f81f02eed1 go: Migrate from opentracing to opentelemetry. 2022-07-08 10:18:47 -07:00
James Cor
48d7a52715 appears to be working, need tests 2022-07-01 15:23:16 -07:00
Zach Musgrave
b79bbc9646 SQL diff writer implementation and interface 2022-06-23 15:08:15 -07:00
Aaron Son
edf0485148 go/libraries/utils/pipeline/stage.go: Fix how we finalize a stage so that every consumer can still see nil in the success case. 2022-05-18 14:31:09 -07:00
Aaron Son
ec7af0c507 go/libraries/utils/pipeline: Fix unit test for new semantics. 2022-05-18 14:07:14 -07:00
Aaron Son
a8f5e44786 go/libraries/utils/pipeline: stage.go: Another pass at finalization strategy. 2022-05-18 12:17:35 -07:00
Aaron Son
f4b6b6fe50 go/libraries/utils/pipeline: Fix racey finalization of a pipeline.
Before this change, when an initial stage function returned a non-nil err, it
would return non-nil, resulting in closing its output channel and leaving the
errgroup responsible for canceling the egCtx.

The next transform stage would read `nil, false` on its inCh. That stage would
forward the `nil` down the transform pipeline. If the inCh selects all resolved
down the transform pipeline before any of the `<- ctx.Done()` selects, then the
pipeline would see the exact same behavior for the error case as it would see
for an `io.EOF` being reached in the first stage.

Instead, transform stages in the pipeline should abort without forwarding data
if they see a closed input channel. In turn, input stages should forward one
last `nil` sentinel value to their output channel when the see an `io.EOF`
before they close the channel.
2022-05-18 10:11:27 -07:00
Dhruv Sringari
c0c54db5d2 Fix bad upload table file retries 2022-03-25 14:09:46 -07:00
James Cor
0cadc528e5 renamed WriteNoNewLine to WriteWithoutNewLine 2022-03-02 12:16:56 -08:00
James Cor
88b6a6f197 working for sql format; not sure if i need any other formats 2022-03-01 15:42:33 -08:00
Lars Lehtonen
bf727113cc libraries/utils/editor: fix dropped error 2022-02-21 18:54:48 -08:00
Dhruv Sringari
009bb85d8d fix bats 2022-02-17 14:22:46 -08:00
Dhruv Sringari
c662e2fa8c self-review 2022-02-16 16:29:00 -08:00
Dhruv Sringari
a18bfc6c27 wip 2022-02-16 14:52:34 -08:00
Zach Musgrave
576753d38c Added failsafe values to dolt CLI config, only in sql context for now 2021-11-08 12:26:52 -08:00
Zach Musgrave
c76f4bde26 Fixed bug in config hierarchy construction -- it was being constructed backwards, so globals were being returned instead of locals 2021-11-08 11:43:13 -08:00
Zach Musgrave
37c2137557 merge main 2021-11-04 14:12:38 -07:00
Zach Musgrave
4a236171e7 More clean up of session setup 2021-11-04 09:51:30 -07:00
jennifersp
efef83b167 dolt dump: Add dolt dump command and bats tests. 2021-11-03 15:21:46 -07:00
Zach Musgrave
92f175a37a Merge branch 'main' into zachmu/create-db 2021-11-02 10:46:50 -07:00