Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Brad Fitzpatrick 57a3624a25 cmd/gomote: fix gomote dialing to the coordinator after recent cert changes
No more self-signed cert on https://farmer.golang.org, so don't do the custom
TLS dialing anymore. Just use the standard tls.Dial.

Updates golang/go#16442

Change-Id: I2e29cbde3294aaaa74c0e82150ffe985f3639209
Reviewed-on: https://go-review.googlesource.com/39750
Reviewed-by: Keith Randall <khr@golang.org>
2017-04-06 17:23:32 +00:00
Kevin Burke 6809b41628 doc: fix typo
Change-Id: I640dbeb5fe2b2f7eb46e4c46790bde9f209c74bf
Reviewed-on: https://go-review.googlesource.com/34919
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-07 04:26:20 +00:00
Chris Manghane 108bdf6238 cmd/gomote, cmd/upload, build: add gccgo-specific TODOs and constants
Change-Id: If4060367da6e9a769b692f408584104193e14502
Reviewed-on: https://go-review.googlesource.com/16085
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-10-19 21:21:53 +00:00
Andrew Gerrand 34287c5ea0 build: don't verify certificates in development mode
Change-Id: I8ee6af4e576123be0f95e2f9ab233d455f0d41e3
Reviewed-on: https://go-review.googlesource.com/12224
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-15 21:32:52 +00:00
Andrew Gerrand f8b4a13722 cmd/coordinator, cmd/buildlet: use dev cert in development mode
Change-Id: I34cfbb159eef300ef97060d6f4aabc5996bbe27d
Reviewed-on: https://go-review.googlesource.com/12210
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-15 01:25:44 +00:00
Brad Fitzpatrick 7b6d1b1b28 all: remote buildlets
This creates a mechanism for clients (such as cmd/release and
cmd/gomote) to obtain buildlets via the coordinator. Previously
cmd/release and cmd/gomote could only create GCE VMs themselves, and
required the GCE project's credentials. In addition to the awkwardness
of needing to hand out the GCE credentials, it also meant ARM and
Darwin buildlets (which use the reverse buildlet pool) weren't usable.

Instead, this creates a new auth mechanism where the coordinator is
contacted over TLS with key pinning (the CA system isn't used) in the
same way that the reverse builders already dialed into the
coordinator, and then a "user build type" and hash are sent as the
username and password. The same master key is used to sign user
builder keys, and they always start with "user-". (which isn't a GOOS).

Then the coordinator provides an API to create and list buildlets.
They auto-expire after a duration and are auto-renewed upon use.

The buildlet library (as used by cmd/release etc) then proxies HTTP
requests via the coordinator to the backend buildlet.

See doc/remote-buildlet.txt for protocol details.

Change-Id: I12e27eae788fdd91927cb182b950893dc759f8e9
Reviewed-on: https://go-review.googlesource.com/11901
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-07 16:45:21 +00:00