Currently we're using key as the universal credentials for both Dune (API Key) and Postgres (DSN). However, other data bases like S3 buckets will use different types of credentials that will go beyond just a string value.
For this reason we would like to introduce (backwards compatible) "credentials" field:
For Postgres this would become:
credentials:
dsn: ${DB_URL}
For Dune:
credentials:
api_key: ${DB_URL}
For S3 this would be some kind of IAM role info...
I, personally, like the key field as short-hand notation so we could keep this around and continue to support it (unless it gets messy). This change may not be necessary until we actually introduce another data source that requires credentials beyond a string (e.g. #59).
Currently we're using
keyas the universal credentials for both Dune (API Key) and Postgres (DSN). However, other data bases like S3 buckets will use different types of credentials that will go beyond just a string value.For this reason we would like to introduce (backwards compatible) "credentials" field:
For Postgres this would become:
For Dune:
For S3 this would be some kind of IAM role info...
I, personally, like the
keyfield as short-hand notation so we could keep this around and continue to support it (unless it gets messy). This change may not be necessary until we actually introduce another data source that requires credentials beyond a string (e.g. #59).