Posts

Docker Volumes Deep Dive

Different --mount Options This tutorial helps you to understand different mount options, storage drivers, volume drivers(plugins) and troubleshooting issues with Storage Driver(Overlay2). — Thiru Volumes are the preferred mechanism to persist container data. bind mounts are dependant on host machine directory structure but volumes are completely managed by docker. more on volumes…​ Tip You can use --mount or --volume to create volume , --mount is recommended for newer docker(>17.06). Different --mount Options The --mount option allows us to create different kinds of volumes, below is syntax to use --mount option. mount.sh docker run --mount type=<bind|volume|tmpfs>, source=<NameOfVolume/hostDirectory>, destination=<NameInsideContainer>, readOnly, volume-opt k=v, volume-opt k=v, <docker...

Protect Your REST APIs and PII with JWT

How it works Simple way to Protect your REST APIs and PII (Personally Identifiable Information) using JWT Tokens. How it works To protect your customer data (PII like card number) that is exchanged between two parties/channels JWT Token are helpful. HTTPS only provides network level security but data still visible to the uses who gains authorization to the system. plain-api.sh $/> curl https://yourdomain.com/customers [ { "id": 1, "name": "James", "social": "999-99-9999", "phonoe": "111-111-1111", } ] Mask Sensitive information of API response for data security. masking_senstive_info.sh $/> curl https://yourdomain.com/customers [ { "id": "Q-VQ7HafDZ8aD6J_UJD62G3iUMyZBSGguf3pSBnLCgQh7FhA==", "name": "James", "social": "####-##-9999", ...