Tutorials on Security

Learn about Security from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL

How Retrieval-Augmented Generation Handles Data Privacy

Explore the privacy risks and protections of Retrieval-Augmented Generation systems, focusing on data security in sensitive industries.

Best Practices for API Integration in Vibe Coding

Want to make your API integrations seamless and secure? Here's a quick guide to the essentials:

I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

This has been a really good investment!

Advance your career with newline Pro.

Only $40 per month for unlimited access to over 60+ books, guides and courses!

Learn More

How To Monitor LLMs With Automated Alerts

Effective monitoring of large language models is crucial for performance and security, utilizing automated alerts for real-time problem detection.

Scaling Async LLM APIs: 7 Key Practices

Learn effective strategies for scaling LLM APIs, focusing on performance, resilience, and security in high-demand environments.

Ultimate Guide to Data Security in AI Workflow Automation

Explore essential strategies for securing AI workflows against data breaches, insider threats, and compliance challenges in a rapidly evolving landscape.

Checklist for LLM Compliance in Government

Ensure compliance with LLM regulations in government by following this comprehensive checklist to mitigate risks and uphold ethical standards.

MCP in Enterprise AI: Use Cases and Benefits

Explore how the Model Context Protocol (MCP) is revolutionizing enterprise AI integration, enhancing security, and improving operational efficiency.

Audit Logs for LLM Pipelines: Key Practices

Learn key practices for implementing audit logs in LLM pipelines to enhance security, ensure compliance, and improve operational efficiency.

How to Secure LLM Pipelines Against Adversarial Inputs

Learn how to safeguard LLM pipelines from adversarial attacks with effective strategies and solutions to protect sensitive data.

Fine-Tuning LLMs with Privacy in Mind

Explore essential strategies for fine-tuning large language models while prioritizing data privacy and security in compliance with regulations.

Top 7 API Security Practices for LLM Pipelines

Protect your LLM pipelines from evolving threats with these 7 essential API security practices, ensuring data integrity and operational reliability.

Hybrid Cloud vs. On-Premise LLM Deployment

Explore the advantages and challenges of hybrid cloud versus on-premise deployment for large language models, focusing on scalability, security, and cost.

Integrating LLMs with Legacy Systems: Challenges

Explore the complexities and solutions for integrating Large Language Models with legacy systems, focusing on challenges, benefits, and optimized methods.

Best Practices for API Integration in Vibe Coding

Learn essential API integration practices to ensure seamless, secure, and efficient workflows in your coding projects.

Row Level Security in NodeJS

If you are using PostgreSQL for storing data of multiple users, you might want to apply row-level security, or RLS. It’s good practice even if you are manually writing all the queries you send to your database but it’s especially important if you have any type of LLM or similar generating queries for you! Let’s create a trivial data model. Users and items, whatever that might be. Each item belongs to a user. Now, per default, if you ask the database about any users items, it will just tell you. By introducing RLS, you can limit what the responses will be to add a layer of protection. Even if you should create a buggy query, you will not accidentally get the items belonging to someone else, just like you cannot accidentally change or delete items belonging to someone else. We do that like this: