Wednesday, November 18, 2026

I used Terraform to deploy a functional Wordpress site!

I've been tasked to learn how to manage our security tooling (at work) using Terraform. 

I'm in the process of completing a introductory course at Pluralsight, but the course is rather dry.  I'm maybe a 3rd of the way through the course and I was super aloof, so I decided to view some Youtube videos and work through a tutorial instead.

A few weeks ago, I'd used Terraform to deploy a small Docker container that had a running SSH server, but that was simple and I needed a bit more than that.

Now, I've been using Docker containers a couple of years now, at home in my home lab.  I started out with one dev container stack that resided on the LAN and once I was comfortable with Docker, I replaced my public Wordpress site (non-containerized) with a Docker instance.

Today, I wanted to see if I could transcribe my Docker compose file to Terraform code.  I did cheat - I used Siri AI to assist because I wanted to move quickly.  I didn't want this to take days.  It took me a couple of hours but I now have a working Docker stack that was deployed with Terraform!

And I initially didn't understand if the code would generate the containers but still leverage Docker to start the containers, or if Terraform did it all.  I soon found that when you run "terraform apply", it starts the containers (and restarts if the containers are already running).

I'm still wondering why I should use Terraform instead of Docker (I strictly use compose.yml files when using Docker).  Yes, I've to use Terraform at work but I don't find it much different than using Docker.  I'm not sure which is more efficient, code-wise.

I even got a taste of updating my main.tf to update Wordpress from 7.1.3 to 7.1.5 (update was released today).

I also created a new Git repo just for my new Terraform work space, pushing the Terraform code to the new Git repo.

This is all new to me.  I'm trying to make up for the last 5-6 years of being misused at work - I'm not where I need to be, professionally.  I've never had the time to learn to use Git or Docker or Terraform or Anisible.  Most of my experience before my current job was as a security analyst.  Analysts (where I've worked, at least) don't typically use those tools.

I've a bunch of other Docker stacks that I can rebuild using Terraform.  I'll slowly work my way through them all, using AI only when I get stuck (and when I've questions about new things).

I'm not gonna lie...while it was a tad bit frustrating, it was fun!    

Sunday, November 15, 2026

Siri AI Testing

I've been using Siri AI a few days, mainly to test it against other cloud-based LLMs such as Gemini and ChatGPT.  I'm curious as to how Siri AI compares to other LLMs.  

I'm a frequent user of AI, yes.  I know some folks hate AI in general, but it is NOT going away just because a group of folks don't like the idea of artificial intelligence shaping the world.  If you don't like it, that's fine, but let others do as they wish without ridicule or badgering.

With that being said, I'm currently using iOS version 27.2.1.

I use LLMs when asking questions about things I'm famiilar with, as I feel it's an adequate method of testing the validity of any answers that the LLM may provide.  When I do this, I'm usually doing it while having some experience with the subject-matter - that helps me to ensure I'm getting true answers.  In most cases, I know just enough about the subject that I can either immediately verify or eventually catch out the LLM (that has occurred more than a few times, actually).

In my tests with Siri AI, I used some of the same conversation starters that I did with other LLMs, although I also tried several new conversations too.

My findings are that, while Siri AI is a new implementation (it is NOT the old Siri), it is decently polished.  It is not off-loading to other non-Apple LLMs when it does what it does.  I've not seen all that many issues, but I'll list the few that I discovered.

The first issue:  I noticed that after holding several conversations with Siri AI, I couldn't see those conversations across my other Apple devices.  I thought that was weird, to the point that I filed a feature request with Apple to enable the synching of the Siri AI chats across an owner's devices.  I did that two days ago, but today I realized that I probably had to enable this in iCloud.  

I checked my iCloud settings and saw that the sharing of Siri AI conversations wasn't enabled.  I enabled it and immediately noticed that I could see all of my conversations with Siri AI across my devices.  I might send another feature request to Apple asking that they prompt for enabling conversation sharing when enabling Siri AI.

The second issue:  With some conversations, I want to copy/paste large portions (or all of it) to other applications.  The Siri AI conversation window doesn't allow the user to copy all of the chat.  You can only copy one portion at a time.  I filed a feature request for allowance to copy all of the chat instead of copying piece by piece.

The third issue was (foreshadowing) that I also sometimes want to share the conversations to other apps (such as Notes and Mail), but when I tried, I was only able to see my side of the conversations - Siri AI's portion of the chat was never transcribed.  Now, that was occurring within several hours of enabling Siri AI.  

I checked again a day later and saw that I could then see both sides of the chat when sharing the conversations.  I'm not sure, but maybe the Siri AI conversations had to be indexed...I didn't make any changes, but it just started working after a day of waiting.

I'm actually having fun testing Siri AI.

No, not all of it is perfect (I shared the issues I had with it), but I've no doubt that it'll be a great LLM.

Tuesday, November 10, 2026

Standby Stopped Working - iPhone 17 Pro Max

I've found myself dependent upon Standby.  I'm basically using my iPhone Pro Max as an alarm clock display when sleeping.  Previous to using Standby, I was using the Fliqlo app for the same purpose.

I've also recently been using iOS 27.

Shortly after using iOS 27, I noticed that Standby functionally started intermittently breaking.

Others have noticed this issue, as well - this is one of several posts.

What's funny is that there's always one or two folks that say, "it's working for me".  What does that have to do with the price of tea in China?  Or is that an attempt at invalidating a complaint?

I'll describe the issue.

Usually I place my phone on my magnetic charger, placing the phone on it's side while the phone is locked, which initiates Standby.  I then go to sleep - Standby has been initiated at that time.  I sometimes wake up to glance at the time and notice that the phone's display is off - Standby is no longer running.  The screen is always deactivated.

When I notice this, I sometimes reach over and tap the phone, and that sometimes gets Standby to initiate again (waking up to this issue is irritating).  Sometimes, this happens multiple times a night.

I'm currently running iOS 27.2.1 (I installed 27.2.1 last night).

Today, I woke up and Standby wasn't running.  I reached over to tap the phone...nothing.  I tapped it several times - still no Standby.  As it was already 8 AM, I decided to get out of bed and commenced to troubleshooting the issue.

I checked the Standby settings.  Every setting indicated that Standby should've been running (I'd made no changes to the Standby settings in over a year).  At no point could I get Standby to work again.  This was odd AF.

