Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

[HOUSEKEEPING] Remove/Comment Out resources related to key vault for … #458

Merged
merged 5 commits into from
Mar 26, 2020

Conversation

dennisseah
Copy link
Collaborator

…introspection

closes microsoft/bedrock#1243

@samiyaakhtar, Please let me know if it is ok to comment out code; or you want to remove them. thanks

{
"arg": "-k, --key-vault-name <key-vault-name>",
"description": "Name of the Azure key vault"
},
{
"arg": "--service-principal-id <service-principal-id>",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are service-principal-id, service-principal-password, tenant-id and subscription-id still being used elsewhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the onboard command these are used to create account service and table. Isn't this the case?

Copy link
Collaborator

@samiyaakhtar samiyaakhtar Mar 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The presence of these in config file makes them look mandatory for other commands as well. Perhaps in future we should revisit whether or not the config file should have four of these.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are not in config file, these are option values for onboard command only

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i missed these, should I remove them to avoid confusion?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for now we can leave them since I believe the onboard command takes them either through config file or through the command itself. Although since it's a one time command, it shouldn't rely on the config file. I'll open a separate discussion for that :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The service principal related options are used to authenticate with Azure to create storage account and table if they don't exist. Deleting these options make this command not consistent with other commands to pass all required values without depending on config.yaml.

@samiyaakhtar
Copy link
Collaborator

Personally, I prefer removing lines of code that link to things that we don't plan to use since it appears like a user error if things are commented out, but we can leave the keyvault files as is. Does anyone have a preference on how to unlink some code for the moment until we need keyvault again? cc @sarath-p @evanlouie @bnookala

@dennisseah
Copy link
Collaborator Author

Personally, I prefer removing lines of code that link to things that we don't plan to use since it appears like a user error if things are commented out, but we can leave the keyvault files as is. Does anyone have a preference on how to unlink some code for the moment until we need keyvault again? cc @sarath-p @evanlouie @bnookala

I will remove the code. I also think that it is right thing to do

@dennisseah dennisseah merged commit 59572ef into master Mar 26, 2020
@dennisseah dennisseah deleted the issue1243 branch March 26, 2020 20:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the use of keyvault for spk deployment onboard from docs and command
4 participants