mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
4cf13762e2
Issue: https://github.com/hasura/graphql-engine/issues/7520 Problem: add support for network metadata object Solution: add new network.yaml which consists of network metadata and in code add new network metadata object Metadata.json ``` { "resource_version": 6, "metadata": { "version": 3, "sources": [ { "name": "default", "kind": "postgres", "tables": [], "configuration": { "connection_info": { "use_prepared_statements": true, "database_url": { "from_env": "HASURA_GRAPHQL_DATABASE_URL" }, "isolation_level": "read-committed", "pool_settings": { "connection_lifetime": 600, "retries": 1, "idle_timeout": 180, "max_connections": 50 } } } } ], "network": { "tls_allowlist": [ { "suffix": null, "permissions": [ "self-signed" ], "host": "www.google.com" }, { "suffix": null, "permissions": [ "self-signed" ], "host": "play.golang.com" }, { "suffix": null, "permissions": [ "self-signed" ], "host": "hasura.io" } ] } } } ``` network.yaml ``` tls_allowlist: - suffix: null permissions: - self-signed host: www.google.com - suffix: null permissions: - self-signed host: play.golang.com - suffix: null permissions: - self-signed host: hasura.io ``` https://github.com/hasura/graphql-engine-mono/pull/2343 GitOrigin-RevId: ef508ae946dc5c7c5bcb4a9a3ccb982394ae8639 |
||
---|---|---|
.. | ||
testdata | ||
api_limits_test.go | ||
api_limits.go |