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

Multiple wrong commands in setup.sh #53

Open
gillg opened this issue Dec 29, 2022 · 3 comments
Open

Multiple wrong commands in setup.sh #53

gillg opened this issue Dec 29, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gillg
Copy link

gillg commented Dec 29, 2022

Trying to reverse engineer the script setup.sh to understand how to use this plugin, I discovered mutiple commands wrong.

  • notation key remove should be notation key delete

  • notation cert remove should be notation cert delete

  • notation key add --name $keyName --plugin azure-kv --id $keyID --kms should be notation key add --plugin azure-kv --id $keyID $keyName

  • notation cert add --name $keyName --plugin azure-kv --id $keyID --kms is not usable at all... The cert should be a local PEM imported.
    Could eventualy be :

az keyvault certificate download --encoding PEM --name $keyName --vault-name $keyVaultName --file tmpcert.pem
notation cert add --store test --type signingAuthority tmpcert.pem
@FeynmanZhou
Copy link
Member

Hi @gillg ,

Thanks for reporting this problem. This script looks outdated and should be updated to Notation RC.1. cc @duffney

@FeynmanZhou FeynmanZhou added the bug Something isn't working label Jan 3, 2023
@duffney
Copy link
Contributor

duffney commented Jan 6, 2023

Thanks for the mention @FeynmanZhou, I'll get the setup.sh updated with RC.1.

@duffney
Copy link
Contributor

duffney commented Jan 20, 2023

I've got the setup.sh updated, but ran into the same issue @gillg did with the cert add command. It doesn't look like it's used, but I'm looking into how I can add the cert from key vault. Once I figure that out, I'll submit a PR with the fixes.

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

No branches or pull requests

4 participants