From 61cea7525fc21aa42fd5a25f29a8573deb9f1bee Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 30 Oct 2024 09:51:02 +0100 Subject: [PATCH 1/3] feat(specs): add secrets authentications to ingestion --- specs/ingestion/common/schemas/authentication.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specs/ingestion/common/schemas/authentication.yml b/specs/ingestion/common/schemas/authentication.yml index 4f77aa3db4..c433c1f343 100644 --- a/specs/ingestion/common/schemas/authentication.yml +++ b/specs/ingestion/common/schemas/authentication.yml @@ -103,7 +103,7 @@ AuthenticationSearch: AuthenticationType: type: string description: Type of authentication. This determines the type of credentials required in the `input` object. - enum: [googleServiceAccount, basic, apiKey, oauth, algolia, algoliaInsights] + enum: [googleServiceAccount, basic, apiKey, oauth, algolia, algoliaInsights, secrets] Platform: default: null @@ -298,6 +298,11 @@ AuthAlgolia: - appID - apiKey +AuthSecrets: + type: object + additionalProperties: false + description: A key:value authentication for your transformations. + AuthAlgoliaInsights: type: object additionalProperties: false From b24ec51fd8b08f32dfe31cb5c5dbaa4c76b375c7 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 30 Oct 2024 09:51:42 +0100 Subject: [PATCH 2/3] fix: oneOf --- specs/ingestion/common/schemas/authentication.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/ingestion/common/schemas/authentication.yml b/specs/ingestion/common/schemas/authentication.yml index c433c1f343..a2e73bc89c 100644 --- a/specs/ingestion/common/schemas/authentication.yml +++ b/specs/ingestion/common/schemas/authentication.yml @@ -328,6 +328,7 @@ AuthInput: - $ref: '#/AuthOAuth' - $ref: '#/AuthAlgolia' - $ref: '#/AuthAlgoliaInsights' + - $ref: '#/AuthSecrets' AuthInputPartial: oneOf: From cd76f0599feb584be987745a30c0468811cfb9ed Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 30 Oct 2024 10:00:28 +0100 Subject: [PATCH 3/3] fix: loose type --- specs/ingestion/common/schemas/authentication.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/ingestion/common/schemas/authentication.yml b/specs/ingestion/common/schemas/authentication.yml index a2e73bc89c..0035635476 100644 --- a/specs/ingestion/common/schemas/authentication.yml +++ b/specs/ingestion/common/schemas/authentication.yml @@ -300,8 +300,9 @@ AuthAlgolia: AuthSecrets: type: object - additionalProperties: false description: A key:value authentication for your transformations. + additionalProperties: + type: string AuthAlgoliaInsights: type: object