Commit Graph

1047 Commits

Author SHA1 Message Date
dependabot[bot]
2240baf308 update-go-pkg(deps): bump github.com/spf13/afero from 1.1.2 to 1.8.2 (#1766)
Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.1.2 to 1.8.2.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](https://github.com/spf13/afero/compare/v1.1.2...v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/spf13/afero
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-18 16:40:52 -07:00
dependabot[bot]
13f8998073 update-go-pkg(deps): bump contrib.go.opencensus.io/exporter/jaeger (#1762)
Bumps [contrib.go.opencensus.io/exporter/jaeger](https://github.com/census-ecosystem/opencensus-go-exporter-jaeger) from 0.1.0 to 0.2.1.
- [Release notes](https://github.com/census-ecosystem/opencensus-go-exporter-jaeger/releases)
- [Commits](https://github.com/census-ecosystem/opencensus-go-exporter-jaeger/compare/v0.1.0...v0.2.1)

---
updated-dependencies:
- dependency-name: contrib.go.opencensus.io/exporter/jaeger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Manu Gupta <manugupt1@gmail.com>
2022-02-24 19:29:19 -08:00
dependabot[bot]
c680eacb3a update-go-pkg(deps): bump github.com/fatih/color from 1.7.0 to 1.13.0 (#1760)
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.7.0 to 1.13.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](https://github.com/fatih/color/compare/v1.7.0...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/fatih/color
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-21 14:24:48 -08:00
Manu Gupta
be203340be Remove deprecated GOPROXY in favor of GoBinaryEnvVars (#1759) 2022-02-18 10:24:44 -08:00
Manu Gupta
3a40029ec8 Revert retries in redis-flake as builds are failing again. (#1758) 2022-02-16 12:31:47 -08:00
Manu Gupta
4e3377fb8a Switch to latest supported CircleCI Ubuntu image (#1757) 2022-02-16 10:07:06 -08:00
Manu Gupta
67bb68c45d Update etcd (#1756) 2022-02-15 09:10:51 -08:00
dependabot[bot]
4708dd84a0 update-go-pkg(deps): bump github.com/BurntSushi/toml from 0.3.1 to 1.0.0 (#1753)
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 0.3.1 to 1.0.0.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](https://github.com/BurntSushi/toml/compare/v0.3.1...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 17:39:39 -05:00
Manu Gupta
1d302be225 Add dependabot for automatic dependency update (#1752) 2022-02-14 14:14:24 -08:00
Manu Gupta
533035c40c fix flake on redis-sentinel by depending on redis container / step. (#1748)
* fix: flake on redis-sentinel by depending on redis container / step.

Signed-off-by: Manu Gupta <manugupt1@gmail.com>

* Add retries in an attempt to reduce the number of flakes

Also; update go-redis.

Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2022-02-14 14:01:29 -08:00
Steve Coffman
7fc5e15447 Update Cloud Run per #1571 (#1751)
see https://github.com/gomods/athens/issues/1571#issuecomment-599221107
2022-01-18 15:43:09 -05:00
Alex
6da5568081 a new way to pre-fill disk storage (#1747)
* a new way to pre-fill disk storage
* changed a headline to a bold'ed text
2021-12-22 13:46:16 -08:00
Rob Lee
567c939ac4 Finish Removing golint (#1746)
* Set GO111MODULE to auto in golint script– #1743

As mentioned in #1743 the Go modules environment flag is set to `off`
in the script which appears to cause a warning message for each module
of the codebase that it is "not in GOROOT".

Set to `auto` as this allows the same build to be run the original way
should someone choose to delete the `go.mod` file from the project root.

* Remove redundant code – golint script

Go 1.17 ignores `GO111MODULE` and there are no directories in the
project root called `mock`.

* Replace `golint` with `go vet`

`golint` is deprecated (and frozen) replace with the current `go vet`.
This reported one issue on `main` branch:
```pkg/stash/with_etcd.go:33:28:
loop variable ep captured by func literal```

Fixed loop variable capture with extraction to parameterised anonymous
function passed loop variable and passed in to `errgroup.Go` call.

* Finish Removing `golint`

Removed remaining references to `golint` in dev doc, Makefile,
bash scripts, and powershell build scripts.
Removed `get_dev_tools.sh` and `get_dev_tools.ps1` as they only install
the removed `golint` package.
2021-12-11 11:09:03 -05:00
Manu Gupta
2f49984800 Update droneci to use go1.17 (#1745)
Athens now uses go1.17 which is latest. Update drone ci to do the
same for better indication of our CI results.
2021-12-09 22:23:16 -08:00
Rob Lee
918ddfb59a Replace golint with go vet#1743 (#1744)
* Set GO111MODULE to auto in golint script– #1743

As mentioned in #1743 the Go modules environment flag is set to `off`
in the script which appears to cause a warning message for each module
of the codebase that it is "not in GOROOT".

Set to `auto` as this allows the same build to be run the original way
should someone choose to delete the `go.mod` file from the project root.

* Remove redundant code – golint script

Go 1.17 ignores `GO111MODULE` and there are no directories in the
project root called `mock`.

* Replace `golint` with `go vet`

`golint` is deprecated (and frozen) replace with the current `go vet`.
This reported one issue on `main` branch:
```pkg/stash/with_etcd.go:33:28:
loop variable ep captured by func literal```

Fixed loop variable capture with extraction to parameterised anonymous
function passed loop variable and passed in to `errgroup.Go` call.
2021-12-09 22:03:48 -08:00
Manu Gupta
898673c600 Deprecate bzr as it is unmaintained. (#1742)
Alpine moved bzr to unmaintained status. See
https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10000
2021-12-04 22:46:27 -05:00
Abhay Krishna
38a3039a21 Fix typos and comments in config.toml (#1739)
Co-authored-by: Marwan Sulaiman <marwan.sameer@gmail.com>
2021-12-03 01:38:09 -05:00
jason-liew
535c26b0e0 Upgrade GOLANG_VERSION to 1.17 (#1741)
* Upgrade GOLANG_VERSION to 1.17

Fixes ##1740

* feat: upgrade to go1.17

Co-authored-by: shangji.liu <shangji.liu@qingteng.cn>
Co-authored-by: Marwan Sulaiman <marwan.sameer@gmail.com>
2021-12-03 00:56:05 -05:00
Marwan Sulaiman
fd54babfae comment out liveness probe 2021-12-02 23:59:14 -05:00
Marwan Sulaiman
679b369af3 Disable on the fly proxy to unblock builds 2021-12-02 23:52:37 -05:00
Aaron
338e79a110 bolding the message
Signed-off-by: Aaron <aaron@ecomaz.net>
2021-10-27 18:18:01 +00:00
Aaron
1ab61537e9 adding call for maintainers message
Signed-off-by: Aaron <aaron@ecomaz.net>
2021-10-27 18:17:30 +00:00
Aaron Schlesinger
2a8b8eed75 Fixing panic with S3 storage (#1730)
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2021-10-01 13:11:33 -07:00
Shimin Guo
bb0788dd5c Update alpine version to latest (#1732)
3.11 will reach end of support on 2021-11-01
2021-09-30 14:30:00 -04:00
Marwan Sulaiman
a724fcdddc Update mongo client to address CVE (#1728) 2021-08-18 22:49:44 -04:00
Zhongpeng Lin
4abe908a58 Using directory as prefix for S3 (#1720)
* Using directory as prefix for S3

* address comments

Co-authored-by: Marwan Sulaiman <marwan.sameer@gmail.com>
2021-08-18 21:06:51 -04:00
Marwan Sulaiman
151c4922fb Enable Athens to work in offline mode (#1717)
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2021-08-18 19:09:14 -04:00
Zhongpeng Lin
9b505e9ee0 Use actual content length when it is not available in headers (#1719)
* Use actual content length when it is not available in headers

* Setting Content-Length before writing body

* Using zero value as unknown size
2021-06-18 10:57:46 -04:00
Zdeněk Brabec
bb6c5f4c9c Update GCP Storage authentication comment (#1716) 2021-06-03 11:14:56 -07:00
Aaron Schlesinger
0c78ebd630 Removing the known limitations file (#1710)
As @thomasf pointed out, these limitations no longer apply

Fixes #1709
2021-04-06 11:26:48 -07:00
Latchezar Tzvetkoff
6991d6347b Fix permissions for /config/config.toml so Athens can run as non-root (#1699)
Fixes #1695.

Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2021-03-31 11:20:23 -07:00
Nick Anderson
a4046cc890 docs: AWS Fargate (ECS) details (#1708) 2021-03-28 09:49:08 -04:00
Aaron Schlesinger
107d0059e3 releasing v0.11.0 (#1701)
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
2021-03-11 11:57:10 -08:00
Aaron Schlesinger
1acdf17a4a Reverting passthrough auth (#1700)
* Reverting PR 1650

https://github.com/gomods/athens/pull/1650 was a big change to the
authentication/authorization code, which we have decided to pull
out and potentially move into a separate process/project

Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>

* removing commented, unused code

Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>

* removing more commented, unused code

Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>

* removing more unused code

Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
2021-03-11 11:28:15 -08:00
Abhisek Banerjee
93cef4f37f Allow using existing service accounts (#1677) 2021-02-28 11:04:20 -08:00
Marwan Sulaiman
6ef4a793c3 Add Content-Length to .zip requests (#1681)
* Add Content-Length to .zip requests

* pr comments

Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2020-11-24 10:00:47 -05:00
Chris Mills
ebae08082e Implement CodeQL GitHub Action (#1682)
* Add CodeQL action for security scanning
* Alter name to be in line with other workflows

Signed-off-by: Chris Mills <millscj01@gmail.com>
2020-11-22 03:39:02 +00:00
Abhisek Banerjee
46b68e4da8 Support IRSA for S3 bucket (#1673) 2020-11-20 11:24:54 -08:00
Igor Zibarev
2428d133b7 Fix missing chart apiVersion (#1662)
* Fix missing chart apiVersion

* Update chart version to 0.4.15

Co-authored-by: Ted Wexler <ted@stuckinacan.com>
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2020-11-06 14:55:40 -08:00
Owen Haynes
2886b848ba Fix K8s service account usage (#1672)
* Fix K8s service account usage

* bump chart version

Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2020-11-06 13:15:06 -08:00
Trenton Broughton
7152434457 Fix broken link to docker hub (#1674) 2020-10-27 12:14:31 -04:00
arothste-blk
b121e84dcd github actions + goreleaser to build and publish binaries (#1623)
* initial github action to build github hosted binary artifact releases

* consistent with Makefile

* fix syntax error

* add GOPROXY env var

* reintroduce VERSION to env and go build.version

* barf, typo

* set build.version to the tag

Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2020-09-11 15:30:10 -07:00
Aaron Bieber
23672f78c9 go.mod: update github.com/mattn/go-ieproxy to v0.0.1 (#1660)
* go.mod: update github.com/mattn/go-ieproxy to v0.0.1

This allows athens to build on OpenBSD.

* go.mod: update github.com/mattn/go-ieproxy to v0.0.1

This allows athens to build on OpenBSD.

* switch back to indirect dep

* bump github.com/Azure/azure-storage-blob-go to v0.10.0

Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2020-08-10 23:48:31 -04:00
Igor Zibarev
8e6a70eb43 Use new Ingress API (#1659)
`extensions/v1beta1` API for Ingress is deprecated since Kuberentes
1.14.
Ref: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.14.md#deprecations

This commit adds a check using Helm Capabilities to deploy Ingress with
newer API.
2020-08-09 09:58:52 -04:00
Marwan Sulaiman
dfb7887080 Allow Athens to Propagate Authentication to Mod Download (#1650)
* Allow Athens to Propagate Authentication to Mod Download

* update readme

* add pattern matching to auth propagation

* Propagate authentication to pre declared static host

* quote redis test

* fix flaky redis error message

* fix config tests

* fix config tests

* Update config.dev.toml

Co-authored-by: Ted Wexler <ted@stuckinacan.com>

* gofmt

Co-authored-by: Ted Wexler <ted@stuckinacan.com>
2020-07-30 17:06:53 -04:00
Marwan Sulaiman
81906b918f pkg/requestid: add Request ID to Athens requests and logs (#1655)
Co-authored-by: Ted Wexler <ted@stuckinacan.com>
2020-07-27 12:37:36 -04:00
Marwan Sulaiman
4ad3dd1135 pkg/config: make test failures output diff instead of %+v (#1652)
Co-authored-by: Ted Wexler <ted@stuckinacan.com>
2020-07-27 12:28:26 -04:00
Marwan Sulaiman
46f176482f pkg/stash: fix redis failing test (#1656) 2020-07-27 12:17:08 -04:00
Marwan Sulaiman
408fd74a9c actions: add index handler tests (#1637) v0.10.0 2020-07-03 11:00:24 -04:00
Marwan Sulaiman
d6f06d0302 index: gracefully handle duplicate module indexes (#1645)
* index: gracefully handle duplicate module indexes

* fix memory impl
2020-07-03 10:42:51 -04:00