Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Gotanda.rb#56
Search
Masayuki Mizuno
December 20, 2023
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Gotanda.rb#56
Masayuki Mizuno
December 20, 2023
Transcript
16 slides
© 2023 Wantedly, Inc. Rails 7.0 ΞοϓάϨʔυͰ ηογϣϯཧ͕յΕͨ Dec. 20
2023 - ਫ խ೭
ࠓ͢͜ͱ © 2023 Wantedly, Inc.
ࠓ͢ࣄ • ֤ϚΠΫϩαʔϏεͰผݸʹ CookieStore ΛͬͨηογϣϯཧΛߦ͏ϚΠΫϩ αʔϏεΞʔΩςΫνϟ © 2023 Wantedly, Inc.
Rails 7.0 ΞοϓσʔτͰηογϣϯཧ͕յΕͨ https://www.wantedly.com/companies/wantedly/post_articles/466117 ΞʔΩςΫνϟ࣍ୈͰਂࠁͳӨڹ͕ग़Δ߹͕͋Δ
Կ͕ى͖ͨͷ͔ © 2023 Wantedly, Inc.
Կ͕ى͖ͨͷ͔ ϑΥʔϜࣗಈೖྗϘλϯ͕ಈ࡞͠ͳ͘ͳͬͨ © 2023 Wantedly, Inc. • 2022ͷ2݄͝Ζ
ى͖͍ͯͨΤϥʔ ϑΥʔϜදࣔ࣌ʹউखʹϩάΠϯঢ়ଶ͕ղআ͞ΕΔ © 2023 Wantedly, Inc. • ग़୫ͳ CookieStore ηογϣϯͰ্ॻ͖͞Εͯ͠·͏
ݪҼͷௐࠪ © 2023 Wantedly, Inc.
എܠ: Wantedly ͷΞʔΩςΫνϟ ೝূ༻ͷϚΠΫϩαʔϏεͱɺΤϯτϦʔϑΥʔϜ༻ͷ ϚΠΫϩαʔϏε͕ผΕ͍ͯΔ • ֤ϚΠΫϩαʔϏεͰผݸʹ CookieStore ηογϣϯΛݕূ͍ͯ͠Δ ©
2023 Wantedly, Inc. ೝূ༻ϚΠΫϩαʔϏε ϑΥʔϜ༻ϚΠΫϩαʔϏε ೝূཁٻ ηογϣϯใ ϑΥʔϜೖྗཁٻ + ηογϣϯใ ϑΥʔϜใ ηογϣϯݕূ CookieStore ҉߸༻ڞ༗伴Λڞ༗
ೝূʹࣦഊͨ͠ݪҼͷௐࠪ CookieStore ηογϣϯͷ෮߸ʹࣦഊ • ೝূ༻ϚΠΫϩαʔϏεͷੜͨ͠ηογϣϯ͕ɺϑΥʔϜ༻ϚΠΫϩαʔϏεʹෆ ਖ਼ͳͷͱͯ͠ѻΘΕͨ © 2023 Wantedly, Inc.
ೝূ༻ϚΠΫϩαʔϏε ϑΥʔϜ༻ϚΠΫϩαʔϏε ೝূཁٻ ηογϣϯใ ϑΥʔϜೖྗཁٻ + ηογϣϯใ ೝূΤϥʔ ηογϣϯݕূʹ ࣦഊ
CookieStore ηογϣϯ෮߸ʹࣦഊͨ͠ݪҼͷௐࠪ ηογϣϯ෮߸ͷͨΊͷڞ༗伴͕৯͍ҧ͍ͬͯͨ © 2023 Wantedly, Inc.
എܠ: ڞ༗伴ੜͷΞϧΰϦζϜ secret_key_base + ιϧτʹϋογϡؔΛ܁Γฦ͠ద༻ • PBKDF2-HMAC • ૯ͨΓ߈ܸରࡦͷͨΊʹܭࢉΛॏ͍ͯ͘͠Δʢ͍ΘΏΔετϨονϯάʣ ©
2023 Wantedly, Inc. ϋογϡؔʢSHA256ʣ secret_key_base + ιϧτ ڞ༗伴 KeyGenerator
Τϥʔͷى͖ͨݪҼ Rails 7.0 ͔ΒσϑΥϧτͰڞ༗伴ੜʹ༻͍Δ ϋογϡ͕ؔมߋ͞Εͨ © 2023 Wantedly, Inc. SHA-1
SHA-256 secret_key_base + ιϧτ ڞ༗伴 ҟͳΔڞ༗伴 KeyGenerator
ͷमਖ਼ © 2023 Wantedly, Inc.
Ұ࣌ରԠ ڞ༗伴ੜʹ༻͍ΔϋογϡؔͷઃఆΛͨ͠ © 2023 Wantedly, Inc. • SHA-1 ࣌ΕͳͷͰɺ͓͍͓͍ SHA-256
ʹΞοϓσʔτ͍ͨ͠ • ԁͳҠߦʹϩʔςʔλ͕ඞཁ
·ͱΊ © 2023 Wantedly, Inc.
·ͱΊ • ֤ϚΠΫϩαʔϏεͰผݸʹ CookieStore ΛͬͨηογϣϯཧΛߦ͏ϚΠΫϩ αʔϏεΞʔΩςΫνϟ © 2023 Wantedly, Inc.
Rails 7.0 ΞοϓσʔτͰηογϣϯཧ͕ӨڹΛड͚Δ https://www.wantedly.com/companies/wantedly/post_articles/466117 ΞʔΩςΫνϟ࣍ୈͰਂࠁͳӨڹ͕ग़Δ߹͕͋Δ
More Decks by Masayuki Mizuno
See All by Masayuki Mizuno
OCaml Meeting 2026 in Tokyo
fetburner
0
330
CircleCI ユーザーミートアップ
fetburner
0
240
関数型まつり2026
fetburner
2
1.3k
Rails アプリの docker build を 倍速にした話
fetburner
2
220
Omotesando.rb #110
fetburner
0
260
Continuation is to be continued
fetburner
1
2.7k
callccの実装を読む
fetburner
0
280
RubyでSlackのbotを作ろう
fetburner
0
250
継続オペレータの話
fetburner
0
300
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k
Done Done
chrislema
187
17k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
310
The Pragmatic Product Professional
lauravandoore
37
7.5k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
680
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
620
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k