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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for overriding the tenant and subscription IDs. #1384

Merged
merged 3 commits into from
Mar 24, 2022

Conversation

benashz
Copy link
Contributor

@benashz benashz commented Mar 24, 2022

The best description for this PR can be found here: #1381 (comment)

Community Note

  • Please vote on this pull request by adding a 馃憤 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Release note for CHANGELOG:


Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@@ -134,19 +146,25 @@ func azureAccessCredentialsDataSourceRead(d *schema.ResourceData, meta interface
log.Printf("[DEBUG] Successfully read %q from Vault", configPath)

subscriptionID := ""
if subscriptionIDIfc, ok := config.Data["subscription_id"]; ok {
if v, ok := d.GetOk("subscription_id"); ok {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you set line 142 that if subscription id and tenant id are defined in the provider then it doesn't need to do the vault config read at all? I don't believe it's used anywhere else in the code and would mean the token that is being used by terraform can have fewer permissions in vault as it no longer needs to read the config.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in bcb6464

@github-actions github-actions bot added size/M and removed size/S labels Mar 24, 2022
@benashz benashz added this to the 3.4.0 milestone Mar 24, 2022
@benashz benashz merged commit 121bed7 into main Mar 24, 2022
@benashz benashz deleted the VAULT-5201/d-azure-access-add-extra-fields branch March 24, 2022 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants