Dominique Dumont: Security gotcha with log collection on Azure Kubernetes cluster.
Azure Kubernetes Service provides a nice way to set up Kubernetes
cluster in the cloud. It s quite practical as AKS is setup by default
with a rich monitoring and reporting environment. By default, all
container logs are collected, CPU and disk data are gathered.
I used AKS to setup a cluster for my first client as a
freelance. Everything was nice until my client asked me why logs
collection was as expensive as the computer resources.
Ouch
My first reflex was to reduce the amount of logs produced by all our
containers, i.e. start logging at
to a be a common issue. Thanks to the documentation provided by Microsoft, I was able to find
that
of our logging costs. What is
of all environment variables from all containers. Wait What ?
Should we be worried about our database credentials which are, legacy
oblige, stored in environment variables ? Unfortunately, the query shown below confirmed that, yes, we should:
the logs aggregated by Azure contains the database credentials of my
client.
point of view.
And we don t need it because our environment variables do not change.
Well, it s now time to fix these issues.
We re going to:
the default configuration which may contain surprises. I m a freelance, available for hire. The https://code-straight.fr site
describes how I can help your projects. All the best
cluster in the cloud. It s quite practical as AKS is setup by default
with a rich monitoring and reporting environment. By default, all
container logs are collected, CPU and disk data are gathered.
I used AKS to setup a cluster for my first client as afreelance. Everything was nice until my client asked me why logs
collection was as expensive as the computer resources.
Ouch
My first reflex was to reduce the amount of logs produced by all ourcontainers, i.e. start logging at
warn level instead of info
level. This reduced the amount of logs quite a lot.
But this did not reduce the cost of collecting logs, which looks liketo a be a common issue. Thanks to the documentation provided by Microsoft, I was able to find
that
ContainerInventory data table was responsible of more than 60%of our logging costs. What is
ContainerInventory ? It s a facility to monitor the contentof all environment variables from all containers. Wait What ?
Should we be worried about our database credentials which are, legacyoblige, stored in environment variables ? Unfortunately, the query shown below confirmed that, yes, we should:
the logs aggregated by Azure contains the database credentials of my
client.
ContainerInventory where TimeGenerated > ago(1h)Having credentials collected in logs is lackluster from a security
point of view.
And we don t need it because our environment variables do not change.
Well, it s now time to fix these issues.
We re going to:
- disable the collection of environment variables in Azure, which
will reduce cost and plug the potential credential leak - renew all DB credentials, because the previous credentials can be
considered as compromised (The renewal of our DB passwords is quite
easy with the script I provided to my client) - pass credentials with files instead of environment variables.
the default configuration which may contain surprises. I m a freelance, available for hire. The https://code-straight.fr site
describes how I can help your projects. All the best
Sorry for not being on blog for sometime, the last few months have been brutal. While I am externally ok, because of the lockdown I sensed major hearing loss. First, I thought it may be a hallucination or something but as it persisted for days, I got myself checked and found out that I got 80% hearing loss in my right ear. How and why I don t know. Is this
Example of Medical Bills people have to pay.
India-China Border Areas Copyright DW.com 2020
By now everyone must have seen the versions of comedy shows with the laugh track edited out. The removal of the laughter doesn't just reveal the artificial nature of television and how it conscripts the viewer into laughing along; by subverting key conversational conventions, it reveals some of the myriad and subtle ways humans communicate with one another:




Hello,
Recently I ve seen lot of people sharing about their home office
setup. I thought why don t I do something similar. Not to beat

My laptop battery started to explode in slow motion. HP requires 10 business
days to repair my laptop under warranty, and I cannot afford that length of
downtime.
Alternatively, HP quoted me 375 + VAT for on-site repairs, which I tought was
very funny.
For 376.55 + VAT, which is pretty much exactly the same amount, I bought
instead a refurbished ThinkPad X240 with a dual-core I5, 8G of RAM, 250G SSD,
and a 1920x1080 IPS display, to use as a spare while my laptop is being
repaired. I'd like to thank HP for giving me the opportunity to own a ThinkPad.
Since I'm migrating all my system to the spare and then (hopefully) back, I'm
documenting what I need to be fully productive on new hardware.
Install Debian
A basic Debian netinst with no tasks selected is good enough to get going.
Note that if wifi worked in Debian Installer, it doesn't mean that it will work
in the minimal system it installed.
Great news, great news!
With lots of help (say, all of the heavy lifting) from the
Right on the heels of the news of 








