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
3.5k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
redash運用アンチパターン
2018/10/17 redasm meetup 4.0.0のLTで発表した資料です。
Anntoque
October 17, 2018
More Decks by Anntoque
See All by Anntoque
【試されDATA SAPPORO #1】データ基盤を「育てる」コミュニケーション
anntoque
0
20
【Sapporo Data Pioneers #1 】データのライフサイクルとSapporo Data Pioneersの思いについて
anntoque
1
650
【istyle Data Talk #01】越境できるデータの組織・人材を目指して/ istyle data talk 01 Data Organization
anntoque
1
1.1k
what Azure Synapse
anntoque
0
3.2k
REDASH JOURNEY
anntoque
0
1.5k
データドリブンを提供するサービス Brand Officialのアーキテクチャ / brand official architecture
anntoque
0
1.7k
理想の自分を忘れないために Slack and LINE bot を作った話 / Make Slack API and LINE bot to not forget ideal myself
anntoque
0
940
SQL実践入門night_LT資料_YASU11552288
anntoque
0
580
Other Decks in Programming
See All in Programming
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
180
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
21
7.1k
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
180
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
160
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
180
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
220
SLOをサービス品質の共通言語にするために 取り組んできたこと
wakana0222
0
200
IBM Bobを活用したレガシーアプリの最新化
oniak3ibm
PRO
1
230
Performance Engineering for Everyone
elenatanasoiu
0
250
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
620
OS アップデート対応の取り組み方がもっと共有されてほしい
andpad
0
110
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
280
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
230
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
590
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.6k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
150
The Cost Of JavaScript in 2023
addyosmani
55
10k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
410
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
340
Scaling GitHub
holman
464
140k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
880
Leo the Paperboy
mayatellez
7
1.9k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
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!!