<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/keycloak-with-istio-and-oauth2-proxy--9tvazty4q" -->

---
title: Keycloak with istio and Oauth2-Proxy. | daily.dev
description: The post guides you through setting up Istio with Keycloak and OAuth2 Proxy to add authentication and authorization to a microservices architecture. Keycloak...
canonical: https://daily.dev/posts/keycloak-with-istio-and-oauth2-proxy--9tvazty4q
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Keycloak with istio and Oauth2-Proxy. | daily.dev
og:description: The post guides you through setting up Istio with Keycloak and OAuth2 Proxy to add authentication and authorization to a microservices architecture. Keycloak...
og:url: https://daily.dev/posts/keycloak-with-istio-and-oauth2-proxy--9tvazty4q
og:image: https://api.daily.dev/og/posts/9tvaZTy4q.png
og:image:alt: Keycloak with istio and Oauth2-Proxy.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Keycloak with istio and Oauth2-Proxy.

**[Community Picks](https://daily.dev/sources/community)** · 8 min read · 18 upvotes · 0 comments

## Summary

The post guides you through setting up Istio with Keycloak and OAuth2 Proxy to add authentication and authorization to a microservices architecture. Keycloak serves as an identity provider and OAuth2 authorization server, while OAuth2 Proxy handles OAuth2 authentication flows, converting them into HTTP headers for backend services. The tutorial also covers using JWTs for stateless verification, configuring Keycloak and OAuth2 Proxy, and setting up Istio policies to protect services like a test pod. Finally, it demonstrates testing the implementation to ensure secure access.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://chrishaessig.medium.com/keycloak-with-istio-and-oauth2-proxy-65227a383c15>

## Similar posts on daily.dev

- [Governing Security in the Age of Infinite Signal](https://daily.dev/posts/governing-security-in-the-age-of-infinite-signal-qhihbir44) · Snyk · 0 upvotes · 0 comments
- [No one has a good plan for how AI companies should work with the government](https://daily.dev/posts/no-one-has-a-good-plan-for-how-ai-companies-should-work-with-the-government-nkajqoze1) · TechCrunch · 0 upvotes · 1 comments

---

Tags: [#infrastructure](https://daily.dev/tags/infrastructure), [#kubernetes](https://daily.dev/tags/kubernetes), [#authentication](https://daily.dev/tags/authentication), [#istio](https://daily.dev/tags/istio)

[View this post on daily.dev](https://daily.dev/posts/keycloak-with-istio-and-oauth2-proxy--9tvazty4q)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Keycloak with istio and Oauth2-Proxy.","url":"https://daily.dev/posts/keycloak-with-istio-and-oauth2-proxy--9tvazty4q","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/keycloak-with-istio-and-oauth2-proxy--9tvazty4q"},"datePublished":"2024-09-25T11:03:58.359Z","dateModified":"2024-12-12T09:46:52.159Z","description":"The post guides you through setting up Istio with Keycloak and OAuth2 Proxy to add authentication and authorization to a microservices architecture. Keycloak...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6d38be57dd494585be5243f6acf6cf46?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6d38be57dd494585be5243f6acf6cf46?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/keycloak-with-istio-and-oauth2-proxy--9tvazty4q","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":18},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"infrastructure,kubernetes,authentication,istio","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"Keycloak with istio and Oauth2-Proxy."}]}
```