I then saw some folks saying that they changed to a different charging cable.  I tried a different cable and tried again.  Standby started working!

What the hell.

Why would a cable be OK one day and then not OK the next?  Note that the cable charges the phone just fine - it's not broken at all.  I'm unsure if the power adapter is wonky, but again, the phone and watch charge without issue.  The adapter generates enough power to charge both the iPhone and Apple Watch without issue.

Note that there are a lot of complaints about this, as well, so it's not just me misdiagnosing things.  Some folks think that this is related to iOS 27 bugs.  I'm not yet sure if that's true, but I'll continue to investigate.

UPDATE (11/11/2026):  I checked the phone several times during the night and morning - it did not hiccup.  When I got out of bed and turned on the lights, Standby was still functioning.  I even reinstalled the power adapter.  So, the only thing that I changed out was the power cable (and the previous cable was functional).  Super odd.

UPDATE (11/12/2026):  I thought things were fixed, but last night I found that Standby was not enabled twice in the early morning (around 2 and 4 am).  I think I may just go back to using Fliqlo.  At this point Fliqlo is probably the more stable of the two.  I'm wondering if this could be my Apple watch.  Or, maybe it's the Magsafe connector.  I'll try powering by cable only, just for the phone, for the next few nights, as a test.

UPDATE (11/15/2026):  So, we've some success.  I've been powering the phone via direct cable connection.  I still mount the phone to the stand via Magsafe but I'm assuming that the power cable connection charging is prioritized.  There have been no interruptions of Standby the past three days.  Using a dedicated cable while this phone sits on the dock's Magsafe is a bit ridiculous, but at least I have Standby working again.

Friday, October 30, 2026

Git and .gitignore

I posted a few days ago that I'd deployed Gitea (a git server).

I basically pushed my /opt/stacks directory to Gitea.

Well, I'm now finding that I pushed non-IaC files to my repos, and I'm only supposed to push IaC files (e.g., compose.yml files or any config files that I normally create/manipulate).  I discovered that many files were either plugins or gz files, for example...neither of those are IaC filetypes.  

Additionally, I realized that I should not push .env files (or any files that contain secrets/passwords) to Git.

I was not aware that I could filter out files/directories, nor was I aware of .gitignore until I researched how to exclude files.  

I also created .gitignore files within each stack, which, later on, I found wasn't optimal.  Instead of having a separate ignore file for each stack (e.g., /opt/stacks/wordpress and /opt/stacks/dockge), the more efficient method would be to place the ignore file at /opt/stacks, so I ended up redoing all of my repos.

