microsoft / microsoft/terraform-provider-msgraph

[Feature Request] write only body attribute for msgraph_update_resource

Open
#115 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
65
Forks
25
Avg merge
3d 10h
Merged PRs (30d)
6

Description

I am currently trying to provision application proxy applications through msgraph. To upload a certificate to msgraph I would have to send a secret in the body. This secret should not be saved to state. As the update resource is only executed once I guess it would not be necessary to save the complete value in state using a version number for the diff would be sufficient.

Proposal

Add the following attributes to msgraph_update_resource:

  body_wo         = string
  body_wo_version = number
Benefits

It would be possible to get secret values from for example ephemeral "azurerm_key_vault_secret" and send them to msgraph.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the msgraph_update_resource entry point and inspect how body values and version numbers are persisted in state. Trace the existing update behavior, then verify that body_wo and body_wo_version allow a secret body to be sent to Microsoft Graph without retaining it in state, with version changes triggering updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, terraform
Domain
api, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.