17 Sep 2021
| #tech
I’m creating a new kubernetes_secret
via Terraform for an existing service account like this:
resource "kubernetes_secret" "my_service_account_token" {
metadata {
name = "my-service-account-token"
namespace = "example"
annotations = {
"kubernetes.io/service-account.name" = "my-service-account"
}
}
type = "kubernetes.io/service-account-token"
}
so that then I can use this token elsewhere like: kubernetes_secret.my_service_account_token.data["token"]
.
Read more
21 Aug 2021
| #tech
I recently worked on setting up Azure Active Directory (AAD from now) authentication with kubernetes clusters running on AWS EKS (Amazon Elastic Kubernetes Service). The goal was to let users of the kubernetes cluster authenticate using their AAD identities, and assing permissions using the usernames and also AAD groups. Here is how I did it.
Read more
19 Aug 2021
| #tech
We often want to download the latest release of an application from Github, however it used to be hard without knowing the latest version. But now we can do the followings:
09 Aug 2021
| #tech
This blog is hosted on Github pages, which I end up liking a lot, so I decided to move my other blog (originally hosted on Wordpress) too. I was already planning to update the domain of that blog, so I took the opportunity to do both at the same time. Here are the steps I did.
Read more
05 Jul 2021
| #security
Recently I was involved in a project where KeyCloak was used as an identity proxy: the target app was configured to use KeyCloak as an SSO, but KeyCloak delegated the authentication further to an other IdP. So on login to the target app, the app would redirect the user to KeyCloak, which would further redirect to the IdP’s login page. Upon authenticating there, the IdP redirected back to KeyCloak, which redirected to the target app. This double-redirect flow happened very fast so it was mostly transparent to the user.
My task was to review the security of this setup and I managed to find a few interesting bugs.
Read more