Working from wp-config-sample.php The wordpress/wp-config-sample.php will serve as the start of our wp-config.php that we’re copying in. From the root we’ll copy this config file into the wordpress directory that we’ll be zipping up. The following diff gives a short summary of the changes being made from the base sample: Enabling SSL Now that we’re…
Continue ReadingAuthor: Billy
Stub in commands.config
Overview With the salts out of the way, we’ll need to stub in the basic commands under the .ebextensions directory that help define the lifecycle of our Elasticbeanstalk application. In the interest of getting to our first testable source bundle, we’ll start by stubbing in commands.config under .ebextensions. So that, later, the configuration and lifecycle…
Continue ReadingWrite Out keys.config
Now that we have the salts, we’ll want to use them to establish the keys.config: And then in main:
Continue ReadingGet WordPress Salts
So for the salts, I started simple, with the underlying assumption that each deployment could be pre-salted by the source bundle, and reduce operational overhead. But upon reading a bit further saw that rotating the salts regularly is a good opportunity to invalidate sessions, and ensure that logins are having to regularly happen — so…
Continue ReadingEstablish the WordPress Directory Structure
And now that we’ve parameterized the arguments, we’ll want to focus on a repeatable process for building the Elastic Beanstalk source bundle. Establish the wordpress directory from the latest sources available: 💡 Reviewing the following was helpful while updating the code to Python 3: https://docs.python.org/3.8/library/zipfile.html.
Continue ReadingStart a New Project & Get the Command Line Interface Arguments
Start a new project in your IDE. Add a new build.py file. First thing we’ll need to be able to do is to be able to parse some args: Then call that:
Continue ReadingBuilding the Elasticbeanstalk Source Bundle
Time needed: 15-60 minutes per lecture (click next at your leisure). In this section we’ll expose php.ini configuration options as new environment variables passed in from Elastic Beanstalk, re-build the package, and then test a new deployment. You’ll need: Python 3. You’ll want: An IDE with support for Python and Bash. Directions: Following the steps…
Continue ReadingGit Summary of Each Commit Selected in IntelliJ
Using IntelliJ Version Control > Log > Copy Revision Number with the following command is incredibly helpful in sharing commit summaries: git show -s –format=%s sha1 sha2 sha3 …
Continue ReadingMac OS Import Keystore for Target Endpoint Under Test
So I like the following in obtaining browser client certs so that my test clients (i.e. io.restassured) can trust them: openssl s_client -connect www.website.com:443 -showcerts Then I can import the server cert for my integration tests into a new keystore: cd ~ /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/keytool -import -trustcacerts -keystore cacerts -noprompt -file ~/browser_cert.cer and then have my tests use…
Continue ReadingManually Entering in Host-only Networks to Bypass Mirantis OpenStack VirtualBox Script Errors
Create the following manually in VirtualBox > Preferences > Network > Host-only Networks. If the first host-only adapter fails to take the setting after clicking ok and returning to the dialog, try setting the last part of the IP to .2 instead of .1. This seems to be an issue on Windows hosts: http://bit.ly/1vqrEHC. vboxnet0…
Continue Reading