I'm working on a setup where I'm matching Tyk with PowerDNS and trying to find out if I'm heading in the right direction. The idea is the following;
I have several 'customers' who manage their own PowerDNS zones via the REST api,
in Tyk this translates to 'http://tyk-gw:8080/powerdns/api/v1/servers/localhost/zones/example.com'.
My idea is to add a meta field per api-key in Tyk (which is unique for each customer)
In PowerDNS that label exists in the 'account' field. Which can be requested via a REST query to PowerDNS.
So this means that each incoming management query from a customer needs to be validated by a query from Tyk on the REST api from PowerDNS and match the value of a meta field with the result of a query on PowerDNS.
This whole data flow might be too complex but i don't see another way.
I'm very eager to hear what thoughts in the community are on this setup.
Many thanks in advance!