

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
12345# System.Net.Security — Folder-Specific Guidance67## SslStream Lifecycle89- SslStream wraps an inner stream — disposal must flush pending data, send TLS close_notify, and dispose the inner stream if owned10- AuthenticateAsClientAsync/AuthenticateAsServerAsync must not be called more than once; guard against re-authentication on an already-authenticated stream11- SslStream read/write operations must handle TLS record boundaries — a single TLS record may span multiple inner stream reads12- Renegotiation (TLS 1.2) and post-handshake auth (TLS 1.3) have different flows — do not conflate them1314## Certificate Validation1516- The default certificate validation callback must enforce chain trust and hostname matching — never bypass validation silently17- Custom RemoteCertificateValidationCallback must receive the full chain and SslPolicyErrors so callers can make informed decisions18- Certificate selection (LocalCertificateSelectionCallback) must handle cases where no matching certificate is available19- Client certificate authentication requires that the private key is accessible — handle CryptographicException gracefully2021## TLS Version and Cipher Handling2223- Default to the highest mutually supported TLS version — do not hardcode a specific version24- SslProtocols.None means "let the OS decide" and is the preferred default25- ALPN negotiation results must be checked after handshake — a mismatched protocol should fail early, not produce corrupt data26- When testing TLS behavior, cover minimum version enforcement and disabled protocol rejection2728## Cross-Platform PAL (SChannel / OpenSSL / Apple Security)2930- SChannel (Windows), OpenSSL (Linux), and Apple Security (macOS) have different API surfaces — changes to the managed layer must be tested on all three31- OpenSSL context caching (SslContexts) must handle concurrent access and expiration correctly32- Certificate store access differs per platform — Windows uses the system store, Linux uses file-based stores, macOS uses Keychain33- Native TLS errors must be mapped to AuthenticationException with platform-specific inner exceptions preserved3435## Credential and Session Caching3637- TLS session resumption state must not leak across security boundaries (different hosts or certificate requirements)38- CredentialCache and credential lifecycle must be managed carefully — stale credentials cause silent authentication failures39- Do not cache negotiated security parameters beyond the lifetime of the owning SslStream4041## Performance4243- Avoid allocating during the TLS read/write hot path — pre-allocate TLS record buffers44- Minimize managed-to-native transitions during bulk data transfer by batching reads/writes at the TLS record level45- Handshake allocations are acceptable — optimize the steady-state data transfer path4647## Security Defaults4849- Never log private keys, session tickets, or pre-master secrets in any trace or diagnostic output50- Certificate pinning or validation bypass must require explicit opt-in — secure defaults are non-negotiable51- Ensure downgrade attacks (forcing weaker TLS versions) are prevented by the default configuration52
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| dotnet/runtime.github/copilot-instructions.md · 18k | Copilot instructions | buildteststylearch+2 | 78/100 | 14 days ago | |
| dotnet/runtime.github/instructions/cdac.instructions.md · 18k | Copilot instructions | typesgitapidocs | 52/100 | 14 days ago | |
| dotnet/runtime.github/instructions/compression.instructions.md · 18k | Copilot instructions | testlint-formatstylesecurity+1 | 60/100 | 14 days ago | |
| dotnet/runtime.github/instructions/conventions.instructions.md · 18k | Copilot instructions | stylearchagent-behaviourdocs | 56/100 | 7 days ago | |
| dotnet/runtime.github/instructions/core-runtime.instructions.md · 18k | Copilot instructions | styleperformance | 43/100 | 14 days ago | |
| dotnet/runtime.github/instructions/csharp.instructions.md · 18k | Copilot instructions | lint-formatstylearchsecurity+3 | 59/100 | 7 days ago | |
| dotnet/runtime.github/instructions/extensions-caching.instructions.md · 18k | Copilot instructions | styleperformanceagent-behaviour | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-common.instructions.md · 18k | Copilot instructions | styledependencies | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-configuration.instructions.md · 18k | Copilot instructions | no sections | 44/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-di.instructions.md · 18k | Copilot instructions | teststyletesting-strategy | 52/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-hosting.instructions.md · 18k | Copilot instructions | teststyleagent-behaviour | 52/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-logging.instructions.md · 18k | Copilot instructions | securityperformance | 44/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-options.instructions.md · 18k | Copilot instructions | style | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/illink.instructions.md · 18k | Copilot instructions | no sections | 16/100 | 7 days ago | |
| dotnet/runtime.github/instructions/jit.instructions.md · 18k | Copilot instructions | buildgit | 29/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-common.instructions.md · 18k | Copilot instructions | styledependenciesapi | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-interop.instructions.md · 18k | Copilot instructions | stylearchperformance | 56/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-quic.instructions.md · 18k | Copilot instructions | teststyleperformance | 56/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-sockets.instructions.md · 18k | Copilot instructions | styleagent-behaviour | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-security-cryptography.instructions.md · 18k | Copilot instructions | stylesecurity | 48/100 | 8 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| dotnet/roslyn.github/instructions/Compiler.instructions.md · 21k | Copilot instructions | buildteststylearch+3 | 99/100 | 7 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 14 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/dotnet-runtime-github-instructions-system-net-security-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.
Directory