Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
redash運用アンチパターン
Search
Anntoque
October 17, 2018
Programming
0
3.3k
redash運用アンチパターン
2018/10/17 redasm meetup 4.0.0のLTで発表した資料です。
Anntoque
October 17, 2018
Tweet
Share
More Decks by Anntoque
See All by Anntoque
【Sapporo Data Pioneers #1 】データのライフサイクルとSapporo Data Pioneersの思いについて
anntoque
1
410
【istyle Data Talk #01】越境できるデータの組織・人材を目指して/ istyle data talk 01 Data Organization
anntoque
1
980
what Azure Synapse
anntoque
0
3k
REDASH JOURNEY
anntoque
0
1.4k
データドリブンを提供するサービス Brand Officialのアーキテクチャ / brand official architecture
anntoque
0
1.6k
理想の自分を忘れないために Slack and LINE bot を作った話 / Make Slack API and LINE bot to not forget ideal myself
anntoque
0
880
SQL実践入門night_LT資料_YASU11552288
anntoque
0
530
Other Decks in Programming
See All in Programming
テスト分析入門/Test Analysis Tutorial
goyoki
9
2.5k
TypeScript製IaCツールのAWS CDKが様々な言語で実装できる理由 ~他言語変換の仕組み~ / cdk-language-transformation
gotok365
6
340
Proxmoxをまとめて管理できるコンソール作ってみました
karugamo
1
380
マテリアルって何者?RealityKitで扱うマテリアル入門
nao_randd
0
130
Devinで実践する!AIエージェントと協働する開発組織の作り方
masahiro_nishimi
6
2k
“技術カンファレンスで何か変わる?” ──RubyKaigi後の自分とチームを振り返る
ssagara00
0
200
ts-morph実践:型を利用するcodemodのテクニック
ypresto
1
490
TVer iOSチームの共通認識の作り方 - Findy Job LT iOSアプリ開発の裏側 開発組織が向き合う課題とこれから
techtver
PRO
0
630
医療系ソフトウェアのAI駆動開発
koukimiura
1
170
CQRS/ESのクラスとシステムフロー ~ RailsでフルスクラッチでCQRSESを組んで みたことから得た学び~
suzukimar
0
180
try-catchを使わないエラーハンドリング!? PHPでResult型の考え方を取り入れてみよう
kajitack
3
160
Use Perl as Better Shell Script
karupanerura
0
110
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
92
6k
RailsConf 2023
tenderlove
30
1.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.7k
Why Our Code Smells
bkeepers
PRO
336
57k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.2k
Code Review Best Practice
trishagee
68
18k
Facilitating Awesome Meetings
lara
54
6.4k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
180
53k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.3k
Unsuck your backbone
ammeep
671
58k
Transcript
株式会社アイスタイル redash運用アンチパターン テクノロジー本部 R&D部 山本 泰毅
Copyright (c) 2017 istyle, Inc. All rights reserved. 2 redash運用アンチパターンとは
①目的 ②アンチパターン ③アンチパターンの見つけ方 ④アンチパターンを用いてもよい場合 ⑤解決策 の順で事例紹介 redash 運用 アンチパターン
Copyright (c) 2017 istyle, Inc. All rights reserved. 1章① パラダイス・オウス(多種多様な権限要望) ①目的
- クエリを閲覧できる人を限りたい 3
Copyright (c) 2017 istyle, Inc. All rights reserved. 1章① パラダイス・オウス(多種多様な権限要望) ②アンチパターン
- エンジニアのみredash使用可能にし、csvファイルで依頼者にデータ を提供 - redashの魅力半減… ③アンチパターンの見つけ方 - 偉い人「エンジニア以外redash使わなければよくない?」 ④アンチパターンを用いてもいい場合 - 上司に負けたとき 4
Copyright (c) 2017 istyle, Inc. All rights reserved. 1章① パラダイス・オウス(多種多様な権限要望) ⑤解決策
- redash実行画面の「Show Source」ボタンが 表示される人・されない人を分ける 5
Copyright (c) 2017 istyle, Inc. All rights reserved. 1章① パラダイス・オウス(多種多様な権限要望) 6
create_dashboard ダッシュボード作成 create_query クエリ作成 edit_dashboard ダッシュボード編集 edit_query クエリ編集 view_query クエリ閲覧 view_source ソース閲覧 execute_query クエリ実行 schedule_query クエリのスケジュール設定 list_users ユーザーリスト表示 list_dashboards ダッシュボードリスト表示 list_alerts アラートリスト表示 list_data_sources データソースリスト表示 redashの権限一覧
Copyright (c) 2017 istyle, Inc. All rights reserved. 1章① パラダイス・オウス(多種多様な権限要望) -
manage.py 利用の場合 - PostgreSQLの場合 7 sudo -u redash bin/run ./manage.py groups change_permissions --permissions view_query,execute_query,list_dashboards 10 update groups set permissions = '{view_query,execute_query,list_dashboards}' where id = 10; 最低限の権限だけ再設定
Copyright (c) 2017 istyle, Inc. All rights reserved. 1章② パラダイス・オウス(多種多様な権限要望) ①目的
- 特定のクエリを特定の人物・集団だけが実行できるよう にしたい - 「売り上げデータのクエリを特定の部署の人物だけ 実行できるようにしたい」 ②アンチパターン - なぜそのような制限をかけたいのかをヒアリングせずに グループを作る - グループが乱立 ③アンチパターンの見つけ方 - 「とりあえずグループ作っちゃおうか」 ④アンチパターンを用いてもいい場合 - 目的のヒアリングに協力してくれない場合… 8
Copyright (c) 2017 istyle, Inc. All rights reserved. 1章② パラダイス・オウス・(多種多様な権限要望) ⑤解決策
- 特定の部署のグループを作成し、同DBにアクセスするデータソース をグループごとに作成 9 SAMPLE DB DATA SOURCE 営業用 DATA SOURCE 分析用 分析 グループ 営業 グループ 売り上げ 集計クエリ 売り上げ 集計クエリ
Copyright (c) 2017 istyle, Inc. All rights reserved. 終わりです! (2章はまたどこかで)
10 We’re Hiring!!