Securing microservices: a practical guide
summary
An open-source GameOn text-based adventure demonstrates securing microservices by using social sign-on (GitHub/Google), an OAuth2/OpenID Connect flow that exchanges provider tokens for a service JWT signed with the JWT signed with gameon-text.org SSL cert and short expirations (minutes) for replay protection. Service-to-service calls use a shared-secret HMAC per-request header that hashes method, URI, date, query and body; libraries and a central auth microservice enforce parity and avoid replay or tampering.
AI-written summary · about
chapters (36)
- 0:00Welcome and introduction
- 1:07What are microservices
- 6:04Microservices and DevOps shift
- 7:07Introducing Game On
- 9:55Game On demo
- 12:21Game On architecture
- 13:47Security fundamentals
- 15:10Social sign-on flow
- 18:38JSON Web Tokens explained
- 20:46Why use JWTs
- 22:48JWT signing and validation
- 24:13JWT in Game On
- 26:36JWT code example
- 26:57Long-running JWT sessions
- 28:00Async JWT with GitHub
- 29:02App Accelerator demo
- 30:06Service-to-service trust
- 30:47HMAC and shared secrets
- 32:29Shared HMAC library
- 33:55JitPack for shared libs
- 35:21Dev vs production parity
- 37:05Local anonymous login
- 37:47Key takeaways summary
- 39:32Security risks per interaction
- 39:54Centralized services
- 41:41Security early in development
- 42:02Game On documentation
- 43:24WebSocket handshake security
- 44:04Shared library details
- 45:06API keys in Game On
- 45:47Q&A session start
- 46:07Identity merging question
- 47:54IBM tools and best practices
- 49:18JWT expiry and compromise
- 51:48Handling invalid requests
- 52:10Closing remarks
