Category: Coding
[Golang] Writing a metrics exporter through Golang and Prometheus
Ờ bài này mình muốn tìn hiểu làm sao có thể view page để expose các metrics theo ý mình và sử dụng cho prometheus Sau đây mình sẽ thực hiện write theo video. 1) Using Demo of Prometheus Client. Đầu tiên chúng ta sẽ expose default golang metrics. file: main.go Bạn start chúng lên….
Read More “[Golang] Writing a metrics exporter through Golang and Prometheus” »
[DevSecOps] Dependency Check Basics and Vulnerabilities
NVD: National Vulnerability Database Imagine NVD as the ultimate library of computer vulnerabilities. It’s like Wikipedia, but for all the bad stuff that can happen to your computer. If a hacker finds a way to mess with a system, the NVD is where you’ll find all the deets. CVE: Common Vulnerabilities and Exposures CVE is…
Read More “[DevSecOps] Dependency Check Basics and Vulnerabilities” »
[RabbitMQ/AWS] Install RabbitMQ on AWS based on Amazon MQ.
Refer tohttps://github.com/dasmeta/terraform-aws-rabbitmqhttps://github.com/vainkop/terraform-aws-rabbitmq 1) Create VPC Đầu tiên chúng ta cần tạo vpc: Ở đây mình sử dụng vpc module để create 1 public subnet và 1 private subnet 2) RabbitMQ on AWS Tạo rabbitmq Bạn sẽ cần tạo rabbitmq thông qua Resource: aws_mq_brokerhttps://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/mq_broker Và bạn có thể tạo security Group thông qua module:https://registry.terraform.io/modules/terraform-aws-modules/security-group/aws/latest Và sau…
Read More “[RabbitMQ/AWS] Install RabbitMQ on AWS based on Amazon MQ.” »
[VScode] Details: libsecret-1.so.0: cannot open shared object file: No such file or director
Mình gặp lỗi: Lỗi này xảy ra khi bạn sử dụng Visual Studio Code Remote – SSH hoặc Visual Studio Code Remote – Containers để kết nối đến một hệ thống từ xa hoặc một container và không thể truy cập kho lưu trữ mật khẩu (credential store) của hệ điều hành. Để giải quyết…
[Terraform] DRY in Terraform Configurations With Dynamic Blocks
Refer to: https://spacelift.io/blog/terraform-dynamic-blocks The Don’t Repeat Yourself (DRY) principle of software development states that code should be written once and not repeated. An important goal of the DRY principle is to improve the maintainability of code. See how you can keep your configuration DRY with Terragrunt on Spacelift. Some Terraform resources include repeatable nested blocks in their arguments….
Read More “[Terraform] DRY in Terraform Configurations With Dynamic Blocks” »
[AWS] If Ec2 connects to S3, Will it go through the internet or the internal network of AWS?
ChatGPT: When an Amazon EC2 instance needs to access Amazon S3, the traffic will typically stay within the internal AWS network rather than going out to the public internet. This is because Amazon S3 and Amazon EC2 are both services provided by AWS, and AWS provides private connectivity between these services through its Virtual Private…
[VScode] the exciting thing about VScode
sticky scroll tool này rất có ích khi bạn làm việc với các file yaml GitLens — Git supercharged Plugin này dùng để thấy dòng code này là của ai commit.
Experiences for IP Addresses Shortage on EKS Clusters
Link: https://medium.com/compass-true-north/experiences-for-ip-addresses-shortage-on-eks-clusters-a740f56ac2f5 In a fast-growing company, like Compass, things may become challenging for Cloud infrastructure teams. As serving more and more customers, many backend services scaled up in our Kubernetes clusters. Meanwhile, a variety of new backend services went online to satisfy new requirements. Recently, a big challenge for our Cloud Engineering team in Compass…
Read More “Experiences for IP Addresses Shortage on EKS Clusters” »
[Talisman/DevSecOps] Discover the sensitive information in your code.
Chúng ta có 1 bài post.https://www.theregister.com/2015/01/06/dev_blunder_shows_github_crawling_with_keyslurping_bots/ Git Hooks and Talisman Introduction HandsOn – Talisman thực hiện kiểm tra hook trong code dưới laptop. Thực hiện cài đặt Talisman trên máy của bạn Bạn thấy pre-push sẽ được thê trong hook của git Bạn có thể setup scankhi commit. Khi bạn thúc hiện commit thì talisman…
Read More “[Talisman/DevSecOps] Discover the sensitive information in your code.” »