• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wikimedia / operations-software-tegola / 155fb5518
47%
v0.13.x: 46%

Build:
Build:
LAST BUILD BRANCH: wmf/v0.19.x
DEFAULT BRANCH: v0.13.x
Ran 21 May 2024 02:30PM UTC
Jobs 1
Files 128
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 May 2024 02:24PM UTC coverage: 46.899% (-0.007%) from 46.906%
155fb5518

push

github

elukey
Add proxy_host setting to the S3 cache.

This change is a test to figure out if Tegola can
use a local proxy to connect to its S3 endpoint
(in our case, Thanos Swift). With the current code
it is not enough to set the endpoint arg to something
like http://localhost:port, since Request Signing
is affected ending up in a HTTP 403 returned by
Thanos with the following error:

"""
SignatureDoesNotMatch: The request signature we calculated
does not match the signature you provided.
Check your key and signing method.
"""

After reading https://github.com/aws/aws-sdk-go/issues/1473
it seems that the issue is related to the HTTP Host header,
that in the case of a local proxy is set to "localhost:port",
and it is not what it needs to be ("thanos-swift.discovery.wmnet").
As suggested in the gh issue, fixing the client is a quick
way to circumvent the problem. Other roads could be to update
envoy (our local proxy) to fix  request signing on Tegola's
behalf, but the envoy filter that does that is currently in
experimental state (not suggested to be used in production).

If this test works we can decide what to do, possibly sending
a patch to upstream to discuss it further.

Bug: T344324
Change-Id: I96f03961b

8 of 18 new or added lines in 1 file covered. (44.44%)

6563 of 13994 relevant lines covered (46.9%)

251.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
50.43
-0.72% cache/s3/s3.go
Jobs
ID Job ID Ran Files Coverage
1 155fb5518.1 21 May 2024 02:30PM UTC 128
46.9
GitHub Action Run
Source Files on build 155fb5518
  • Tree
  • List 128
  • Changed 4
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 155fb551 on github
  • Prev Build on wmf/v0.19.x (#4A260BAF5)
  • Next Build on wmf/v0.19.x (#7F51F67AB)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc