-
Notifications
You must be signed in to change notification settings - Fork 281
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
feat: add support for ADO audit stream resources #509
base: main
Are you sure you want to change the base?
Conversation
92b54ba
to
5a58b7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ksh5022 A few changes requested.
- The import operation looks broken the sensitive data
shared_key, access_key
etc. import->plan -> apply -> plan , you will find that the diff always exists. - Can add more test to cover the import scenario. Ref: https://github.com/microsoft/terraform-provider-azuredevops/blob/main/azuredevops/internal/acceptancetests/resource_serviceendpoint_bitbucket_test.go
- Also the test case, can you provide the acctest result of the three new resources?
- Since all the audit stream can be enable/disable, can we add this for the new resources? API: https://docs.microsoft.com/en-us/rest/api/azure/devops/audit/streams/update-status?view=azure-devops-rest-6.0
- A bit concern about the property
days_to_backfill
, where can I update this config from UI web page.
azuredevops/internal/service/audit/resource_auditstream_azuremonitorlogs.go
Outdated
Show resolved
Hide resolved
azuredevops/internal/service/audit/resource_auditstream_splunk.go
Outdated
Show resolved
Hide resolved
I will implement a setStreamStatusState function to designate status of |
This is not available via the web UI, only the API. When defined with an API request, we can see an async process when re-enabling the stream from the UI. |
1e497ed
to
e373261
Compare
|
I haven't had much time lately to get back to this, but there is an issue with the flatten function on import not assigning the correct "enabled" value. Hoping to push soon. |
@ksh5022 I checked the import function, |
My test flow was
The GET request on the auditstream endpoint returns the obfuscated |
@ksh5022
|
All Submissions:
What about the current behavior has changed?
Add new resources:
azuredevops_auditstream_azureeventgrid
,azuredevops_auditstream_azuremonitorlogs
, andazuredevops_auditstream_splunk
. These will create an audit stream at the Organization level to forward logs to.Issue Number: #363
Does this introduce a change to
go.mod
,go.sum
orvendor/
?reason: add audit package from ado go library.
Does this introduce a breaking change?
Any relevant logs, error output, etc?
Other information
Modeled after
serviceendpoint
andpolicy
for commons implementation, andagent_pool
for resource id of typeint
.