Le lab oidc-sans-cle-longue-duree : aucune clé cloud dans les secrets, id-token au niveau job, une trust policy qui refuse le joker
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- aws, github-actions, python
- Bereich
- ci-cd, cloud, documentation, security
Rechercherichtung
Start with labs/securite-permissions/oidc-sans-cle-longue-duree/lab.yaml and scenario.md, then inspect challenge/, solution/, meta.yml, and tests/test_meta_declare_les_labs.py. Run the listed lab validator, actionlint, zizmor, and pinact checks to understand the current state. Done means the lab meets every checklist item, including non-green initial tests, reproducible validation, and the documented partial act coverage.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Mesuré le 2026-09-25 sur le parcours github-actions.yaml et les leçons du blog.
Lab labs/securite-permissions/oidc-sans-cle-longue-duree, module securite-permissions. Leçons éprouvées :
/docs/pipeline-cicd/github/securite/oidc//docs/pipeline-cicd/github/securite/oidc-cloud/
Les deux leçons mettent id-token: write au niveau workflow (oidc l.160, oidc-cloud l.213, 332, 458), contre la règle du niveau job qu'elles enseignent ailleurs, et oidc-cloud l.181 liste repo:owner/*:* sans avertissement.
Jouable avec act : partiel
Local : lint des workflows et de la trust policy. Plateforme et cloud : l'échange réel.
Ce qui n'est pas qu'un copier-coller
L'échange OIDC ne se joue pas sans fournisseur. Ni act ni un dépôt gratuit ne suffisent : il faut un compte cloud. Le lab prouve donc ce qui se prouve en local : aucun AWS_ACCESS_KEY_ID ni équivalent dans secrets.* des workflows, id-token: write sur le seul job qui déploie, aws-region présent (l'exemple oidc l.235 l'oublie et échouerait), et une trust policy JSON dont le sub ne porte ni repo:owner/* ni repo:owner/repo:* sur le rôle de production, vérifiée par jq. Le chemin plateforme, optionnel, lit gh api pour vérifier qu'un run a bien reçu un jeton.
Définition de terminé
-
lab.yamlrenseigné :module,doc_url,lessons,act(oui, partiel, non) etact_notesqui dit pourquoi -
scenario.mddécrit une situation et un objectif, pas un mode d'emploi ; aucun emoji, aucun tiret cadratin -
challenge/est un point de départ que l'apprenant modifie,solution/une solution de référence rejouable - chaque test lit l'état (résultat d'act, findings d'un scanner, réponse de
gh api), et le dernier exerce les deux côtés - la question « serait-il vert si l'apprenant ne faisait rien ? » a reçu non pour chaque test
-
python3 scripts/valider-labs.py --lab <id>rend 0 avant, 100 après, rejouable ; le verdict est dansvalidation-labs.json - les actions de la solution sont épinglées par SHA au tag mesuré ce jour, commentaire de version vérifié par
pinact run --check -
zizmor --offlineetactionlintrendent 0 sursolution/ - le lab est dans
meta.yml,tests/test_meta_declare_les_labs.pyest vert - quatre indices base64 de coût croissant dans
challenge/hints.yaml
- Vorherrschende Sprache
- Python
- Sterne
- 7
- Forks
- 4
- Ø Merge
- 2 T. 10 Std.
- Gemergte PRs (30 T.)
- 8
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus stephrobert/github-actions-training
-
Le lab gh-piloter-les-runs : déclencher, suivre avec --exit-status, relancer les seuls jobs en échecOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
stephrobert/github-actions-training#48 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
stephrobert/github-actions-training#47 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
stephrobert/github-actions-training#46 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 72/100
stephrobert/github-actions-training#45 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
stephrobert/github-actions-training#44 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in stephrobert/github-actions-training
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
LIF-Initiative/lif-core#1534 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug frontend good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 89/100
nikhilb2/simple_invoicing#1231 ·
-
review-panel severity:low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
kristovatlas/coin-accounting#498 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement github_actions
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
QWED-AI/qwed-verification#703 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag