From Foundations to Keycloak Principal Architect
แผนผังหลักสูตรและดัชนีภาพรวมระดับ Macro ฉบับจัดระเบียบใหม่ตามหลัก First Principles & Progressive Mastery: เริ่มจากทำความเข้าใจนิยามและตัวละครหลักใน IAM (Phase 1: Basic), ก้าวสู่การเชื่อมโยงระบบระดับองค์กรและ Pipeline ความปลอดภัย (Phase 2: Intermediate), และปิดท้ายด้วยการเขียนโค้ด Java ขยายแกน Core Engine พร้อมสถาปัตยกรรม High Availability บน Kubernetes (Phase 3: Expert)
🏛️ The 3 Progressive Milestones of the Architecture Journey
ลำดับขั้นทางวิศวกรรมที่ต่อเนื่องกันโดยไม่ก้าวกระโดด
Foundations, Entities, Tokens & Stateless API
เข้าใจตัวตนและบทบาทของ "ตัวละครหลักใน IAM" (Quarkus Runtime, Master vs Business Tenant, Users, Passwords, Public/Confidential Clients), การจัดสิทธิ์ RBAC, Token Anatomy, Mappers, Session RTR และการตรวจสอบ Bearer Token ด้วย Stateless JWKS (/certs)
Enterprise Federation, Flows, MFA & Theming
ก้าวสู่สภาพแวดล้อมระดับองค์กร: ดึงผู้ใช้จาก LDAP / Microsoft Active Directory โดยไม่ต้อง Migrate, เชื่อมต่อ Social/SAML Identity Brokering, ออกแบบ Authentication Execution Tree (Conditional MFA / Passkeys), และปรับแต่ง UI ด้วย Freemarker (.ftl)
Custom Java SPIs, Distributed Grid & K8s HA
ก้าวสู่ระดับ Core Engineer: เขียน Java/Quarkus Service Provider Interfaces (Custom Authenticator, Kafka Event Listener, User Storage Provider), จูน Infinispan Distributed Cache Grid ข้ามคลัสเตอร์, และดูแล High Availability ผ่าน Kubernetes Operator
Phase 1: Basic — Foundations, Entities, Tokens & Stateless API
เรียนรู้ผ่านหลัก First Principles: เข้าใจตัวละคร (Entities) ➔ เข้าใจบัตรผ่านและสิทธิ์ (Tokens/Roles) ➔ ประกอบระบบจริงกับ Backend (JWKS)
Identity Foundations & Entities
ปูรากฐานตัวละครในระบบ IAM ก่อนแตะโปรโตคอลซับซ้อน:
- Day 01: What is Keycloak, 7 Subsystems & Postgres Storage
- Day 02: Demystifying OAuth 2.0 vs OIDC & PKCE (RFC 7636)
- Day 03: Keycloak Entities: Realms, Users & Storage Boundaries
- Day 04: Clients Anatomy: Public vs Confidential Clients
- Day 05: Machine-to-Machine & Client Credentials Grant
- Days 06-07: Checkpoint Lab #1: Entity Modeling & CLI Handshake
Roles, Claims & Token Lifecycles
จัดโครงสร้างสิทธิ์ บัตรผ่าน และการควบคุมเซสชัน:
- Day 08: Authorization RBAC: Realm Roles vs Client Roles
- Day 09: Groups & Declarative User Profile Management
- Day 10: Deep-Dive JWT Anatomy & Token Bloat Defense (HTTP 431)
- Day 11: Protocol Mappers, Custom Claims & Scopes Strategy
- Day 12: Session Lifecycles & Refresh Token Rotation (RTR)
- Days 13-14: Checkpoint Lab #2: Token Security & OWASP Audit
Backend Integration & Stateless API
เชื่อมต่อกับ Backend และประกอบระบบ End-to-End:
- Day 15: Public Key Cryptography & JWKS Endpoint (/certs)
- Day 16: Building the Resource Server: Stateless Verification
- Day 17: Enforcing Scopes & RBAC Authorization in API
- Day 18: Logout Architectures & RFC 7009 Token Revocation
- Day 19: Capstone: Unified 3-Tier IAM Architecture
- Days 20-21: Comprehensive 3-Week Assessment & Defense
Phase 2: Intermediate — Enterprise Ecosystem, Federation & Custom UX
เชื่อมต่อ Directory องค์กรเดิม (LDAP/Active Directory), Brokering กับ Social/SAML, ควบคุม Execution Tree สำหรับ MFA, และทำ Branded Theming
User Federation (LDAP/AD)
เชื่อมต่อ OpenLDAP & Active Directory, Sync Modes (Full vs Changed), LDAP Mappers, และ Kerberos / SPNEGO Single Sign-On
Identity Brokering
เชื่อมต่อ Google, GitHub, Microsoft Entra ID และ SAML 2.0 IdP ภายนอก, ปรับแต่ง First Broker Login Flow และ Account Linking
Auth Flows & Adaptive MFA
โครงสร้าง Execution Trees (Required, Alternative, Conditional), การทำ Conditional OTP ตามเงื่อนไขสิทธิ์ และ WebAuthn / Passkeys
Custom FTL Theming
ออกแบบหน้า Login, Registration และ Error ด้วย Freemarker (.ftl), Theme Inheritance, Tailwind CSS และ Multi-Language i18n
Phase 2 Capstone
สร้าง Enterprise Portal รวม LDAP + Social Login + Conditional MFA พร้อมหน้าตา Branded UI สวยงามตามเอกลักษณ์องค์กร
Phase 3: Expert — Custom Java SPIs, Distributed Grid & K8s HA
ก้าวสู่ระดับ Core Principal Engineer: เขียน Custom Java Plugins, จูน Infinispan Data Grid ข้ามคลัสเตอร์, และดูแล High Availability บน Kubernetes
Java Quarkus SPI Lifecycle
สถาปัตยกรรม Service Provider Interface, Provider vs ProviderFactory, KeycloakSession Context, การทำ Event Listener SPI ส่ง Audit Log เข้า Kafka
Custom Authenticators & Storage
พัฒนา Custom Authenticator SPI (เชื่อมต่อ SMS Gateway ไทย หรือ Hardware Tokens) และ User Storage Provider เชื่อมฐานข้อมูล Legacy Database
Infinispan Grid & UMA 2.0
Infinispan Distributed Caching (Session Grid, JGroups, Cross-Site Replication), RFC 8693 Token Exchange, และ Financial-Grade API (FAPI)
K8s Operator & HA Defense
Production Keycloak Kubernetes Operator, Multi-AZ Zero-Downtime Rolling Upgrades, DB Connection Pool Autoscaling, และ Grand Defense Exam
📊 Grand Master Competency & Architecture Matrix
ตารางเปรียบเทียบมิติทางเทคนิคและความลึกของทักษะในแต่ละ Phase ฉบับ Realigned
เข้าสู่หน้าสารบัญ Phase 1 หรือเริ่มเรียนรายวันได้ทันที
เข้าถึงไฟล์ที่สร้างเสร็จสมบูรณ์ตามมาตรฐาน First Principles