replit-security-basics

Featured

Apply Replit security best practices: Secrets management, REPL_IDENTITY tokens, Auth headers, and public Repl safety. Use when securing API keys, validating request identity, or auditing Replit security configuration. Trigger with phrases like "replit security", "replit secrets", "secure replit", "replit public safety", "replit identity token".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Replit Security Basics ## Overview Security best practices for Replit: Secrets (AES-256 encrypted env vars), REPL_IDENTITY token verification, Auth header trust model, public Repl exposure risks, and Secret Scanner protection. ## Prerequisites - Replit account with Workspace access - Understanding of environment variables - Deployed app (for Auth security) ## Instructions ### Step 1: Secrets Management Replit Secrets are AES-256 encrypted at rest with TLS in transit. Keys rotate regularly. Two scopes: ```markdown App-level secrets: Specific to one Repl (lock icon in sidebar) Account-level secrets: Apply across all your Repls (Account Settings > Secrets) ``` ```typescript // Validate all required secrets at startup — fail fast const REQUIRED = ['DATABASE_URL', 'JWT_SECRET', 'API_KEY']; const missing = REQUIRED.filter(k => !process.env[k]); if (missing.length) { console.error(`Missing secrets: ${missing.join(', ')}`); console.error('Add them in the Secrets tab (lock icon in sidebar)'); process.exit(1); } ``` **Secret Scanner**: Replit detects when you paste API keys into code files and warns you to store them as Secrets instead. Never dismiss this warning. ### Step 2: Public Repl Safety Replit Repls are **public by default** on free plans. Your source code is visible to anyone. ```python # CRITICAL: Never hardcode secrets in source files # BAD — visible to anyone who views your Repl API_KEY = "sk-live-abc123" # exposed! # GOOD — use Replit Secrets import os A...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

replit-policy-guardrails

Enforce security and resource policies for Replit-hosted apps: secrets exposure prevention, resource limits, deployment visibility, and database access controls. Use when hardening a Replit app for production, auditing security posture, or setting up guardrails for team development. Trigger with phrases like "replit policy", "replit guardrails", "replit security audit", "replit hardening", "replit best practices check".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-known-pitfalls

Avoid the top Replit anti-patterns: ephemeral filesystem, public secrets, port binding, Nix gotchas, and database limits. Use when reviewing Replit code, onboarding developers, or auditing existing Replit apps for common mistakes. Trigger with phrases like "replit mistakes", "replit anti-patterns", "replit pitfalls", "replit what not to do", "replit code review".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-data-handling

Implement secure data handling on Replit: PostgreSQL, KV Database, Object Storage, and data security patterns. Use when handling sensitive data, connecting databases, implementing data access patterns, or ensuring secure data flow in Replit-hosted applications. Trigger with phrases like "replit data", "replit database", "replit PostgreSQL", "replit storage", "replit data security", "replit GDPR".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-reference-architecture

Implement Replit reference architecture with best-practice project layout, data layer, and deployment. Use when designing new Replit apps, reviewing project structure, or establishing architecture standards for production Replit applications. Trigger with phrases like "replit architecture", "replit best practices", "replit project structure", "how to organize replit", "replit production layout".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-install-auth

Set up a Replit project with .replit + replit.nix configuration, Secrets, and Replit Auth. Use when creating a new Replit App, configuring Nix packages, managing secrets, or adding user authentication with Replit Auth. Trigger with phrases like "setup replit", "replit auth", "replit nix config", "replit secrets", "configure replit", "new replit project".

2,266 Updated today
jeremylongshore