Upgrade to Pro — share decks privately, control downloads, hide ads and more …

mackerel-plugin-aws-waf をつくった

mackerel-plugin-aws-waf をつくった

Hidekazu Tanaka

March 22, 2017
Tweet

More Decks by Hidekazu Tanaka

Other Decks in Technology

Transcript

  1. AWS WAF • AWS ͕ఏڙ͢Δ΢ΣϒΞϓϦέʔγϣϯϑΝΠΞ΢Υʔϧ • Cloudfront ·ͨ͸ ALB ͱ࿈ܞ͢Δ͜ͱͰར༻Մೳ

    • WebACL • ϧʔϧΛଋͶΔઃఆ • Cloudfront ·ͨ͸ ALB ʹઃఆ • ϧʔϧ • SQL ΠϯδΣΫγϣϯ΍ XSS ౳ͷڐՄ·ͨ͸ڋ൱ઃఆ
  2. ࡞੒ཧ༝ • Mackerel Ͱ AWS WAF ͷϝτϦοΫεΛ֬ೝ͔ͨͬͨ͠ • AWS WAF

    ͚ͩϓϥάΠϯ͕ͳ͔ͬͨ • Mackerel ʹߩݙ͔ͨͬͨ͠ • ΤʔδΣϯτ΍ެࣜϓϥάΠϯू͕ OSS Ͱެ։͞Ε͍ͯ ΔͷͰߩݙ͠΍͍͢ • Go ݴޠͷษڧΛ͔ͨͬͨ͠
  3. ۤ࿑ͨ͠఺ • ϓϥάΠϯ࡞੒༻ͷϔϧύʔϥΠϒϥϦ͕2ݸ͋Δ • go-mackerel-plugin • go-mackerel-plugin-helper • AWS WAF

    ͷ API ͸ Cloudfront ͱ ALB Ͱ෼͔Ε͍ͯΔ • AWS WAF : Cloudfront • AWS WAF Regional : ALB
  4. ࠓޙ • ALB ͷରԠ • AWS WAF ͷ API Λ੾Γସ͑Δඞཁ͕͋Γ

    • Cloudfront : AWS WAF • ALB : AWS WAF Regional • ݱ࣌఺Ͱ͸ ALB ରԠͷ༏ઌ౓͸௿͍ • ެࣜϓϥάΠϯूͷͻͱͭͳͷͰ……
  5. ཁ๬ • AWS ΠϯςάϨʔγϣϯ • ରԠαʔϏεͷ௥Ճ • Amazon Cloudfront •

    Amazon Elasticsearch Service • Aurora ͷϝτϦοΫεͷ௥Ճ • εϧʔϓοτ΍ϨΠςϯγʔ