Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Er dokumentasjon på --prod flagg i "eksport key" korrekt? #204

Closed
prange opened this issue Mar 6, 2025 · 1 comment · Fixed by #206
Closed

Er dokumentasjon på --prod flagg i "eksport key" korrekt? #204

prange opened this issue Mar 6, 2025 · 1 comment · Fixed by #206
Labels
kind/bug Something isn't working

Comments

@prange
Copy link

prange commented Mar 6, 2025

Description of the bug

I dok så står det:

 -p, --prod           Generate PROD keys. Defaults to true unless --test is specified.```

Men når jeg kjører kommando får jeg testnøkkel uten flagg, og prodnøkkel med --prod flagg.

Det kan også se ut som om --prod flagget er default false i koden:

description: "Generate PROD keys. Defaults to true unless --test is specified.");

Steps To Reproduce

  1. Lag en nøkkel med altinn-jwks create <navn>
  2. Eksporter nøkkel med altinn-jwks eksport key <navn>
  3. Observer at eksportert nøkkel har kid -TEST-yyyy-MM-dd
  4. Eksporter nøkkel med altinn-jwks eksport key <navn> --prod
  5. Observer at eksportert nøkkel har kid -PROD-yyyy-MM-dd

Faktisk oppførsel er slik man egentlig skulle forvente, men altså ikke i tråd med dokumentasjon.

Additional Information

No response

@prange prange added the kind/bug Something isn't working label Mar 6, 2025
@Alxandr
Copy link
Contributor

Alxandr commented Mar 6, 2025

Dette er copy-pasta fra CreateCommand, så du har helt rett at det er feil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants