storage-secrets-ingress
Use LeptonAI storage/file, secret, ingress routing, access controls, and mount/env/secret parsing safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- storage-secrets-ingress
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use LeptonAI storage/file, secret, ingress routing, access controls, and mount/env/secret parsing safely.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/ingress-and-routing.md7.4 KB
- 参考文档references/mounts-env-secrets.md6.5 KB
- 参考文档references/storage-and-secrets.md7.3 KB
- 参考文档references/troubleshooting.md5.3 KB
- 脚本scripts/validate_mounts_env.py10.9 KB
03 SKILL.md 正文
storage-secrets-ingress
Use this sub-skill when a LeptonAI task involves workspace file storage, secrets, ingress/domain routing, canary endpoint weights, endpoint access-control flags, or validating storage mount/env/secret strings before a workload command.
Route here for
lep storage ...file-system commands and the hiddenlep file ...alias.- Storage operations:
upload,download,rm,rmdir,mkdir,du,ls, andls-file-system. lep secret create/list/removeplanning, redaction, and secret-to-env references.lep ingress list/create/get/delete/add-endpoint/remove-endpoint/update-endpoint/set-endpointsplanning.- Canary routing with relative ingress weights and safe rollout/rollback command sequences.
- Endpoint access-control review involving
--public,--ip-whitelist, and--tokens. - Mount strings of the form
FROM_PATH:MOUNT_PATH:VOLUME, includingnode-localandnode-nfs:<storage_name>. - Preflight parsing of
--mount,--env,--secret, IP allowlist, token, and complete ingress endpoint-list plans without contacting Lepton.
Route elsewhere
- Creating, updating, stopping, deleting, or scaling endpoints/jobs/pods/Ray/fine-tune workloads themselves: use
workload-managementand return here only for storage, secret, mount, ingress, or access-control details. - Login, workspace selection, credential persistence, or token refresh: use
workspace-and-auth. - Python SDK endpoint calls and
APIClientprogramming patterns not specific to storage/secret/ingress resource methods: usesdk-client. - General
lepcommand discovery, shell safety, and top-level CLI behavior: usecli-operations.
Required safety posture
Lepton storage, secret, ingress, and endpoint access-control commands are workspace-scoped cloud operations. Do not run list/create/update/delete/upload/download commands unless the user has authorized the live workspace operation. Before any mutation or data transfer, produce a read-first plan, name the target resource/path/domain, ask for confirmation, and redact tokens and secret values.
Prefer these bundled references:
- storage-and-secrets.md for file-storage and secret workflows.
- ingress-and-routing.md for ingress lifecycle, canary weights, and access-control interplay.
- mounts-env-secrets.md for mount, env, secret, IP allowlist, token, and endpoint-list preflights.
- troubleshooting.md for destructive replacements, path-confirmation errors, redaction, and delete safeguards.
Quick safe preflight
Use the bundled parser before building workload or ingress commands:
python scripts/validate_mounts_env.py \
--mount ./data:/mnt/data:node-local \
--mount storage-cache:/cache:node-nfs:my-nfs \
--env MODE=production \
--secret API_KEY \
--ip-whitelist 203.0.113.0/24 \
--existing-endpoint stable:100 \
--set-endpoint stable:90 \
--set-endpoint canary:10
The script performs only local parsing/linting. It never opens a Lepton workspace client and never transfers data or mutates cloud state.
Minimal mutation checklist
- Identify the exact live target: storage path/file-system, secret name, ingress domain/name, endpoint name, or complete endpoint list.
- Run a read command first when authorized:
lep storage ls ...,lep secret list,lep ingress get -n ..., or the workload status route. - Validate local syntax with
scripts/validate_mounts_env.pywhen mounts/env/secrets/IP allowlists orset-endpointsare involved. - Ask for explicit confirmation for
upload,downloadoverwrites,rm,rmdir,secret remove,ingress delete,remove-endpoint, and especiallyset-endpoints. - Execute only the confirmed command; do not print secret values or literal access tokens in logs.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).