summaryrefslogtreecommitdiff
path: root/internal/discovery
AgeCommit message (Collapse)Author
2025-08-29Discovery: Remove manager and DiscoveryStartupJeroen Wijenbergh
2025-08-29Discovery: Add cache argument and embed unmarshal on startupJeroen Wijenbergh
2025-05-06All: Move to log/slogJeroen Wijenbergh
2025-05-06All: Run modernize --test --fixJeroen Wijenbergh
2025-05-06All: Fix staticcheck errorsJeroen Wijenbergh
2024-11-21Replace all links from GitHub to Codebergjwijenbergh
2024-07-30Format: Run Gofumptjwijenbergh
2024-07-18Discovery Manager: Remove spammy logsjwijenbergh
2024-07-17Client + Server: Pass discovery manager and lock when neededjwijenbergh
2024-07-17Discovery: Remove organizations per 4 hour expiryjwijenbergh
As setting organizations expired is now done in register
2024-07-17Client + Discovery: Fetch dscovery at startup using DiscoveryStartupjwijenbergh
With a manager that locks and copies such that no race conditions happen
2024-07-17Discovery: Implement conditional requestsjwijenbergh
From docs.eduvpn.org (https://docs.eduvpn.org/server/v3/server-discovery.html): When fetching the new JSON files, the client SHOULD use conditional requests, so the file is only fetched in case there were changes. This, in order to reduce the amount of traffic required by VPN clients, especially relevant for metered, or slow connections. The If-Modified-Since request header SHOULD be used for this. If the response code is 304, the file hasn’t changed since. The value to use for the If-Modified-Since request header is the exact value of the Last-Modified response header for the last successful download, i.e. 200 response. You SHOULD store the value of Last-Modified and use it as-is for the If-Modified-Since header.
2024-07-17Client: Fetch disco fresh after startup calling GetConfigjwijenbergh
2024-06-27Discovery: Unmarshal to a new structure to fix #55jwijenbergh
2024-06-27Discovery: Test for #55jwijenbergh
2024-06-25Discovery: Return a fresh booleanjwijenbergh
2024-06-06Discovery: Organization list cache updatesjwijenbergh
2024-05-29Discovery: Improve search using levenshtein distance and sortingjwijenbergh
2024-05-29Discovery: return country_code to the clientjwijenbergh
2024-05-29Discovery: Convert the search query to lowerjwijenbergh
2024-05-29Discovery: Fix testjwijenbergh
2024-05-29Discovery: Implement search and do not return keywordsjwijenbergh
This patch implements search by adding a second argument to DiscoOrganizations and DiscoServers. A search string of = "" returns everything. This also makes the subset that is returned to the client even fewer, no keywords.
2024-05-29Discovery: Return a subset to the clientJeroen Wijenbergh
2024-05-24Test Server: Add helpers for response handlersJeroen Wijenbergh
2024-03-07Discovery: Resolve logging TODOsjwijenbergh
2024-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19Discovery: Mark orgs expired on org by id errorjwijenbergh
2024-02-19Discovery: Use new HTTP Clientjwijenbergh
2024-02-19All: Prepare to get rid of go-errors/errors libjwijenbergh
2023-09-25Discovery: Ignore embeded discovery filesSimon Rozman
They are not part of the Git repository and are downloaded in the build process. Signed-off-by: Simon Rozman <simon@rozman.si>
2023-09-25Discovery: Pass a context aroundjwijenbergh
2023-09-25Tests: Pass for V2 APIjwijenbergh
2023-09-25Types: Split discovery into its own packagejwijenbergh
2023-03-01Format: Run black and gofumptjwijenbergh
2023-02-28Discovery: Update tests to use the right membersjwijenbergh
2023-02-28Discovery: Cache within JSON as welljwijenbergh
2023-02-27Discovery: Fix embedding preamblejwijenbergh
2023-02-27Discovery: Conditionally embed latest discovery files for local cachejwijenbergh
Conditionally embedding based on https://github.com/golang/go/issues/44484#issuecomment-948137497 To use it, wget the discovery files into the internal/discovery folder (same JSON name) after verifying the signature. Then build with -tags=release
2023-02-16Format: Run gofumptjwijenbergh
2023-02-16Test: Implement util package for starting a TLS serverjwijenbergh
2023-01-31Discovery Test: Fix http -> https typojwijenbergh
We rewrite URLs anyway so this is still fine but let's not make it so confusing
2023-01-31Discovery: Setup a local HTTPS serverjwijenbergh
2023-01-10Client + Discovery: Implement further organizations expiryjwijenbergh
2023-01-06Refactor: Re-use a HTTP clientjwijenbergh
2023-01-03Format: Run gofumptjwijenbergh
2023-01-03Discovery Test: Add more utility function testsjwijenbergh
2023-01-03Discovery: Remove server type from getting by country codejwijenbergh
It's always secure internet, no need to pass it as an argument
2023-01-02Discovery: Omit type info for global disco URLjwijenbergh
2023-01-02Discovery Test: Ignore linter for serve errorjwijenbergh
2023-01-02Discovery: Add simple tests with a file serverjwijenbergh