Results 1 to 5 of 5

Thread: Attempting to Encrypt database.yml

  1. #1

    Question Attempting to Encrypt database.yml

    For background: I have successfully installed the latest OBS appliance version(2.9.4).

    What I am currently trying to do is encrypt the ruby on rails secrets.yml file, as per the following link: https://www.engineyard.com/blog/encr...s-on-rails-5.1

    I can successfully run the first command (rails secrets:setup), but the following command (rails secrets:edit) throws the following error: "uninitialized constant Bullet (NameError)".

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    9,724
    Blog Entries
    1

    Default Re: Attempting to Encrypt database.yml

    You shouldn't just say that you've installed an appliance,
    You should provide a link to the appliance so that there is no question what you're working with.

    The reference you provided even suggests that the method you're trying to implement is being deprecated.
    This means you have to double-check your version of Rails, and know that if you get this working it'll not remain working for more than a short period of time unless you don't update your Rails.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Attempting to Encrypt database.yml

    Sorry, I should've thought about that. The appliance that I'm using is available at the following link: http://download.opensuse.org/reposit...ver.x86_64.iso

    I understand that the method has been deprecated in the newest version of rails, but I assumed that upgrading the appliance would cause the OBS web application to break. I should break the habit of assuming facts though, it always seems to bite me.

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    9,724
    Blog Entries
    1

    Default Re: Attempting to Encrypt database.yml

    Is there a description about this appliance?
    Noticed that you provided a link to the appliance's ISO, but typically people don't use the ISO, they download the virtual machine appropriate for their installed virtualization.
    Otherwise, if they are going to use an ISO, I don't know that there is any advantage over using the normal Install ISO.
    I didn't look in the ISO, but if you're running it like a LiveCD, that's your problem... By default, mounting a ISO is ReadOnly, so you can't modify or write files to the ISO file system.

    As for setting up Rails,
    I generally recommend that anyone who posts describes how they decided to install Ruby,
    There are many decisions to make which I outlined in a Wiki article I wrote awhile back...

    https://en.opensuse.org/User:Tsu2/Install_Ruby

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Attempting to Encrypt database.yml

    There is not an appliance description that I have been able to find. Oh, I didn't notice those already constructed virtual machine images. Maybe I should give them a try. I did install the iso, instead of attempting to run it like a virtual machine.

    The appliance that I've been using has ruby and rails preinstalled, which is part of my confusion in this situation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •