Commit Graph

142 Commits

Author SHA1 Message Date
Marwan Sulaiman
0cac0edbf1 actions: support proxying sum db urls (#1208)
* actions: support proxying sum db urls

* remove proxy prefix

* add docs for checksum db

* more docs

* typo

* typo

* typo

* typo

* typo

* typo

* typo

* typo

* move checksum db into its own section
2019-05-08 17:09:07 -07:00
Marwan Sulaiman
85bcef5b57 Dockerfile: wrap athens with tini (#1190) 2019-04-22 20:53:13 +02:00
marpio
9974c16093 pkg/stash: Add Azure Blob implementation (#1162)
* add azblob sf stasher

* use http status const

* rm line

* cleanup, comments

* add test

* fix test

* skip test it no account key provided

* fix stash

* introduce stash timeout
2019-04-01 21:53:59 -07:00
Marwan Sulaiman
081ec9126e pkg/stash: Add GCS implementation (#1124)
* pkg/stash: Add GCS implementation

* fix docs
2019-03-13 11:07:07 -07:00
Marwan Sulaiman
fb9437ddff pkg/stash: implement a Redis lock for stashing (#1116)
* pkg/stash: implement a Redis lock for stashing

* fix tests

* fix op
2019-03-11 02:48:04 -04:00
Marwan Sulaiman
5c25be9feb build: switch to go1.12 (#1092)
* build: switch to go1.12

* switch travis to 1.12
2019-02-27 23:06:04 +01:00
Marwan Sulaiman
12ce2a6499 pkg/stash: add Etcd as a SingleFlight backend (#1070)
* pkg/stash: add Etcd as a SingleFlight backend

* fix config tests

* fmt

* pr fixes

* fix conflicts
2019-02-22 11:35:45 -08:00
fsouza
94cbd9a263 Dockerfile: remove redundant call to apk update (#1069)
- ``apk update`` fetches the index and saves it locally
- ``apk add --update`` fetches the index and installs the requested
packages
2019-02-18 11:30:17 -05:00
Marwan Sulaiman
8356831a43 Use Go 1.12rc for Docker Image (#1063)
* Use Go 1.12rc for Docker Image

* generalize rc
2019-02-17 20:38:55 -08:00
marpio
c3d1d14d23 Use default conf values if file not found (#1022)
* default conf if no file provided

* move to the config pkg

* rm default config path

* rm log
2019-02-14 11:32:53 -08:00
Marwan Sulaiman
adb4dbb10f actions: improve basic auth tests (#1043)
* actions: improve basic auth tests

* pr fixes
2019-01-16 14:37:46 -05:00
Pascal Dierich
025fe91c6b cmd/proxy/actions: Add basic unit-tests for some proxy routes. (#1036)
* cmd/proxy/actions: Add basic unit-tests for some proxy routes.

* cmd/proxy/actions: Fail test with t.Fatal in TestHealthHandler

* cmd/actions/proxy: Remove handler tests. Keep authentication test.
2019-01-12 09:20:08 +01:00
Marwan Sulaiman
b19cbcc137 basicauth: log warning on healthz (#1039)
* basicauth: log warning on healthz

* include http path prefix
2019-01-11 13:23:28 -05:00
Marwan Sulaiman
0d94af2503 catalog: clean up unused interfaces (#1027)
* catalog: clean up unused interfaces

* fix op name
2019-01-05 15:04:46 -05:00
Manu Gupta
3b621caa85 Move catalog handler out of download protocol (#1020)
* Move catalog handler out of download protocol

* Bring back logger

* update comment
2019-01-02 21:55:07 -08:00
Marwan Sulaiman
3908adc78c cmd/proxy: print port at server start (#1018) 2018-12-26 14:03:47 -08:00
Marwan Sulaiman
5870aeee8d Remove Buffalo (#1010)
* Remove Buffalo

* gofmt

* pr fixes

* fix subrouter

* bring back secure middleware + pr fixes

* better place for subrouter

* vendor
2018-12-22 20:24:25 -05:00
Marwan Sulaiman
02cb18ce5e Remove unused session auth (#1011) 2018-12-22 11:17:19 -05:00
Nafis Faysal
dd801d86b1 Refactoring code to improve HTTP status code (#1005)
* refactoring code to improve HTTP status code

* refactoring code to improve HTTP status code

* refactoring code to improve HTTP status code

* refactoring code to improve HTTP status code
2018-12-20 22:15:03 +01:00
Tomasz Tomalak
fb696b2d84 Add prometheus metrics collectors for http handlers (#958)
* Add prometheus metrics exporter for http handlers

* Use prometheus from opencensus

* Add comment to unused func() param

* Add package names to operation description in observ package

* Sort exported/unexported functions
2018-12-20 10:19:22 +01:00
Manu Gupta
5eba6f2e47 File permissions on config files allow more restrictive setting (#966)
* File permissions on config files allow more restrictive setting

* Make the tests a bit more readable

* Bring back the tests dude

* Update error message

* remove else

* Add more test cases

* Change Lstat to Stat

* Add note for umask

* Make sure the permissions are 0600 or lower

* Update config file

* Do not check for windows

* Fix CI errors

* Fix CI test
2018-12-18 16:26:04 +01:00
Pontus Leitzler
fe032bc5ca Add support for TLS (#979)
* Add support for TLS

* Fix review comments
2018-12-09 07:27:49 -05:00
Aravind
48f7ca7780 Implement storage.Backend for azureblob (#917) 2018-11-29 17:06:19 +01:00
Manu Gupta
5882e1ffe6 remove assets to finish treating buffalo as an api (#943) 2018-11-23 07:30:38 -05:00
Audrius Karabanovas
154c993c42 Readiness probe (#942)
* Adding readiness endpoint for readinessProbe in k8s

* liveness and readiness probes added to deployment template

* Changing endpoint to /readyz, onelining checks

* Removing DNS check as that will be covered by storage.List() call
2018-11-22 18:14:23 -05:00
Manu Gupta
035e20be56 Cookies are now not being sent to the client (#898)
* remove cors
add sessions for null

* use proper session store
2018-11-16 16:07:52 -05:00
marpio
4785e9c2b3 Remove storage timeouts (#928)
* remove storage timeouts

* fix tests
2018-11-16 16:00:08 -05:00
Marwan Sulaiman
132a75579b cmd/proxy: add /version endpoint to probe the server version (#908) 2018-11-16 10:07:48 -05:00
Carolyn Van Slyck
f776bc6667 Fix CI build (#903)
* Do not use whitespace in default version during CI build

* Verify docker build during PR builds
2018-11-11 15:43:41 -06:00
Rob j Loranger
1a94129c80 Fix docker builds in Travis (#900) 2018-11-11 12:18:50 -06:00
Rob j Loranger
2f524d27c3 add build details to binary (#866)
* poc

* finish JSON, remove uneeded methods, update docker file, finish script details

* build.Details didn't need to be exported

* typo

* somehow missed this

* should default to false

* Fix some things

remove commit SHA as build script will now create a hybrid for version
as in the push-docker-images.sh script, code shamelessly stolen.

change JSON function to Data and return a struct, the caller can do what
they like with that data, i.e. marshall JSON for a response body.

* add struct tags

* use build script in docker image

* newline in build.sh

* use previously generated version for binary build

* Working docker args

removed script build.sh, was not really needed.

date is generated automatically during docker build process.

VERSION will be set to 'Not Specified', or the version set during
our CI docker build/push step. A user can set their own version during
build using ldflags.

* remove old comment re: script

* Yikes

Almost forgot to remove my testing junk

* GitHub on my phone is hard
2018-11-09 10:32:55 -08:00
Brent Pendergraft
3c223dcfca add new log context middleware to store log entries in the context (#844)
* add new log context middleware to store log entries in the context

* replace LogEntryMiddleware and add NoOpLogger

* fix failing test

* move middleware to top level

* actually move middleware to top level
2018-11-06 08:46:51 -05:00
Michal Pristas
f53ab92503 Filter: fixing after refactoring (#867)
* added some clarity

* no need to handle pseudo versions

* gofmt

* tests ok

* reshuffled again
2018-11-06 00:18:18 -05:00
marpio
54f92c55d6 Config cleanup (#860)
* add default env vars

* del setRuntimeDefaults

* replace cdn conf with azure config and remove baseURL
2018-11-05 09:04:38 +01:00
Marwan Sulaiman
21dcd5a388 config: flatten Proxy struct (#846)
* config: flatten Proxy struct

* fix mw_test

* gofmt

* add line
2018-11-01 17:21:42 -04:00
Michal Pristas
c454512ba3 Netrc for windows (#831)
* netrc for windows

* Update auth.go

* fmt
2018-11-01 11:34:09 -07:00
Manu Gupta
8f4e3dc3c0 Remove FilterOff from the env var (#837)
* Remove FilterOff from the env var

* Remove test

* Turn off filter by default

* Fix test
2018-10-31 17:37:44 -04:00
Manu Gupta
657c9d04a3 If a filter file is not found and is in config, throw an error (#788)
* When the filter file is missing throw a fatal

* Ignore path when file is not specified

* Fix build failure on ci

* Remove logs

* Fix propagate and handle errors

* Fix build error

* Actually check filter file

* Check for errors in the test suite as well

* Improve test coverage

* Add more tests

* Simplify NewFilter function

* Address review comments
2018-10-31 10:08:15 -07:00
Aaron Schlesinger
539072c6e3 Fixing typo in home page (#834) 2018-10-30 21:46:02 +01:00
Marwan Sulaiman
2d589f1945 Remove CSRF option from config (#814) 2018-10-24 10:59:33 +02:00
Henry Jenkins
d26b99d41c Upgrade Buffalo (#789)
* Upgrade buffalo

* Switch to go modules everywhere

* Fixes from buffalo fix

* Add missing modules from module list

* Update vendored modules in /vendor

* Stop using vendor directory for tests

* Check go.mod and go.sum files on verify

* Upgrade Buffalo from v0.13.0 to v0.13.1

* Fix test for new Buffalo

Allow for new Buffalo code

* Add test for endpoint with trailing slash
2018-10-23 16:49:32 -07:00
Henry Jenkins
532e93e119 Remove Olympus code (#779)
* Remove nolonger used moniker package

Usage was removed in 97d8013

* Remove reference to Zeus

Use name Proxy for now.

* Remove Olympus code

See github issue #777

* Remove Olympus related vendor modules

* Mention Olympus removal in docs

* Add note about no registries existing

* Remove eventlog

* Update docs for Olympus removal
2018-10-22 11:52:02 -07:00
Tomasz Tomalak
480d8c8e8c Implement storage.Backend for S3 storage (#750)
* Implement storage.Backend for S3 storage

* Adapt S3 storage test after refactor, Fix skiped minio tests

* Add defer to Close calls in s3.getter methods

* CR fixes

* Fix doc align

* Tweak err checks

* Fix parse test for S3 configs and cleanup error messages in storage.s3
2018-10-15 21:46:08 -04:00
Marwan Sulaiman
6753def0b7 Authenticate by providing Github Token only (#739)
* Authenticate by providing Github Token only

* docs: add backticks to env var

* add optional word to docs
2018-10-04 19:35:16 -04:00
Marwan Sulaiman
337488c202 Add stackdriver to traces (#737) 2018-10-04 18:47:38 -04:00
Bhavesh Praveen
73e45cb413 Tracing Exporter for Datadog #714 (#723)
* Tracing Exporter for Datadog #714

* Tracing Exporter for Datadog #714
2018-10-03 22:48:10 -04:00
Tomasz Tomalak
dfe939e14c Proxy: Add HGRC file mount (#720)
* Proxy: Add HGRC file mount

* Rename and move dotFile initializer, lower permission for authFiles
2018-10-03 20:13:57 +02:00
Zachary Romero
cdced929ab Add Host to configuration (#666) 2018-10-01 20:58:34 +02:00
Zachary Romero
e5b307354c Patch points of test flag leakage (#667) 2018-09-29 19:26:19 +02:00
Manu Gupta
536257ce25 Change error log level to debug (#696) 2018-09-22 01:36:45 -04:00