Commit Graph

602 Commits

Author SHA1 Message Date
Marwan Sulaiman
a4450c1142 config.toml: add cautionary note around basic auth (#1109) v0.3.1 2019-03-07 08:51:18 -05:00
Marwan Sulaiman
36dae02c03 storage/minio: chunk zip file (#1107)
* storage/minio: chunk zip file

* multi err on clean up

* fix doc
2019-03-06 16:13:24 -05:00
Aaron Schlesinger
58698ce4dd Delete the maintainer resources file (#1108)
We were trying to track all the resources we use so that maintainers can get access to them, but this is harder to do in Markdown than in a google sheet, so we're going to stick with that
2019-03-06 21:18:21 +01:00
Aaron Schlesinger
7561d5384e Further alterations to the install documentation (#1098)
* Further alterations to the install documentation

This is a follow-up to https://github.com/gomods/athens/pull/1095. I accidentally merged that :( so I am rolling forward here based on comments in the previous PR

* simplifying
2019-03-05 17:54:19 -05:00
Aaron Schlesinger
9c07647488 Updating docs to reference v0.3.0 (#1104) 2019-03-05 14:47:29 +01:00
Horst Gutmann
dbea2773ba Helm chart: Fix ingress setup (#1086)
* Helm chart: Fix ingress setup

The ingress part of the Helm chart contained references to
not-existing templates and values. Additionally, the deployment used
some no longer available health-check URLs which prevented it from
being marked as ready.

* Make readiness and liveness paths depend on the image.tag
v0.3.0
2019-03-04 12:22:03 -08:00
Aaron Schlesinger
8caad2bc54 Updating helm docs to point to the new helm chart repository (#1102)
* Updating helm docs to point to the new helm chart repository

Fixes https://github.com/gomods/athens/issues/1099
Follow-up to https://github.com/gomods/athens/pull/1097/files

* fixes
2019-03-04 08:24:55 -06:00
Carolyn Van Slyck
d379c20f44 Publish charts to azure storage (#1097)
* Add chart-push target and script

* Rename chart dir to match helm standards
2019-03-01 15:08:30 -08:00
Aaron Schlesinger
7bf99e1e6e adding a section on immutability (#1095)
* adding a section on immutability

* changes thanks to Piotr
2019-03-01 14:50:50 -08: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
Taufiq Rahman
88daf9655c README.md: fix typographical error (#1094) 2019-02-27 09:12:13 +01:00
Chris Mills
340d17f4bb Add to docker-compose and standardise the file (#821)
Whilst we wait for a ticket to be completed we need to star the initial
part of this work. I've updated the compose file to include azurite and
also sorted that file so it's standard in some way, we used various ways
to define environment variables/commands and things were a bit all over
the place.

Signed-off-by: Chris M <millscj01@gmail.com>
2019-02-26 12:19:06 -08:00
Marwan Sulaiman
26d565d7bc catalog: fix vet errors (#1090)
* catalog: fix vet errors

* fix typo
2019-02-26 10:57:18 -08:00
Marwan Sulaiman
dbe44e627a storage/gcp: use base64 for json key (#1089) 2019-02-25 15:16:13 -08:00
Marwan Sulaiman
a27ef13b71 storage/gcp: allow json key to be used for GCS access (#1088) 2019-02-25 13:59:00 -08: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
Aaron Schlesinger
258e8b1a3c ignoring vscode local settings dir (#1076) 2019-02-21 21:44:34 +01:00
Aaron Schlesinger
280d9f3f16 Adding a document for installing Athens on ACI (#967)
Fixes https://github.com/gomods/athens/issues/57
2019-02-21 08:59:59 +01:00
fsouza
3525cdaa4a pkg/config: make sure envconfig doesn't override config values for port (#1074)
Fixes #1037.

envconfig can't actually support that use case, and because athens was
using the `default:` tag only for the port field, handling this manually
is the easiest and functional solution.
2019-02-19 12:11:33 -05:00
marpio
831b5616b5 Check code defaults and config.toml defaults are the same (#1073)
* rm TraceExporterURL and StatsExporter default vals

* add test

* fix test

* revert TraceExporterURL and StatsExporter changes

* improve test error msg

* ignore GoEnv since it's set in CI and dev differently
2019-02-19 07:46:29 -08:00
Marwan Sulaiman
94360f3930 pkg/config: make StatsExporter consistent with config.toml (#1072) 2019-02-18 22:19:44 +01:00
Marwan Sulaiman
9d1078f901 config.toml: fix override typo (#1071) 2019-02-18 21:57:29 +01: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
Ramana Venkata
3e853dbb01 Fix Typo (#1067) 2019-02-16 21:20:18 +01:00
Marwan Sulaiman
dc358ba096 Keep code defaults and config.toml defaults the same (#1062) 2019-02-15 20:48:21 -08:00
Stanislas Michalak
edf1c48952 Update SHOULDERS.md (#1061)
Ensure the list is up to date with the current deps. This is the result of the following
command: $ shoulders -w -n Athens
2019-02-15 20:22:26 -08:00
Boris Popovschi
4dfa99320f Add catalog to minio (#1040)
* Implement cataloger interface for Minio

* Catalog fix

* Implemented Catalog method in the Minio storage package

* code fmt fix

* fmt fix

* remove unused channel
2019-02-15 20:02:59 -08:00
Aaron Schlesinger
c2647da423 Adding ability to run all tests inside docker containers (#973)
* Adding ability to run all tests inside docker containers

* Adding test dockerfile

* Small changes to the testing sections
2019-02-15 19:16:02 +01: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
Chris Mills
2cf10c3ead Allow mgo.ParseURL to set [/database] (#997)
* Allow mgo.ParseURL to set [/database]

As per Michael's solution we need to be able to set the database from
either the parsed connection string, or fallback to athens if not set.

Signed-off-by: Chris M <me@christophermills.co.uk>

* Remove TimeoutDuration which was removed #928

Signed-off-by: Chris M <me@christophermills.co.uk>

* Correct conf_test to accommodate for changes

I'd missed out the addition of DefaultDBName from the test, this has now
been corrected

Signed-off-by: Chris M <me@christophermills.co.uk>

* Make sure gofmt runs automatically on this machine

Y'know simple stuff.

Signed-off-by: Chris M <me@christophermills.co.uk>
2019-02-14 10:21:34 -08:00
Marwan Sulaiman
aa3fb3389c pkg/config: Update GoGetWorkers default/docs (#1052)
* pkg/config: Update GoGetWorkers default/docs

* fix tests
2019-02-11 11:51:38 -05:00
Mark Petrovic
feff9872cd [issue/1048] Describe how to configure Athens to resolve dependencies… (#1049)
* [issue/1048] Describe how to configure Athens to resolve dependencies over authenticated SSH

Issue: 1048
Files changed:  docs/content/configuration/authentication.md

* [1048] pull request feedback
2019-02-06 20:13:21 -05:00
Chad Kunde
7811524c22 Version filtering (#1050)
* extend filtering logic and configuration to include version lists

Module filtering is very useful, but many deployments will need to
satisfy even more granular constrainsts.  Enterprises may need
approved lists specific down to the minor (or patch) version element.

Version filtering logic is similar to the module filtering, in that
it's a prefix match of the version requested against each entry in the
version filter list.

Closes #1045

* include version filtering in documentation with example

* allow filtering when version is missing

Endpoints that do not specify a version, such as "@v/list", only need
to be filtered by module rules.
2019-02-05 09:04:09 +01: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
marpio
128a7d6b3c gcp compliance tests (#1030)
* gcp compliance tests

* fix error wrapping, rm redundant funcs

* add mod, ver info to the error

* adjust bucket name

* adjust the catalog test
2019-01-16 16:21:34 +01:00
Joshua Rubin
84eff04ed2 Use ambient aws credential provider for s3 (#1041)
* use ambiant aws credentials

Signed-off-by: Joshua Rubin <joshua@rubixconsulting.com>

* better naming, docs and examples for default aws config

Signed-off-by: Joshua Rubin <joshua@rubixconsulting.com>
2019-01-16 08:47:21 +01:00
Marwan Sulaiman
b17bfb3d0a docs: remove commit hash from known limitations (#1019) 2019-01-15 20:41:29 +01: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
Pascal Dierich
fd10bed609 pkg/download/addon: fix test error msg in TestPoolLogic. (#1034) 2019-01-07 22:04:09 -05:00
Marwan Sulaiman
f0e931311b pkg/stash: allow nonsemver requests to be resolved properly (#1015) 2019-01-07 20:51:22 -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
Pascal Dierich
9964e84902 fixes typos (#1031)
* fix typo in DEVELOPMENT.md

* fix doc typo in upstream_lister.go

* Remove Olympus references

* fix typo in DEVELOPMENT.md

* Update DEVELOPMENT.md
2019-01-05 13:21:24 -05:00
Manu Gupta
53dd1c605e Do not fetch buffalo on travis (#1029) 2019-01-05 12:44:53 -05:00
Marwan Sulaiman
5273eaaf1f go.sum: fix checksum mismatch (#1026) 2019-01-04 20:46:32 +01:00
Marwan Sulaiman
2bd4c9d12f mongo: use explicit URL for testing (#1025) 2019-01-04 20:23:49 +01:00
Manu Gupta
23b285d49d Catalog endpoint support for mongo (#985)
* Added new cataloger interface

* Implementing catalog protocol

* Propagated to protocol and over

* First round of fixes

* S3 almost ready, need to be tested

* Going on with testing s3

* Better testing with s3

* Simplified catalog tests

* Preparing gcp tests to access a gcp instance

* Fixing initialization errors

* Removed some prints

* Gcp ready, to be tested

* Gcp working

* Aligned bucket mock to catalog method

* Switched res payload to json

* Added catalog method to all storage instances

* Added catalog method to unsupported storages

* Fixed with pool test

* Restored tests

* Fixed gcp constructor

* Implemented catalog for fs

* Removed trace

* E2e tests, fixed fs

* Fixed module name return value

* Added cataloger method to azure storage

* Added docs

* Changed pagesize parameter name

* Fixed gofmt error

* Added json tags to result. Fixed lint warning

* Removed extra line

* Changed not implemented error to http.KindNotImplemented

* Checking for inequality on results

* Lower-cased json keys

* Added cleaning of path separator

* Fixed review comments

* Add catalog endpoint for mongo

* Add omitempty to ID

* Fix catalog tests

* update for next token

* fix e2e

* Make query readable

* Fix language and e2e script

* remove new line
2019-01-02 22:13:56 -08: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
Quinn Slack
312f1d56a9 fix typo (Kuberentes -> Kubernetes) (#1021) 2018-12-31 20:27:24 -08:00