# ความปลอดภัยของ CI/CD Pipeline (DevOps) > การยืนยันตัวตน OIDC, การจัดการ secrets, SLSA provenance, สิทธิ์ขั้นต่ำ, ความปลอดภัยของ supply chain - 20 คำถามสัมภาษณ์ - Mid-Level - [คำถามสัมภาษณ์: DevOps](https://sharpskill.dev/th/technologies/devops/interview-questions.md) ## 1. OIDC (OpenID Connect) คืออะไรในบริบทของ CI/CD pipeline? **คำตอบ** OIDC คือโปรโตคอลการยืนยันตัวตนที่อนุญาตให้ CI/CD pipeline ยืนยันตัวตนกับผู้ให้บริการคลาวด์โดยไม่ต้องใช้ secret แบบคงที่ แทนที่จะเก็บ credential อายุยาว pipeline จะแลก JWT token ที่ลงนามแล้วเป็น credential ชั่วคราว แนวทางนี้ขจัดความเสี่ยงเกี่ยวกับการจัดเก็บและหมุนเวียน secret พร้อมทั้งให้การติดตามที่ดีขึ้นผ่าน claim ของ token ที่ระบุ workflow และ repository ได้อย่างแม่นยำ ## 2. ข้อได้เปรียบหลักของ External Secrets Operator ใน Kubernetes คืออะไร? **คำตอบ** External Secrets Operator จะซิงค์ secret จากตัวจัดการภายนอก (Vault, AWS Secrets Manager, Azure Key Vault) ไปยัง Secrets ของ Kubernetes โดยอัตโนมัติ แนวทางนี้รวมศูนย์การจัดการ secret ในระบบเฉพาะในขณะที่ยังให้แอปพลิเคชันใช้งาน secret ในรูปแบบมาตรฐาน ยังช่วยให้สามารถหมุนเวียน secret อัตโนมัติและหลีกเลี่ยงการเก็บ credential ที่ละเอียดอ่อนไว้โดยตรงในไฟล์ manifest Kubernetes หรือ Git repository ## 3. หลักการ least privilege หมายถึงอะไรในบริบทของ CI/CD pipeline? **คำตอบ** หลักการ least privilege คือการให้สิทธิ์เฉพาะที่จำเป็นอย่างเคร่งครัดสำหรับ pipeline ในการทำงานเท่านั้น เช่น pipeline build ควรมีสิทธิ์อ่านอย่างเดียวกับซอร์สโค้ด ในขณะที่ pipeline deployment จะเข้าถึงเฉพาะทรัพยากรในสภาพแวดล้อมเป้าหมาย แนวทางนี้จำกัดความเสียหายเมื่อ pipeline ถูกบุกรุกและลดพื้นที่การโจมตีโดยรวมของโครงสร้างพื้นฐาน ## มีอีก 17 คำถาม - SBOM (Software Bill of Materials) คืออะไร? - ทำไมต้องใช้ HashiCorp Vault แทนตัวแปรสภาพแวดล้อมในการจัดเก็บ secret? สมัครฟรี: https://sharpskill.dev/th/login ## หัวข้อสัมภาษณ์ DevOps อื่นๆ - [การควบคุมเวอร์ชัน & Git](https://sharpskill.dev/th/technologies/devops/interview-questions/version-control-git.md): 20 คำถาม, Junior - [พื้นฐาน Linux](https://sharpskill.dev/th/technologies/devops/interview-questions/linux-fundamentals.md): 22 คำถาม, Junior - [Shell Scripting & Bash](https://sharpskill.dev/th/technologies/devops/interview-questions/shell-scripting-bash.md): 20 คำถาม, Mid-Level - [พื้นฐาน Networking](https://sharpskill.dev/th/technologies/devops/interview-questions/networking-basics.md): 22 คำถาม, Junior - [พื้นฐาน Docker](https://sharpskill.dev/th/technologies/devops/interview-questions/docker-fundamentals.md): 24 คำถาม, Junior - [พื้นฐาน CI/CD](https://sharpskill.dev/th/technologies/devops/interview-questions/ci-cd-fundamentals.md): 18 คำถาม, Junior - [GitHub Actions](https://sharpskill.dev/th/technologies/devops/interview-questions/github-actions.md): 22 คำถาม, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/th/technologies/devops/interview-questions/gitlab-ci.md): 22 คำถาม, Mid-Level - [Jenkins](https://sharpskill.dev/th/technologies/devops/interview-questions/jenkins.md): 22 คำถาม, Mid-Level - [พื้นฐาน Kubernetes](https://sharpskill.dev/th/technologies/devops/interview-questions/kubernetes-basics.md): 26 คำถาม, Mid-Level - [Networking ของ Kubernetes](https://sharpskill.dev/th/technologies/devops/interview-questions/kubernetes-networking.md): 24 คำถาม, Mid-Level - [Kubernetes ขั้นสูง](https://sharpskill.dev/th/technologies/devops/interview-questions/kubernetes-advanced.md): 24 คำถาม, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/th/technologies/devops/interview-questions/ingress-api-gateway.md): 20 คำถาม, Mid-Level - [พื้นฐาน Terraform](https://sharpskill.dev/th/technologies/devops/interview-questions/terraform-basics.md): 22 คำถาม, Mid-Level - [Terraform ขั้นสูง](https://sharpskill.dev/th/technologies/devops/interview-questions/terraform-advanced.md): 22 คำถาม, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/th/technologies/devops/interview-questions/ansible-configuration.md): 20 คำถาม, Mid-Level - [พื้นฐาน AWS](https://sharpskill.dev/th/technologies/devops/interview-questions/aws-essentials.md): 26 คำถาม, Mid-Level - [พื้นฐาน Azure](https://sharpskill.dev/th/technologies/devops/interview-questions/azure-fundamentals.md): 22 คำถาม, Mid-Level - [พื้นฐาน GCP](https://sharpskill.dev/th/technologies/devops/interview-questions/gcp-fundamentals.md): 22 คำถาม, Mid-Level - [การมอนิเตอร์และ Prometheus](https://sharpskill.dev/th/technologies/devops/interview-questions/monitoring-prometheus.md): 22 คำถาม, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/th/technologies/devops/interview-questions/logging-elk.md): 20 คำถาม, Mid-Level - [Alerting & Incident Response](https://sharpskill.dev/th/technologies/devops/interview-questions/alerting-incident-response.md): 20 คำถาม, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/th/technologies/devops/interview-questions/cloud-identity-secrets.md): 22 คำถาม, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/th/technologies/devops/interview-questions/helm-kubernetes.md): 20 คำถาม, Mid-Level - [ความปลอดภัย Runtime และ Cluster](https://sharpskill.dev/th/technologies/devops/interview-questions/runtime-cluster-security.md): 24 คำถาม, Senior - [Container Supply Chain Security](https://sharpskill.dev/th/technologies/devops/interview-questions/container-supply-chain.md): 22 คำถาม, Senior - [Service Mesh & Istio](https://sharpskill.dev/th/technologies/devops/interview-questions/service-mesh-istio.md): 24 คำถาม, Senior - [GitOps & ArgoCD](https://sharpskill.dev/th/technologies/devops/interview-questions/gitops-argocd.md): 22 คำถาม, Senior - [Progressive Delivery](https://sharpskill.dev/th/technologies/devops/interview-questions/progressive-delivery.md): 20 คำถาม, Senior - [Observability แบบกระจาย](https://sharpskill.dev/th/technologies/devops/interview-questions/observability-distributed.md): 22 คำถาม, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/th/technologies/devops/interview-questions/disaster-recovery.md): 20 คำถาม, Senior - [การปรับแต่งประสิทธิภาพ](https://sharpskill.dev/th/technologies/devops/interview-questions/performance-optimization.md): 22 คำถาม, Senior - [การเพิ่มประสิทธิภาพต้นทุน Cloud](https://sharpskill.dev/th/technologies/devops/interview-questions/infrastructure-cost.md): 20 คำถาม, Senior - [หลักการ SRE](https://sharpskill.dev/th/technologies/devops/interview-questions/sre-principles.md): 24 คำถาม, Senior - [Chaos Engineering](https://sharpskill.dev/th/technologies/devops/interview-questions/chaos-engineering.md): 20 คำถาม, Senior - [Platform Engineering](https://sharpskill.dev/th/technologies/devops/interview-questions/platform-engineering.md): 22 คำถาม, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/th/technologies/devops/interview-questions/cicd-pipeline-security