Release Go App

I’m using goreleaser to create binaries for different OS and create release in GitLab. Gorelease will compile the code and based on the config file in your repo create required binaries for different OS and architectures. It will create dist/ dir in your repo, create .gitignore to avoid pushing dist/ into GitLab and calculate checksums for packages. Text file with checksums will be also deployed to GitLab Release page. You need to create Access Token with api access in GitLab and export GITLAB_TOKEN environment variable before you run goreleaser. ...

August 27, 2025

Go Grafana Api

This is small tool to help you interact with Grafana API. It could be used to create new Organization, add new user and provision basic datasources from templates, ie. Prometheus, Loki, Tempo. You can test it using small demo code but you need to have your grafana instance running and available in some URL. You also need to have local Grafana user/pass with admin privileges. export DEV_GRAFANA_URL=your-url export DEV_GRAFANA_USER=your-user export DEV_GRAFANA_PASS='your-pass-with-special-chars' Grafana Struct Keeps basic data about target Grafana like url, username, password and base64 encoded user:pass needed for Basic Authentication. This will be added into Authorization Header. ...

August 17, 2025

NodeJS, Express and Passport using LocalStrategy (Username/Password)

Intro Besides industry stundards using oauth2 Google or Github for authentication of users, you may need to have simple user/pass based authentication. This may be implemented in many different ways, ie using Basic Authentication on the Web Server side. If you would like to implement it using Passport on your backend, here are few point to consider: use HTTPS end to end, keep users and passwords in secure place, use crypto lib. ...

July 27, 2025