A .gitignore file is just a hidden file to exclude files from being pushed to Gitea (or whatever Git solution you're using).

For example, my .gitignore contents on my hosted public server is:

# --- General Backups, Archives & Logs ---
*.tar.gz
*.gz
*.zip
*.bak
*.bak.*
*.old
*.10*
*.log
# --- App Data & Databases ---
**/data/
**/portainer-data/
pihole/etc-pihole/
pihole-old/etc-pihole/
# --- WordPress Core, Backups & Bloat ---
wordpress/wp-admin/
wordpress/wp-includes/
wordpress/*.php
!wordpress/wp-config-sample.php
!wordpress/.htaccess
!wordpress/index.php
wordpress/*.txt
wordpress/*.html
# --- WordPress Content / Plugins / Backups / Logs ---
wordpress/wp-content/uploads/
wordpress/wp-content/cache/
wordpress/wp-content/upgrade/
wordpress/wp-content/plugins/
wordpress/wp-content/themes/
wordpress/wp-content/bps-backup/
wordpress/wp-content/updraft/
wordpress/wp-content/wflogs/
wordpress/wp-content/wpo-cache/
# --- System & Temp Files ---
.DS_Store
.env

As I learn Git, I find that it can be very satisfying to track/truth my IaC files.

I've not yet used Git at work, although I've an account - I typically do not use IaC content for the work I'm currently doing, but I'm sure I'll eventually use IaC content to streamline my work.  The main concern for me is to learn best practices for IaC and Git.  I'm just hoping I'm not teaching myself bad habits now, to have to correct myself later on - definitely don't want mistakes to happen at work, either, which is why I'm practicing at home.

UPDATE (10/31/2026):  A day after I posted this, I see a Reddit post with good info on .gitignore best practices (in the comment thread, not the original post).  Here it is.

Wednesday, October 21, 2026

If Your're Using PHP On An Exposed Host, Beware!

If you're running Wordpress or ANYTHING that uses PHP, there are two critical vulnerabilities with exploits in the wild right now.

You should ensure that you're not using anything outside of what's recommended in the PHP advisory I mentioned above.  New (fixed) versions of PHP were released today, so those can be applied as fixes.

In my case, I'm running a containerized Wordpress.  I waited all day for the Docker images to be released that fixes the issues.  I'm using Alpine images and thought that I could just install Alpine PHP packages, but the Docker images were available before the new Alpine PHP packages were released.  My site is repaired of those two particular vulnerabilities.

We'll see how many websites get compromised over the next few months because folks ignored the warnings.

Thursday, October 15, 2026

I've Backed Up My OneNote Notes to Markdown!

I wanted to try to back up my OneNote notebooks, as I've been using it a long while now.  Even though I'm using it with Microsoft's OneDrive (cloud-based), I feel that it's always good to have backups.

The plan was to back up the files to Markdown format and then store them in my private Gitea (Git) server.

It took a bit to understand what I needed to do.

I used Obsidian to synch up with OneNote to import the notebooks and then convert them to Markdown format.  There were close to 400 pages between 4 notebooks.  It took a few minutes for Obsidian to do it's thing but it ALMOST finished.  OneNote started rate-limiting Obsidian at the 90% completion mark.  I stopped the import process and waited 15 minutes before trying again.  

There's a feature that you can enable that skips files that have already been processed, so it basically started at the 90% mark and fininshed.  This means that I can continue to document in OneNote and periodically back up the files, where only the new notes and images are backed up.  Obsidian is pretty nice - it has allowances for a bunch of other file types and can import/backup other software files, as well.

Monday, October 12, 2026

I Now Have A Functional (and Private) Git Server

I've been struggling with wrapping my head around Git the past 4-5 years.  It sounds silly, yeah, but I'm old school.  

I started my first position in the IT Security field in 2003.  There was no such thing as Infrastructure as Code (IaC).  The first time I remember hearing of IaC was in 2017.  Note that I didn't enter the sub-field of security engineering in a dedicated fashion up until 2017.  In my prior positions, I didn't need to be familiar with such information.

I didn't even start being involved with Docker up until 5 years ago.  I was initially pushed to it by work - my supervisor wanted each team to be familiar with it, so I tool an ACloudGuru course.  I didn't use it at work after finishing the course (and the course didn't cover Git), either, but I got some ideas on how to use it at home (in the home lab).  

I wanted to use Docker containers to replace a lot of my old computers within my lab, but actually ended up using it to install Wordpress on a Docker instance, hoping to replace my Wodrpress website with a dockerized instance.  I intially set up Wordpress on my LAN as a container stack.  When I saw how easy it was to set up, and after I tested and ran it maybe 6 months on my LAN, I replaced the server instance with a docker instance on the hosted server (Linode).  It was super easy and I think it runs more efficiently.  I just restored a good known backup onto the Dockerized Wordpress.

At this point, I've tested several containerized Wordpress setups, seeking greater efficiency, so there were tons of compose files that I wasn't tracking because I kept avoiding Git (and couldn't even understand it).

Only tonight, after speaking with a coworker about it, after gaining understanding of it when researching it (and Terraform usage), and after asking Gemini AI questions, I was able to give it a shot.

For Git, I'm using a Gitea as a container.  I used Gemini to ask questions on how to set up a private Git that I could keep track of all my code (across 3 different Docker host systems, on the LAN and from a public server, as well).

For each Docker host, I've created a repo to track that host's Docker code.  It took a long while to understand that I had to push the IaC files to the Gitea server.  I initially didn't even have an idea of how to map out the repos.  I was a total mess.

Now that I've the repos set up, I do not want to have to set it all up again, but if I had to, it would probably go a lot quicker in setting things up.  I'd love to be able to back up the repos to my NAS (if that's even possible).

The next steps will be to pull repo files, edit them, and merge them, or to use it to create new repos (with new files, instead of just pushing large batches of old code to a GIT UI).