作って(壊して?)学ぶインターネットのしくみ サイバーエージェントの実験用ASの紹介 / Introduce experimental AS in ...whywaita
サイバーエージェントの社内エンジニアカンファレンス CA BASE CAMP 2021で発表した資料です
再アップロード版: https://speakerdeck.com/whywaita/as-introduce-experimental-as-in-cyberagent-internet-seminer
The document discusses an SSRF attack on Amazon EC2 Instance Metadata Service (IMDS) version 1. It describes how IMDSv1 could be accessed from outside the instance by exploiting vulnerabilities in a web application firewall (WAF). The attack allowed accessing credentials of an IAM role that had permissions to an S3 bucket storing personal information. To mitigate such risks, Amazon introduced IMDSv2, which the document then explains can still be bypassed using techniques like the Gopher protocol. It concludes by emphasizing the need for organizations to strengthen defenses against SSRF attacks.
作って(壊して?)学ぶインターネットのしくみ サイバーエージェントの実験用ASの紹介 / Introduce experimental AS in ...whywaita
サイバーエージェントの社内エンジニアカンファレンス CA BASE CAMP 2021で発表した資料です
再アップロード版: https://speakerdeck.com/whywaita/as-introduce-experimental-as-in-cyberagent-internet-seminer
The document discusses an SSRF attack on Amazon EC2 Instance Metadata Service (IMDS) version 1. It describes how IMDSv1 could be accessed from outside the instance by exploiting vulnerabilities in a web application firewall (WAF). The attack allowed accessing credentials of an IAM role that had permissions to an S3 bucket storing personal information. To mitigate such risks, Amazon introduced IMDSv2, which the document then explains can still be bypassed using techniques like the Gopher protocol. It concludes by emphasizing the need for organizations to strengthen defenses against SSRF attacks.
The Ottoman Military Band, also known as Mehter, was established in the 13th century to play music for the Ottoman Sultan and spread news from the state. As a military marching band, the Mehter would accompany soldiers into battle to instill courage while also intimidating enemies. Still performing today, the Mehter is Turkey's oldest military band and plays ceremonial music as a reminder of the country's past, featuring instruments like the kös, davul, and zurna.
The document discusses using RRDtool to create colorful and informative graphs for visualizing system load average data over time. It provides an example of a graph that divides the load average values into 28 colored areas to clearly show at a glance when the load average was in different ranges, making it easy to understand the overall situation over the period graphed. Previous examples shown include simple line graphs, adjusting colors, and adding elements like a horizontal rule for the CPU core count.
1. DTrace で MySQL を斬る!
〜 DTrace による MySQL 解析ことはじめ 〜
奥野 幹也
@nippondanji
mikiya (dot) okuno (at) gmail (dot) com
2. 自己紹介
●
今日は個人として来ています。
– http://nippondanji.blogspot.com/
– http://www.google.com/profiles/mikiya.okuno
●
現職は MySQL サポートエンジニア。
– 2000 年にサン・マイクロシステムズ入社
– 2007 年に MySQL KK へ転職
– 気付くとまたサン・マイクロシステムズに
– オラクル・コーポレーションに・・・
3. MySQL について
●
オープンソースのリレーショナル・データベー
ス・マネージメント・システム
●
MySQL AB => Sun Microsystems => Oracle に
よって開発。
●
Web 開発においては圧倒的なシェア
– PHP/Perl/Java/Ruby/C/C++/ODBC...
●
使い易く、安定して、高速に動作するのがウリ
5. MySQL の特徴
●
ANSI SQL 標準に準拠(一部の文法を除 ● UNION
く。) ●
ビュー
●
種々のプラットフォームをサポート ●
サブクエリ
( Windows 、 Linux 、 Mac 、各種 UNIX 系 ● INFORMATION_SCHEMA
OS ) ●
SSL による通信
●
ストレージエンジンによりデータを格納す ●
Unicode をはじめとした各種文字コードの
るレイヤーを仮想化 サポート
●
ACID 準拠のトランザクション ●
全文検索
●
XA トランザクション ●
タイムゾーンのサポート
●
非同期 Master/Slave 型レプリケーション ●
多種多様な開発言語のサポート( C 、 C+
●
水平パーティショニング + 、 Java 、 Perl 、 PHP 、 Python 、 Ruby
( Range 、 List 、 Hash 、 Key ) など)
●
ストアドプロシージャ、ストアドファンク ●
ODBC による接続のサポート
ション、トリガ
6. MySQL 構造の特徴
●
モノリシックカーネル
●
シングルプロセス・マルチスレッド
●
1 セッション= 1 スレッド
●
ストレージエンジン API による仮想化
●
プラグイン API
●
GNU Bison による Lexical Scanner
●
ソースコードは C/C++ 混在( 100 万行程度)
7. MySQL の仕組み
クライアント クライアント クライアント
Java PHP ODBC
コネクション コネクション コネクション
スレッド スレッド スレッド
SQL の解析と最
適化は共通
パーサー・オプティマイザ・アクセス管理 等
ストレージエンジン API データの格納や
MyISAM InnoDB MySQL アクセス方法は
Cluster ストレージエン
テーブル
table_name.MYI
スペース
ジンごとに違う
table_name.MYD NDB
ログファイル API
MySQL サーバ
データノード
データノード
データノード
データノード
8. MySQL の構造を知る!
●
Web ページ
– http://forge.mysql.com/wiki/MySQL_Internals
●
書籍
– 詳解 MySQL ( Understanding MySQL
Internals )
– Expert MySQL
– MySQL データベース構築バイブル
●
ソースコード!!