Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-2675

Update appstore-playbooks to configure submit_app permissions correctly

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The current master branch of the appstore-playbooks has a problem.

      The first time you run them to provision an entirely "fresh" appstore instance, the appstore does not work. That is, when you visit the appstore using your web browser, you get an "internal server" error.

      Sameer has figured out the problem: the "submit_app" directory within the deployed appstore code needs to be write-able by the appstore process.

      The appstore playbooks seem to already allow for this, but somehow it is not working as it should.

      Here is the current configuration scheme:

      When the app store is stood up or later modified, the "ubuntu" user is the owner of all the files, which is correct. Also, the "ubuntu" user gets added to the group "www-data," a "no login" user that owns the appstore process. Further, all directories and files this "www-data" user needs to modify during appstore operation are assigned during setup to group "www-data". Lastly, all the files inside the appstore directory are "chmod'd" to be group-writeable. Thus, the appstore process ought to be able to do what it needs to do.

      For this task, please figure out why the configuration is not working as it should. Also, propose a fix that is as lightweight as possible and harmonizes well with updating the appstore post-deployment. That is, a fix that gets it working on first deployment but causes failure later won't work.

        Attachments

          Activity

          ann.loraine Ann Loraine created issue -
          ann.loraine Ann Loraine made changes -
          Field Original Value New Value
          Epic Link IGBF-2563 [ 18746 ]
          cdias1 Chester Dias (Inactive) made changes -
          Assignee Chester Dias [ cdias1 ]
          Hide
          cdias1 Chester Dias (Inactive) added a comment -

          sudo chmod 570 -R submit_app/
          sudo chown ubuntu:www-data -R submit_app

          Show
          cdias1 Chester Dias (Inactive) added a comment - sudo chmod 570 -R submit_app/ sudo chown ubuntu:www-data -R submit_app
          cdias1 Chester Dias (Inactive) made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Show
          cdias1 Chester Dias (Inactive) added a comment - Please Review: https://bitbucket.org/chesterdias/appstore-playbooks/commits/58447f1a89353028be7305737dc8fa340e800669
          cdias1 Chester Dias (Inactive) made changes -
          Assignee Chester Dias [ cdias1 ]
          cdias1 Chester Dias (Inactive) made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          ann.loraine Ann Loraine made changes -
          Sprint Fall 6 Nov 30 - Dec 11 [ 109 ] Fall 6 Nov 30 - Dec 11, Fall 7 Dec 14 - Dec 23 [ 109, 110 ]
          ann.loraine Ann Loraine made changes -
          Rank Ranked higher
          ann.loraine Ann Loraine made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          ann.loraine Ann Loraine made changes -
          Assignee Ann Loraine [ aloraine ]
          ann.loraine Ann Loraine made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          ann.loraine Ann Loraine made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          ann.loraine Ann Loraine made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          ann.loraine Ann Loraine made changes -
          Resolution Done [ 10000 ]
          Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

            People

            • Assignee:
              ann.loraine Ann Loraine
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: