TypeScript, Security, and Type Juggling with Ariel Shulman & Liran Tal - JSJ 679

TypeScript, Security, and Type Juggling with Ariel Shulman & Liran Tal - JSJ 679

In this episode, we dove headfirst into the swirling waters of TypeScript, its real-world use cases, and where it starts to fall short—especially when it comes to security. Joining us from sunny Tel Aviv (and a slightly cooler Portland), we had the brilliant Ariel Shulman and security advocate Liran Tal bring the heat on everything from type safety to runtime vulnerabilities.


We started off with a friendly debate: Has TypeScript really taken over the world? Our verdict? Pretty much. Whether it’s starter projects, enterprise codebases, or AI-generated snippets, TypeScript has become the de facto standard. But as we quickly found out, that doesn’t mean it’s perfect.


Key Takeaways:
-TypeScript ≠ Security
We tend to trust TypeScript a bit too much. It’s a build-time tool, not a runtime enforcer. As Liran pointed out, “TypeScript is not a security tool,” and treating it like one leads to dangerous assumptions.
-Type Juggling is Real (and Sneaky)
We explored how something as innocent as using as string on request data can open the door to vulnerabilities like HTTP parameter pollution and prototype pollution. Just because your IDE is happy doesn’t mean your runtime is.
-Enter Zod – Runtime Type Checking to the Rescue?
Zod got some love for bridging the dev-time/runtime gap by validating data on the fly and inferring TypeScript types. But even Zod isn’t foolproof. For example, unless you're using .strict(), extra fields can sneak past your validations, leading to mass assignment bugs.
-Common Developer Fallacies
We discussed the misplaced confidence developers have in things like code coverage and TypeScript alone. One of the big takeaways: defense in depth matters. Just like testing, layering your security practices (like using Zod, type guards, and proper sanitization) is key.
-TypeScript Best Practices Are Evolving
From discriminated unions to avoiding any, from using Maps over plain objects to prevent prototype pollution—TypeScript developers are adapting. And tools like modern Node.js now support type stripping, which makes working with .ts files at runtime a bit easier.


Become a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

Avsnitt(738)

SEO for Developers ft. Mordy Oberstein - JSJ 509

SEO for Developers ft. Mordy Oberstein - JSJ 509

Mordy Oberstein joins the JavaScript Jabber panel to discuss SEO and how what seems like a marketing concern is relevant and exciting for developers. SEO is working with a black box with regards to Go...

16 Nov 20211h 8min

State Management ft. Assaf Krintza - JSJ 508

State Management ft. Assaf Krintza - JSJ 508

Assaf Krintza joins the JavaScript Jabber panel to discuss the various approaches and uses for state management in web applications. Some of the focus is on React, but many of the tools and approaches...

9 Nov 20211h 4min

D3 and Data Visualization ft. Ian Johnson - JSJ 507

D3 and Data Visualization ft. Ian Johnson - JSJ 507

Ian Johnson is a former Google UX engineer and data visualization engineer with ObservableHQ building data visualizations with JavaScript. He works on both the tools and the visualizations built with ...

2 Nov 202159min

MeteorJS ft. Filipe Névola - JSJ 506

MeteorJS ft. Filipe Névola - JSJ 506

Filipe Névola is the CEO of MeteorJS. He jumps in to discuss the changes and updates to Meteor over the last several years.He explains what Meteor is, what its history is, and how it lands within the ...

26 Okt 20216min

Creeds of Craftsmanship - JSJ 505

Creeds of Craftsmanship - JSJ 505

This week, the JavaScript Jabber panel discusses the various "Creeds of Craftsmanship" from the programming languages out there. They discuss the different principles and the unifying concepts they al...

19 Okt 20211h 3min

AgGrid: From Open Source to Successful Business ft. Niall Crosby - JSJ 504

AgGrid: From Open Source to Successful Business ft. Niall Crosby - JSJ 504

Niall Crosby, creator of AgGrid, joins the panel to discuss the journey from building an open source data grid used all over the world to providing support and enterprise features and running a succes...

12 Okt 20211h 15min

Javascript and the Blockchain with Max Kordek - JSJ 503

Javascript and the Blockchain with Max Kordek - JSJ 503

Steve and AJ talk with Max Kordek, founder of his startup Lisk, which is geared towards helping JavaScript developers use the blockchain to develop new applications for new industries. We delve deep i...

5 Okt 20211h 14min

DevOps for JavaScript ft. Will Button - JSJ 502

DevOps for JavaScript ft. Will Button - JSJ 502

Our very own Will Button from Adventures in DevOps joins us to discuss DevOps in JavaScript. Will also hosts his own YouTube channel discussing DevOps for Developers and is a consultant helping early ...

28 Sep 202145min

Populärt inom Business & ekonomi

framgangspodden
varvet
badfluence
rss-jossan-nina
rss-borsens-finest
uppgang-och-fall
rss-svart-marknad
avanzapodden
rss-dagen-med-di
rss-kort-lang-analyspodden-fran-di
svd-tech-brief
fill-or-kill
lastbilspodden
borsmorgon
kapitalet-en-podd-om-ekonomi
bathina-en-podcast
rss-den-nya-ekonomin
rss-wallnor-pm
rss-inga-dumma-fragor-om-pengar
tabberaset