Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14173

Add "how to" regarding importing a Realm app which has Secrets

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 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

       

       

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            ben.p@mongodb.com Ben Perlmutter
            Reporter:
            mansoor.omar@mongodb.com Mansoor Omar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 21 weeks, 2 days ago