magodo
2dcb4e926f
RG mode: Two step list, rg itself (incl. ext), then resources (incl. ext) in it ( #576 )
2024-11-12 15:40:39 +11:00
magodo
6478cf6dff
RG mode: uses `azlist` with rg included, with special handling for empty rg ( #574 )
2024-11-11 18:44:58 +11:00
magodo
986322f6b0
Update dep for aztft (to support azurerm v4.5.0) ( #568 )
2024-10-16 16:41:45 +08:00
magodo
3fe321129f
Update tfadd to support azapi v2 ( #567 )
2024-10-16 13:00:29 +08:00
magodo
04d0e973fb
Setup the env var only provider configs for tfclient ( #566 )
2024-10-16 11:47:40 +08:00
magodo
1c6fc070c8
Query mode: Supports `--arg-table` and `--arg-authorization-scope-filter` ( #565 )
...
* Query mode: Supports `--arg-table` and `--arg-authorization-scope-filter`
* tidy
* CI: gosec
* Revert "CI: gosec"
This reverts commit c9972800f1
.
2024-09-27 11:30:29 +08:00
magodo
62200657aa
skip rp register different handling for diff providers ( #563 )
2024-09-10 10:22:21 +08:00
magodo
7f69025c83
Using `resource_provider_registrations` to skip registration of RP ( #562 )
2024-09-06 08:54:24 +08:00
magodo
d593fa6db2
update gosec ( #561 )
...
* update gosec
* update
* update
* update
2024-09-05 10:53:18 +08:00
magodo
ee37f13dc7
Return error for non-existent resources when using terraformless export ( #560 )
...
* tfclient import raise error if resource read returns nil
* remove nonsense change
2024-09-04 10:55:00 +08:00
magodo
4f9996840c
Wrapping azlist error ( #559 )
2024-09-03 17:16:07 +08:00
magodo
fb59eac703
Update deps to support azurerm v4.0.1 and azapi v1.15.0 ( #558 )
2024-08-30 20:46:32 +08:00
magodo
f1f6ccee9a
Behavior change of `--overwrite` to avoid deleting user files ( #553 )
2024-08-13 11:07:49 +08:00
magodo
1aaa68bd43
`aztfexport res` supports multiple resources ( #552 )
2024-08-09 16:11:52 +08:00
magodo
6886573fcf
New option: `-mask-sensitive` to allow masking sensitive attributes ( #551 )
2024-08-09 12:00:30 +08:00
magodo
155b4b7704
Add `Set[Pre|Post]ImportHook` to BaseMeta interface ( #548 )
...
* Add Set[Pre|Post]ImportHook to BaseMeta interface
* Modify callback signature
2024-08-06 15:46:14 +08:00
magodo
5743ff535d
Support full set of authentication configuration flags ( #546 )
...
* Config: Add `AuthConfig`, together with a bunch of new flags
1. Flag `-use-environment-cred` is removed
1. The default credential behavior is:
It attempts to authenticate with each of these credential types, in the following order, stopping when one provides a token:
- ClientSecretCredential
- ClientCertificateCredential
- OIDCCredential
- ManagedIdentityCredential
- AzureCLICredential
1. In terms of provider, the new auth flags have lower precedence than the `-provider-config`
1. `use-managed-identity-cred`, `use-azure-cli-cred`, `use-oidc-cred` are not exclusive, which impact the default credential behavior now (if `false`, it will be skipped)
1. List all the newly added flags
* Fix certificate issue
* More detailed error message
* Update error
* tidy
* clean up
2024-07-30 11:40:24 +08:00
magodo
d8b7462eea
Cred scan v3 ( #543 )
...
* Pipeline: Update credscan to v3
* test
* Revert "test"
This reverts commit fc3a2dd3a5
.
* update
* Disambiguate name
2024-07-22 17:11:46 +08:00
magodo
36ec0f21ae
Pipeline: Update credscan to v3 ( #542 )
...
* Pipeline: Update credscan to v3
* test
* Revert "test"
This reverts commit fc3a2dd3a5
.
* update
2024-07-22 17:06:11 +08:00
magodo
b5185d6945
Internal: Split the ImportCallback to PreImportHook and PostImportHook, also add a new parameter `startTime` ( #541 )
2024-07-19 15:07:15 +08:00
magodo
26291d6484
Update github.com/hashicorp/hc-install to v0.7.0 to solve CVE issues ( #538 )
...
- CVE-2023-49569 in github.com/go-git/go-git/v5 v5.10.1
- CVE-2023-49568 in github.com/go-git/go-git/v5 v5.10.1
- GHSA-9763-4f94-gfch in github.com/cloudflare/circl v1.3.3
2024-07-09 11:00:41 +08:00
magodo
dffe083c6d
Update dep for modules have no license ( #530 )
2024-07-03 09:57:28 +08:00
magodo
6c502cade4
Update azlist & move global logger to meta wise ( #537 )
2024-07-03 09:39:48 +08:00
magodo
6b18fe05ab
Cfg: Add `ImportCallback` to allow caller inspect import status ( #536 )
...
* Cfg: Add `ImportCallback` to allow caller inspect import status
2024-07-02 08:13:08 +08:00
magodo
dd9c5fa3c7
Merge pull request #534 from magodo/slog
...
Changing the logger type to `slog.Logger`
2024-06-14 16:20:13 +08:00
magodo
9e046f0745
use full commit sha
2024-06-14 16:04:59 +08:00
magodo
d5e1788961
pin gosec to an unreleased version to fix regressions
2024-06-14 16:01:25 +08:00
magodo
8b784e30ef
update workflow
2024-06-14 12:58:44 +08:00
magodo
7da7c849f7
update workflow
2024-06-14 12:50:47 +08:00
magodo
d699334348
Downgrade required go version to 1.21
2024-06-14 11:14:50 +08:00
magodo
0ae1a1a0f9
update gosec
2024-06-14 10:48:39 +08:00
magodo
4e74041598
CI: go version 1.19 -> 1.22
2024-06-14 10:42:45 +08:00
magodo
bd8077532b
Changing the logger type to `slog.Logger`
2024-06-14 10:31:11 +08:00
magodo
2d4d133bc8
TODO: hclog from slog
2024-06-13 19:50:44 +08:00
magodo
523f5b841b
Adding CoC file ( #528 )
2024-05-22 10:50:24 +08:00
magodo
cb650f0262
Update aztft to include population of lb probe & rule ( #524 )
2024-04-29 10:37:04 +08:00
magodo
f492475b7c
New option: `--generate-import-block` to allow users to select whether to generate the import.tf ( #516 )
2024-04-12 13:06:39 +08:00
magodo
30936e87a3
Update aztft&tfadd for v3.99.0 ( #517 )
2024-04-12 13:05:53 +08:00
magodo
0368a576eb
Remove the pipeline file in favor of internal OneBranch pipeline ( #511 )
2024-03-28 16:27:06 +08:00
magodo
4794bdaf0b
Test telemetry app id be consistent as the non-test one ( #510 )
2024-03-27 09:57:17 +08:00
magodo
d04d1475e8
Update github.com/hashicorp/terraform-exec ( #509 )
2024-03-18 13:34:03 +08:00
magodo
d2f439027e
Fix cross RP parent-child dependency ( #505 )
2024-02-27 13:40:03 +08:00
magodo
9f26a4deae
CI: Add SBOM task ( #492 )
...
* CI: Add SBOM task
* customize
* update
2024-02-19 13:45:42 +08:00
magodo
7acadac4b4
Fix `rg` mode not export empty resource group ( #500 )
2024-02-06 14:35:39 +08:00
magodo
a1373a6381
Provider initialization using the terraform-client-import updates to adopt for azapi ( #474 )
...
* Provider initialization using the terraform-client-import updates to adopt for azapi
* update
2023-11-16 16:26:44 +08:00
magodo
fb772ba9d0
Fix flag description telemetry issue ( #472 )
...
* Fix flag description telemetry issue
* remove quotes
2023-11-08 17:31:00 +08:00
magodo
c6e0cf187f
`rg` and `query` modes add new option: `--include-role-assignment` & `query` mode add new option `--include-resource-group` ( #468 )
2023-11-03 09:50:56 +08:00
magodo
8358f7d678
Update the `ClientOptions.Telemetry.ApplicationID` to append the provider name, which is used in the `User-Agent` request header ( #467 )
2023-11-01 08:17:52 +08:00
magodo
a035554d03
Provider block existance check for azapi
2023-10-26 18:09:14 +08:00
Steven
1bbab84377
Merge pull request #465 from magodo/azapi_partial_tfadd
...
Update `tfadd` to make azapi export more useful & UI adpotion for azapi
2023-10-25 14:23:33 -07:00