~bigbes/core-go

86e1e934 — Drew DeVault 5 years ago
webhooks: panic on nested webhook auth case

This is not strictly speaking necessary since we have a panic which
immediately follows the switch, but it is cleaner.
6c80f878 — Drew DeVault 5 years ago
webhooks: correct error case log format
3eaac6aa — Drew DeVault 5 years ago
webhooks: test error from delivery attempt
3a272385 — Drew DeVault 5 years ago
webhooks: add query validation function

The new function tests a query against a GraphQL schema and returns any
validation errors if they are found. This is useful for determining if a
GraphQL query will pass validation when creating a new webhook.
f500157c — Drew DeVault 5 years ago
webhooks: refactor exec code into separate func
67ddd428 — Drew DeVault 5 years ago
server: add server reference to context
8bd6005b — Drew DeVault 5 years ago
webhooks: initial prototype for GQL-native webhooks
dc0584da — Drew DeVault 5 years ago
.builds/alpine.yml: upgrade to 3.14
1d24fef3 — Drew DeVault 5 years ago
auth: s/OAuth2Token/BearerToken/g

This also makes some tweaks to the organization of the crypto module to
make it easier for us to add more keys in the future, which will be
necessary for the internal token redesign.
39cd24bd — Drew DeVault 5 years ago
auth: allow /query/metrics w/o authentication
b5e0030f — Drew DeVault 5 years ago
auth: fix user type on database insert
8d15b7e1 — Drew DeVault 5 years ago
auth: authenticate all requests under /query
7ccaeb92 — Drew DeVault 5 years ago
database: panic on errors from Commit/Rollback

The previous change would eat the error from fn(tx); in truth we should
ensure that it is returned to the caller. This panics instead if an
error occurs during Commit or Rollback. I'm not sure of what scenarios
would cause this to occur, but they all probably deserve further
investigation - a panic will raise it to our attention.
a7d80e21 — Drew DeVault 5 years ago
database: handle Commit/Rollback errors
61ab3f08 — Drew DeVault 5 years ago
Update go-bare
c2951537 — Drew DeVault 5 years ago
Add debugging command to decode OAuth tokens
f9731e15 — Drew DeVault 5 years ago
Various bug fixes per pages.sr.ht
07056613 — Drew DeVault 5 years ago
database: expand field map for composite fields

This allows models to fetch multiple SQL columns to obtain the data
necessary to compute a single composite GraphQL field, while still
avoiding unnecessary fetches if those fields are not queried.
900693b8 — Drew DeVault 5 years ago
crypto: harden API surface

Make it explicit that expiration is not being tested with Decrypt, and
test that the expiration is meaningful with DecryptWithExpiration.
12996e4a — Simon Ser 5 years ago
client: add config option to override API origin

If the config file contains an "api-origin" key for a service, prefer it
instead of "origin". This allows users to directly point the Python
frontend to the Go backend for local development, without having to
setup a reverse proxy.

This is the Go port of [1].

While at it, use GetOrigin for symmetry with the Python code.

[1]: https://git.sr.ht/~sircmpwn/meta.sr.ht/commit/6c2ee03923fe65423a2c55e6648f555c08db827a
Next