HTTP requests with MSW instead of mocking fetch
- Focus on user interactions and outcomes
## Security Considerations
### Authentication
- **JWT tokens** stored in HttpOnly cookies (preferred) or localStorage
- **React Query Auth
No other project uses it yet
36k2y agoReviewMountCreate a free account to mount
small local edit does not need a formal plan or new document.
- Preserve correctness, security, durability, compatibility, and user-owned work. Within those boundaries, choose the reasoning process, algorithm
36k2d agoReviewMountCreate a free account to mount
test/TESTING.md](test/TESTING.md) for the full picture. Short version:
`test/*.test.js` are **core** tests (auth, security, session) and must always
pass — they're what protects you from breaking the framework while
35k3mo agoReviewMountCreate a free account to mount
github/workflows/autoport-*.yml`). When a cherry-pick conflicts, the port must be done manually.
## Security
Netty parses untrusted network input (HTTP/1.x, HTTP/2, HTTP/3, and more), implements TLS on top of BoringSSL/OpenSSL
35k2d agoReviewMountCreate a free account to mount
code style.
- `/REVIEWING.md`: guidelines for pull requests and writing changesets.
- `/SECURITY.md`: guidelines for security.
- `/docs/architecture-decisions/`: contains the architecture decisions for the project.
All new source files
35k2d agoReviewMountCreate a free account to mount
Agent Guide for Apache Kafka
This file is read by automated agents (security scanners, code analyzers,
AI assistants) operating on this repository.
## Project overview
Apache Kafka is a distributed event
34k2mo agoReviewMountCreate a free account to mount
tools most often break.
> The audience for every cheat sheet is **developers, not security experts**. Content must be accurate, practical, concise, and opinionated. We would rather have _good_ advice
34k30d agoReviewMountCreate a free account to mount
missing authority, or an irreversible/destructive branch.
- Use absolute language only for true invariants: safety, security, side-effect boundaries, required output fields, workflow state transitions, and product contracts
34k6mo agoReviewMountCreate a free account to mount
migration, or API change. **Complex**: several areas,
native code, connection/core logic, DB migrations, or security-relevant code.
- If the change spans repos (e.g. hiddify-core), link the related PR.
## Opening
34k9mo agoReviewMountCreate a free account to mount
change, one whose correctness needs a real testing campaign, or one
that is safety-, security- or data-safety-critical. Make the offer in one
line, say why, and route
33k4d agoReviewMountCreate a free account to mount
invoked directly.
Next.js documentation explicitly states: "Treat Server Actions with the same security considerations as public-facing API endpoints, and verify if the user is allowed to perform a mutation
134 projects use a version of this
33k6mo agoReviewMountCreate a free account to mount
Makefile** (`make help`, `make binaries`, `make validatepr`); match the **Go** version in `go.mod`. **Security** issues use the private process linked from CONTRIBUTING, not public GitHub. AI-assisted contributions must follow
Steady8 mentions in 2 weeks
1 project uses a version of this
33k5mo agoReviewMountCreate a free account to mount
server, web_server, celery_X)
will be tailing their logs to this file.
## Security Considerations
- Never commit API keys or secrets to the repository
- Use the encrypted credential storage
33k2d agoReviewMountCreate a free account to mount
mock;
this also satisfies `import/first`).
- Native mocks are centralized: MMKV self-mocks, `expo-secure-store` manual mock in `__mocks__/`,
resets in `jest.setup.ts`.
- A generic fn like `apiFetch ` makes `jest.mocked()` infer
33k2d agoReviewMountCreate a free account to mount
module, factory wiring, adjacent tests, and relevant docs before editing.
2. For architecture, config, security, workflow, governance, CI, release, or agent-assisted changes, start with `docs/book/src/contributing/architecture-map.md`.
3. Name the source
No other project uses it yet
33k36d agoReviewMountCreate a free account to mount
higher versions are always welcome — use one of two lowercase prefixes instead:
```groovy
// Security: CVE-2025-12183 — lz4-java minimum patched version
// Compat: commons-lang3 3.18.0+ required by Testcontainers/commons-compress
```
- `// Security
32k10mo agoReviewMountCreate a free account to mount
description.
- Mark not-ready PRs with `WIP` and remove it when ready for review.
## Security & Configuration Tips
- Treat `config.json` as environment-specific; do not commit real API keys or private
32k8mo agoReviewMountCreate a free account to mount
inputs/compiler and regenerate; never update inventory
hashes to accept a handwritten patch.
## Security requirements for coding agents
- Never commit real API or admin keys, bearer tokens, webhook secrets, cloud
credentials
32k5d agoReviewMountCreate a free account to mount