Mitigating Prompt Injections with Azure AI Prompt Shields and Terraform Deployment

High-level diagram showing how to mitigate Prompt Injection with Azure Prompt Shield

Using Open AI, you have probably came across prompt injections – Azure recently released a new service called AI Prompt Shields. In this blog post we will look at how you can deploy Azure AI Prompt Shield to mitigate against prompt injections – this will be deployed using Terraform with an example of mitigating. What … Read more

Boost GitHub Actions Efficiency with Path Filters: Only run when specific files or paths are updated

Within your GitHub Actions, you may be running a lot of workflows continuously during a merge to the main branch – a way to mitigate the possibility of them always running is to implement path filters. What are path filters? Path filters in GitHub Actions allow you specify when the workflow/action runs essentially, it helps … Read more

Deploying MkDocs to GitHub Pages with GitHub Actions

Screenshot showing an example of MkDocs

In this blog post, I will show how you can deploy your MkDocs to GitHub Pages with GitHub Actions. What is MKDocs? MKDocs is a great little tool for creating a static site, used commonly to store repository documentation, drawings, some examples etc! MkDocs is a fast, simple and downright gorgeous static site generator that’s geared towards building project documentation. … Read more

Using Terraform tfvars for environment-agnostic deployments

Screenshot of Visual Studio Code displaying the folder structure for a Terraform project. The folder tree includes directories for different environments such as 'production' and 'staging', and files like 'main.tf', 'variables.tf', and environment-specific '.tfvars' files. Each environment folder contains its own '.tfvars' file to manage configuration variables, illustrating how Terraform configurations are organised and separated by environment

In this blog post we will look at how you would use tfvars to deploy to multiple environments in Azure. Deploying Infrastructure as Code (IaC) to multiple environments, we want to keep scalability in mind along with the thought of removing duplication when possible. Managing infrastructure configurations across different environments can be challenging, this is … Read more

Update GitHub Pull Request Body using GitHub Actions

Screenshot of GitHub Actions output displaying a workflow that updates the body of a pull request. The console log shows steps including checking out the repository, executing a script or action to modify the pull request body, and a confirmation message indicating that the pull request description was successfully updated as part of the automated workflow.

Recently I have been automating GitHub Pull Request Body with various updates/outputs from GitHub Actions, I wanted to create a quick blog post on a couple of ways to do this that will hopefully assist you. If you’re like me, you’ve probably found yourself in situations where you need to update the body of a … Read more

Deploying a content filtering configuration in Azure OpenAI studio using Terraform and AzAPI

Screenshot of Azure AI Studio showing the creation of a content filter. The interface displays a section where the new content filter is listed, with details such as its name and configuration settings. The filter appears in the list of filters, indicating that it has been successfully created and is now available for use in deployments

In this blog post, I’ll show you on how to set up a content filtering configuration in Azure OpenAI Studio and apply it to your OpenAI deployment entirely using Terraform. Since there isn’t a native Terraform resource available for content filtering configurations, I will be using azapi_resource to assist with this. The content filtering system … Read more

Scaling Terraform Deployments with GitHub Actions: Essential Configurations

DevOps logo for the 90 Days of DevOps challenge, displaying the submission details for day 78 in 2024. The image features the DevOps logo alongside text indicating the submission topic: 'Scaling Terraform Deployments with GitHub Actions.' The visual represents progress in the DevOps learning challenge.

Scaling Terraform Deployments with GitHub Actions: Essential Configurations, is part of the 90 Days of DevOps event that Michael Cade has been running, certainly check out the event for lots more awesome DevOps related contributions here What have I covered in this session? My session is a presentation & demo – that covers essential configurations … Read more

Ensuring Your Terraform is Correctly Formatted with Terraform fmt using GitHub Actions

Screenshot of a GitHub Actions workflow log showing the execution of the terraform fmt command. Showing how Terraform code is being automatically formatted, with specific lines indicating changes made to the code to adhere to formatting standards.

As with all pull requests, we want to run various CI checks to ensure validation of your code and one of these is code quality, writing Terraform? Unsure if the Terraform in the pull-request is formatted correctly? This is where GitHub Actions come in handy. In this post, we’ll explore how to ensure your Terraform code … Read more

Enforcing Kubernetes best practices and simplifying Kubernetes Configuration Validation with Kube-Linter and GitHub Actions

creenshot showing the output of Kube-linter within GitHub Code Scanning, displaying 7 issues identified by Kube-linter. The image highlights the list of opened issues, each detailing specific problems detected in the Kubernetes configurations, providing a clear overview of areas needing attention

Kubernetes is ever growing and certainly a standard for container orchestration, however with it being picked up more and more by development teams, we want to ensure best practices and correctness of Kubernetes configuration files are valid. This can be tough and challenging to manage, let’s look at a tool that can assist you in … Read more

GitHub Action error Resource not accessible by integration when attempting to upload SARIF report files to GitHub

Screenshot showing the workflow permissions settings in GitHub Actions, with a highlight on the need to enable both read and write permissions. The image focuses on the configuration options for granting these permissions, indicating their necessity for proper workflow execution and functionality.

Just a very quick blog post to show a potential fix for GitHub Action error Resource not accessible by integration when attempting to upload SARIF report files to GitHub, I came across this when attempting to use GitHub action github/codeql-action/upload-sarif@v3 GitHub Action usage Was trying to upload a SARIF report from kube-linter with the simple … Read more