aws-samples / aws-samples/lambdaedge-openidconnect-samples
Cloudfront distribution ID not known when creating secret
- Lingua principale
- JavaScript
- Stelle
- 73
- Fork
- 22
- Merge medio
- 19h 45m
- PR unite (30g)
- 1
Descrizione
One of the initials steps is to create a secret with a placeholder value. However, the secret name is:
"cloudfront/DISTRIBUTION_ID"
with DISTRIBUTION_ID to be substituted with the actual cloudfront distribution ID
doc: https://github.com/aws-samples/lambdaedge-openidconnect-samples/blob/master/docs/baseconfiguration.md
Previously the secret name was to be placed in a sm-key.txt file. Looks like this has changed and the secret is simply
"cloudfront/DISTRIBUTION_ID"
The code has been updated to look for this value. https://github.com/aws-samples/lambdaedge-openidconnect-samples/blob/master/src/js/auth.js#L241
However, the distribution_ID is not know when the secret is created. And, the secret ARN must be provided to deploy the stack (circular dependency).
Am I missing something?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da docs/baseconfiguration.md e dalla ricerca in src/js/auth.js intorno alla riga 241. Traccia quando l’ID della distribuzione CloudFront e l’ARN del secret diventano disponibili durante il deployment dello stack, quindi conferma un workflow documentato che eviti la dipendenza circolare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, javascript
- Ambito
- cloud, devops
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 28/100