Skip to Content
CockroachDB:決定版ガイド
book

CockroachDB:決定版ガイド

by Guy Harrison, Jesse Seldess, Ben Darnell
May 2025
Intermediate to advanced
488 pages
7h 56m
Japanese
O'Reilly Media, Inc.
Content preview from CockroachDB:決定版ガイド

第13章. セキュリティ

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

情報化時代において、データは世界で最も価値のある商品のひとつである。それは、強化された演算子によって競争上の優位性をもたらすことができ、しばしば最も厳しいプライバシー規制の対象となる。データベースは、データ盗難、ランサムウェア攻撃、データ改ざんの標的となることが多い。

CockroachDBは、悪意のある攻撃からデータベースを保護し、ヒューマンエラーやアプリケーションのバグからもある程度保護する、産業用の強力なセキュリティ機能をサポートしている。

十分に保護されたCockroachDBのデプロイは、データベースを保護するために多層防御を使用する:侵入や不正な活動から保護する複数のセキュリティレベル。これらには以下が含まれる:

  • クラスタの接続を、既知の信頼できるネットワークアドレスに制限するファイアウォール規則。

  • トランスポート・レイヤー・セキュリティ(TLS)暗号化 は、飛行中のデータへのアクセスを防ぐ。TLS認証は、中間者攻撃(man-in-the-middle attack)を撃退し、クライアント認証のレベルを提供するためにも使用できる。

  • Encryption at rest(静止時の暗号化):エンタープライズ、ディスク上のデータファイルを暗号化できる機能。

  • 、ユーザ名、パスワード、キーファイル、Kerberos、OAuthなど、さまざまな認証メカニズムがユーザのアイデンティティを決定する。

  • データおよびシステムコマンドへのアクセスを制御する役割ベースの認可システム。

  • ユーザ・アクセスの追跡を可能にするロギング・オプション。標準ロギングでは、認証イベントとSQL実行の追跡が可能であり、監査ロギングでは、機密データへのアクセスのきめ細かい追跡が可能である。

この章では、それぞれの詳細について説明する。

ファイアウォールの設定

CockroachDBデータベースにアクセスしようとするほとんどの試みは、SQLポート(デフォルトではポート26257でリッスンしている)を介して発生する。このポートへのアクセスを許可されたIPアドレスに制限することは、クラスタを保護するための明らかな第一歩である。

CockroachDB専用IP許可リスト

CockroachDB Dedicatedは、 、クラスタのグローバル・ファイアウォールとして機能するIP allowlist関数を提供する。allowlistを使用すると、クラスレス・ドメイン間ルーティング(CIDR)形式で個々のIPアドレスまたはIPアドレス範囲のクラスタへの接続を許可できる。図13-1は、CockroachDB Dedicatedクラスタに新しいCIDR範囲を追加する様子を示している。

cockroachdedicatedWhitelist
図 13-1. CockroachDB Dedicatedでallowlistをセットアップする。
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

実践的レイクハウス・アーキテクチャー

実践的レイクハウス・アーキテクチャー

Gaurav Ashok Thalpati
ゲームストーム2.0

ゲームストーム2.0

Dave Gray, Sunni Brown
実践者向けの説明可能なAI

実践者向けの説明可能なAI

Michael Munn, David Pitman

Publisher Resources

ISBN: 9798341651838