Commit Graph

120 Commits

Author SHA1 Message Date
Menghan Li 13b2b26aae internal: update proto generated code (#2386) 2018-10-18 15:45:22 -07:00
Cesar Ghali 945824a2e5
credentials/alts: Minor typo fix (#2344) 2018-10-02 10:00:23 -07:00
Menghan Li fdc936c6b5
lint: add package comment for package google (#2343) 2018-10-01 10:44:27 -07:00
Menghan Li 4dedfdc82c
credentials: support google default creds (#2315)
Google default creds is a combo of ALTS, TLS and OAuth2. The right set of creds will be picked to use based on environment.

This PR contains:
 - A new `creds.Bundle` type
   - changes to use it in ClientConn and transport
   - dial option to set the bundle for a ClientConn
   - balancer options and NewSubConnOption to set it for SubConn
 - Google default creds implementation by @cesarghali 
 - grpclb changes to use different creds mode for different servers
 - interop client changes for google default creds testing
2018-09-25 13:17:25 -07:00
Cesar Ghali 8997b5fa08
credentials/alts: Pass the target name to ALTS handshaker (#2319) 2018-09-20 16:48:47 -07:00
Cesar Ghali 5fe5ce74bb
credentials/alts: Export test APIs (#2293) 2018-09-07 11:05:56 -07:00
Cesar Ghali 16df5a3328
credentials/alts: Rename core package to internal (#2296) 2018-09-07 10:24:15 -07:00
Cesar Ghali 0150fc5d50
credentials/alts: Move alts/core to alts/internal (#2292) 2018-09-05 15:15:42 -07:00
dfawley 5fe10fccaf
Remove unused symbols (#2287) 2018-09-05 12:29:02 -07:00
dfawley 90f728eaf7
Remove shadowing of built-ins (#2290) 2018-09-05 09:05:40 -07:00
Cesar Ghali a91fb537b1
credentials/alts: Add ALTS AuthInfoFromPeer API (#2269) 2018-08-28 10:44:03 -07:00
Menghan Li 59dd9b3f19
test: add go 1.11 to travis and remove go 1.7 (#2278) 2018-08-27 13:31:20 -07:00
lyuxuan 8e36593ad9 go generate: update proto files (#2236) 2018-07-25 11:40:12 -07:00
dfawley 2106e3b393
credentials: cleanup version-specific files (#2178) 2018-06-27 15:49:04 -07:00
lyuxuan f1ab7acf3f
credentials: add more appengine build tags (#2177) 2018-06-26 14:01:50 -07:00
lyuxuan 7268ca41d3
channelz: stage 4 - add security and socket option info with appengine build tags (#2149) 2018-06-25 10:32:20 -07:00
Menghan Li 39a411827d
internal: Update proto generated code (#2133) 2018-06-08 17:54:26 -07:00
lyuxuan 96cefb43cf Revert " channelz: stage 4 - add security and socket option info" (#2124)
Reverts grpc/grpc-go#2098

Appengine will fail with the error below:
```
go-app-builder: Failed parsing input: parser: bad import "syscall" in google.golang.org/grpc/channelz/funcs.go from GOPATH
```

The root cause of it is in type_linux.go.
629f6bc5e5/channelz/types_linux.go (L21-L25)
2018-06-05 18:04:12 -07:00
lyuxuan c1a21e22a6
channelz: stage 4 - add security and socket option info (#2098) 2018-06-05 13:50:19 -07:00
Menghan Li 130c87fa0d
alts: copy handshake address in Clone() (#2119) 2018-06-01 15:33:31 -07:00
Menghan Li d33a923190
Revert "channelz: stage 4 - add security and socket option info" (#2096)
This reverts commit 7cc2837209.

The PR breaks darwin builds

src/google.golang.org/grpc/channelz/types_unix.go:35:15: undefined: unix.TCPInfo
2018-05-22 15:31:57 -07:00
lyuxuan 7cc2837209
channelz: stage 4 - add security and socket option info (#1965) 2018-05-22 13:32:02 -07:00
Menghan Li f669235193
internal: update proto generated code (#2093) 2018-05-21 09:59:26 -07:00
Menghan Li 679ceaae57
internal: fix travis failure on alts proto (#2079) 2018-05-16 10:32:11 -07:00
Carl Mastrangelo 9020130bcf credentials/alts: make go:generate rebuild alts protos (#2056) 2018-05-15 15:42:21 -07:00
Cesar Ghali 419de394cf Add AuthInfoFromContext utility API (#2062) 2018-05-11 14:16:43 -07:00
Carl Mastrangelo 17a5d9ce39 credentials/alts: Refer to ALTS gRPC types by a different package (#2028) 2018-04-30 12:57:04 -07:00
Cesar Ghali 75d37eff66
credentials/alts: Add ServiceOption for server-side ALTS creation (#2009)
* Move handshaker_service_address flag to binaries
2018-04-23 11:11:20 -07:00
Cesar Ghali 8124abf74e
credentials/alts: Remove the enable_untrusted_alts flag (#1931) 2018-03-19 18:27:44 -07:00
Cesar Ghali 211a7b7ec0 credentials/alts: Update ALTS "New" APIs (#1921) 2018-03-19 09:07:54 -07:00
Cesar Ghali efcc755fd5
credentials/alts: change ALTS protos to match the golden version (#1908) 2018-03-08 12:12:55 -08:00
Joshua Humphries 0843fd0ee0 credentials/alts: fix infinite recursion bug [in custom error type] (#1906) 2018-03-07 13:50:30 -08:00
Cesar Ghali 5190b068e2 ALTS: Simplify "New" APIs (#1895)
ALTS NewClientALTS and NewServerALTS APIs are in the grpc/credentials/alts package. Having the term ALTS in the API names is redundant. This PR removes it.
2018-03-07 09:14:47 -08:00
Cesar Ghali a1de3b2bd6 alts: Change ALTS proto package name (#1886) 2018-02-26 18:05:53 -08:00
Cesar Ghali 2e7e633fea Add ALTS code (#1865) 2018-02-26 17:02:59 -08:00
Jean de Klerk 7aea499f91 credentials: return Unavailable instead of Internal for per-RPC creds errors (#1776)
Or if `PerRPCCredentials` returns a `status` error, honor that instead.
2018-01-03 09:47:07 -08:00
dfawley 4318e6475c
server: apply deadline to new connections until all handshaking is completed (#1646) 2017-11-03 13:53:17 -07:00
Menghan Li 1687ce5770 ClientHandshake should get the dialing endpoint as the authority (#1607) 2017-10-23 11:40:43 -07:00
田欧 faebfcb7bf Remove single-entry var blocks (#1589) 2017-10-18 09:59:23 -07:00
Sean Harger 956d689a24 Use Type() method for OAuth tokens instead of accessing TokenType field. (#1537)
This covers the case where the TokenType field is empty, and thus
calling the Type() method will return "Bearer".
2017-09-25 11:38:05 -07:00
Menghan Li 59cb69e66d Fix misspells (#1531) 2017-09-20 14:55:57 -07:00
田欧 ca9e0c3458 Add testdata package and unify testdata to only one dir (#1297) 2017-07-25 10:24:45 -07:00
Jan Tattermusch ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
dfawley 3419b42955 Reuse Token for serviceAccount credentials (#1238) 2017-05-16 12:37:36 -07:00
Adele Zhou 7ddf89f9b7 Fix doc 2017-05-04 10:30:28 -07:00
Menghan Li ccdf270424 add document to ClientHandshake about returning temporary error (#1125) 2017-03-28 11:12:50 -07:00
Peter Sanford 2e56e83e3a Use tls.Config.Clone() for go1.8
go1.8 now has native support for tls.Clone() so for 1.8+ use that for
credentials.cloneTLSConfig.
2017-02-21 12:03:28 -08:00
MakMukhi 50955793b0 Debugging tests for AuthInfo (#1046)
* debug

* fix
2017-01-11 11:10:52 -08:00
MakMukhi 4ed348913c ClientHandshake to return AuthInfo (#956)
* Initial commit

* Initial commit 2

* minor update

* goimport update

* resolved race condition

* added test for TLSInfo on server side

* Post review updates

* port review changes

debug

debug

* refactoring and added third function

* post review changes

* post review changes

* post review updates

* post review commit

* post review commit

* post review update

* post review update

* post review update

* post review update

* post review commit

* post review update
2017-01-09 13:29:20 -08:00
Mike Wiacek 0dd919209f Fix a spelling mistake. 2016-10-31 19:53:00 -07:00