From 14b84ed9e64d28136eb77efa76afc8a0ea0fc124 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 9 Aug 2023 08:11:15 -0700 Subject: [PATCH] Add a secrets attribute to the identities collection These secrets can be used to store data from the provider that may or may not be sensitive. For example, this will be used by the migration API when connecting to Firebase to store the service account used for the migration. This data will only be used internally inside Appwrite and not exposed to an end user or developer. --- app/config/collections.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/config/collections.php b/app/config/collections.php index d54665302a..cc721bee50 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -782,6 +782,18 @@ $commonCollections = [ 'array' => false, 'filters' => ['encrypt'], ], + [ + // Used to store data from provider that may or may not be sensitive + '$id' => ID::custom('secrets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], ], 'indexes' => [ [