Skip to Content
実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護
book

実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護

by Stian Thorgersen, Pedro Igor Silva, 和田 広之, 田村 広平, 乗松 隆志, 田畑 義之
October 2022
Intermediate to advanced
352 pages
5h 8m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護

9章本番環境用のKeycloakの設定

 これまでに、Keycloakの使用方法、重要なコンセプト、そしてアプリケーションのセキュリティーを保護するために最初にすべきことについて学んできました。本章では、本番環境さながらのKeycloakクラスターを作成し、物理マシンやVM上で本番環境の設定をする際に必要なさまざまな観点や手順を理解します。

 Keycloakをコンテナーで動かす際にも、同様の設定の観点を考慮する必要があります。この場合、設定のほとんどはコンテナーイメージによって自動的に行われますが、コンテナーがどのように設定されているか、またOpenShiftやKubernetesにKeycloakをデプロイする際にどのようなことを考慮すべきかを理解するためには、本章の内容が役に立ちます。

 次節では、これらの各観点を紹介し、それらがどのように実際のKeycloakの本番環境に適用されるかを説明します。本章を読み終えると、可用性、パフォーマンス、フェイルオーバーなどのさまざまな非機能面を考慮して、ここで記載する手順と推奨事項を自身のKeycloakの本番環境に適用できるようになっているはずです。

 本章で取り上げる主なトピックは、以下の通りです。

  • サーバーオプション
  • Keycloakのホスト名の設定
  • TLSの有効化
  • データベースの設定
  • クラスタリングの有効化
  • リバースプロキシーの設定
  • 環境のテスト

9.1 技術要件

 本章では、本書のGitHubリポジトリーのローカルコピーが必要です。Gitがインストールされている場合、ターミナルで次のコマンドを実行することにより、リポジトリーをクローンできます。

$ cd $KC_HOME
$ git clone https://github.com/Keycloak-IAM-4-Modern-Apps-JP/Keycloak-Identity-and-Access-Management-for-Modern-Applications.git ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

セキュアで信頼性のあるシステム構築 ―Google SREが考える安全なシステムの設計、実装、保守

セキュアで信頼性のあるシステム構築 ―Google SREが考える安全なシステムの設計、実装、保守

Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield, Kuma Arakawa, 渡邉 了介
実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

Sowmya Vajjala, Bodhisattwa Majumder, Anuj Gupta, Harshit Surana, 中山 光樹

Publisher Resources

ISBN: 9784814400096Other