graphql-engine/server/src-lib/Hasura
Antoine Leblanc 5b54f9d766
server: add support for webhook connection expiration (#4196)
* add expiry time to webhook user info

This also adds an optional message to webhook errors: if we fail to
parse an expiry time, we will log a warning with the parse error.

* refactored Auth

This change had one main goal: put in common all expiry time
extraction code between the JWT and WebHook parts of the
code. Furthermore, this change also moves all WebHook specific code to
its own module, similarly to what is done for JWT.

* Remove dependency on string-conversions in favor of text-conversions

string-conversions silently uses UTF8 instead of being explicit about
it, and it uses lenientDecode when decoding ByteStrings when it’s
usually better to reject invalid UTF8 input outright. text-conversions
solves both those problems.

Co-authored-by: Alexis King <lexi.lambda@gmail.com>
2020-04-02 19:00:13 -05:00
..
Cache Add fast path for server internal metadata migrations (#3686) 2020-01-14 01:09:10 -06:00
Events Use AssertNF for leak prophylaxis when doing mutable writes. Closes #3937 (#4097) 2020-03-17 20:31:22 -05:00
GraphQL server: add support for webhook connection expiration (#4196) 2020-04-02 19:00:13 -05:00
Incremental server: Fix buggy rewrite rule for Rule 2020-03-14 20:38:26 -05:00
RQL server: prevent metadata checks in read-only mode (#4250) 2020-04-01 18:22:55 -05:00
Server server: add support for webhook connection expiration (#4196) 2020-04-02 19:00:13 -05:00
SQL fix postgres query error when computed fields included in mutation response, fix #4035 2020-03-11 10:23:28 +05:30
App.hs include postgres version of the database while sending telemetry data (#4122) 2020-04-01 20:44:26 +05:30
Cache.hs allow specifying an upper limit on the query plan cache size (#3012) 2019-11-25 11:12:23 -06:00
Db.hs incremental metadata: Clean up a few lingering loose ends 2020-01-08 17:19:03 -06:00
EncJSON.hs save permissions, relationships and collections in catalog with 'is_system_defined' explicitly (#3165) 2019-10-21 11:01:05 -05:00
HTTP.hs server: Parameterize the graphql-engine library over the version (#3668) 2020-01-22 15:55:55 -06:00
Incremental.hs Build the GraphQL context after pruning dangling dependents 2020-01-30 18:17:29 -06:00
Logging.hs More robust forking, exception safety. Closes #3768 (#3860) 2020-03-05 23:29:26 +05:30
Prelude.hs server: add support for webhook connection expiration (#4196) 2020-04-02 19:00:13 -05:00