piotrekkr.hashnode.devUsing GCP Secret Manager With Container-Optimized OS VMsUsing Google Cloud Platform Secret Manager service is a convenient way to store and manage secrets. It has many features like automatic rotation, audit logging, access control and many others. It is integrated with GCP services like Cloud Functions, ...Nov 10, 2024·11 min read
piotrekkr.hashnode.devFetch "directories" only from GCS with PHPMy recent task was to search in bucket for objects located in selected "directories" using PHP. Directory list inside bucket is not constant. New directories can be added every few months. Search should fetch all "main directories" that match some pa...Oct 7, 2024·3 min read
piotrekkr.hashnode.devUsing GitHub secrets may break job outputsIf you don't want to spend hours debugging GitHub CI jobs, avoid using job outputs that may contain secrets inside. Job outputs will not be passed to dependent jobs if they contain secrets in any part of output value. There is a tiny note about this ...Aug 18, 2024·2 min read
piotrekkr.hashnode.devHow to get multi-architecture manifest SHA256 for a Docker image?Sometimes you have to deal with multiple CPU architectures within your team. For example you have devs using macOS (arm64) and Linux (amd64). This may create some issues when you want to use base image with specific SHA256 inside your app Dockerfile....Jul 22, 2024·3 min read
piotrekkr.hashnode.devCloud-init works differently with COS images in GCPIntroduction When working with VMs you may come across cloud-init tool that could be used to provision your instances. It is a well documented tool and is widely used by cloud providers. You may be quite surprised though that there can be some situat...Apr 6, 2024·2 min read