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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Realm
    • None

    Description

      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.)

      Attachments

        Activity

          People

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

            Dates

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