-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Realm
-
Labels:None
Description
Secret keys are not included when doing an Export.
When a customer attempts to Import the app, it will result in error: could not find secret
I found several Slack discussions on this topic and it seems the steps below is a workaround for this which should be added to a document or KB:
1) Export app
2) Import app via CLI (with ``could not find secret`` error)
3) Create the secret manually in the UI of the half-imported app ([or via CLI](https://docs.mongodb.com/realm/deploy/realm-cli-reference#create-a-secret))
4) Attempt import of app again via cli using ``realm-cli import --strategy=replace``
Articles that these steps may be added to:
https://docs.mongodb.com/realm/deploy/realm-cli-reference
It would also be good to mention that secrets cannot be exported/imported in this article:
https://docs.mongodb.com/realm/deploy/export-realm-app
Slack conversation:
https://mongodb.slack.com/archives/C41SX3C4D/p1607108717012900