Commit Graph

346 Commits (1298fcd41259c2cf66306cce2453efd2c19f445d)

Author SHA1 Message Date
Graham Davison 58a7f3dffb Moves assume role tests with inline parameters into separate test
3 years ago
Graham Davison de055b0ede Adds nested `assume_role` attribute and deprecates inline fields related to assume role
3 years ago
Graham Davison 84edaaed57
Merge pull request #33571 from hashicorp/s3/add-legacy-acceptance-tests
3 years ago
Sebastian Rivera dceb8453af
Merge pull request #33492 from hashicorp/cli-team/saved-cloud-plans
3 years ago
Sebastian Rivera 08e58fd484 Fix saved plan test regressions, fixtures
3 years ago
Graham Davison 5588603822
Merge pull request #33534 from hashicorp/s3/update-configschema
3 years ago
Graham Davison 8564a5bf0e Fixes type of parameter `skip_credentials_validation`
3 years ago
Graham Davison 47fc769da9 Adds tests for region
3 years ago
Graham Davison f3ce646756 Adds authentication tests
3 years ago
Sebastian Rivera 31cf55fe12 Reword error message when using local exec
3 years ago
Nick Fagerlund f9d937a4dd Apply a confirmable run when given a saved cloud plan (#33270)
3 years ago
Brandon Croft c1a730314d
Relocate localterraform.com aliasing to backend configurators
3 years ago
Liam Cervante 6882dd9530
testing framework: introduce test command optional flags (#33504)
3 years ago
Graham Davison 344e9de6b9 Linting fixes
3 years ago
Liam Cervante f74a8d16cf
[testing framework] implement expect_failures functionality (#33443)
3 years ago
Graham Davison d179b686d9 Consolidates endpoint tests
3 years ago
Graham Davison 2f00c86255 Adds endpoint tests when configured in configuration
3 years ago
Graham Davison 90c10ebbe9 Removes redundant ARN parsing
3 years ago
Graham Davison 29e14d148b Reorders `skip_...` parameters
3 years ago
Graham Davison c3f4f9cedd Fixes region validation
3 years ago
Graham Davison 454eed63e7 Adds KMS Key validation
3 years ago
Graham Davison 2fda09aab2 Updates attribute validation messages
3 years ago
Graham Davison e8c7722d3e Restores conflict between `kms_key_id` and envvar `AWS_SSE_CUSTOMER_KEY`
3 years ago
Graham Davison 827d7bd384 Combines `sse_customer_key` and `AWS_SSE_CUSTOMER_KEY` validation
3 years ago
Graham Davison 4eaa44c5a5 Adds functions for clearing all envvars
3 years ago
Graham Davison 2d12f242c7 Adds checks for not getting validation errors when they are expected
3 years ago
Graham Davison 95eb523c02 Sets service endpoints from envvar and adds tests
3 years ago
Graham Davison 8d018cfef3 Adds test for setting region from envvars
3 years ago
Graham Davison 9bea21e8b2 Moves schema to `ConfigSchema` and removes references to legacy schema
3 years ago
Graham Davison 467e6256da Moves configuration to `Configure`
3 years ago
Graham Davison 381006742b Moves validation to `PrepareConfig`
3 years ago
Graham Davison b5de540643 Fully populates schema values
3 years ago
Graham Davison 9257dfa8a7 S3 backend: Adds tests for defaults and validation
3 years ago
James Bardin cf5ebaf685 s/Schemas/ProviderSchema/
3 years ago
James Bardin 36d34135ad replace remaining types in tests
3 years ago
James Bardin 4e8dd5866c update schemas type
3 years ago
James Bardin 53901a7e62 Add basic global schema cache
3 years ago
Alisdair McDiarmid ad2298b114
Merge pull request #33108 from unRob/patch-1
3 years ago
Roberto Hidalgo 8e5a66b2f5
use multierror.Append instead of `append`
3 years ago
Roberto Hidalgo 787cc693cd
use go-multierror instead of manually joining error reasons
3 years ago
Brandon Croft 19b17ad0a2
remote: when saving state, create a pending state version then upload
3 years ago
guimin.hgm ce8790c939 backend/oss: Removes the deprecated warning for configuraion variable assume_role
3 years ago
CJ Horton 8a3f4e903b generating configuration is not allowed with the remote backend
3 years ago
CJ Horton cdce4c4a6d write generated config when using the cloud integration
3 years ago
Liam Cervante 07aa7ee1d5
Propagate generated config filename into the Terraform graph (#33255)
3 years ago
Martin Atkins efdc6e52bc cloud: Skip intermediate state snapshots in Terraform Cloud/Enterprise
3 years ago
Martin Atkins 8884bef59d backend/local: Allow storage impls to customize intermediate persistence
3 years ago
kmoe b4d1146f58
plannable import: improve gen config human plan output (#33194)
3 years ago
Liam Cervante d5fed58fc5
plannable import: write generated config to out flag (#33186)
3 years ago
hashicorp-copywrite[bot] 325d18262e [COMPLIANCE] Add Copyright and License Headers
3 years ago
Roberto Hidalgo 1b7f772f8b
fix breaking code
3 years ago
Roberto Hidalgo 0dda1d5c61
Return debuggeble CAS errors on consul state put
3 years ago
Alisdair McDiarmid 0ffdd07980 Fix goimports discrepancies
3 years ago
Rémi Lapeyre af571b2642
Improve environment variable support for the pg backend (#33045)
3 years ago
Glenn Sarti 7e2e834aff
Emit warnings for certain run events in cloud backend (#33020)
3 years ago
Liam Cervante 9c87006c34
checks: hide check diagnostics during plans that will not wait for approval (#32938)
3 years ago
janaurka 1f603b1a7f
backend/pg: Accept connection string in PGDATABASE environment variable
3 years ago
James Bardin c02e7e8754 return early from opPlan when the plan is nil
3 years ago
Martin Atkins f0de9b60c1 backend/local: Periodically persist intermediate state snapshots
3 years ago
Yin Luo e9b066f514
Support assume role for cos backend (#32631)
3 years ago
megan07 d7d8a2262c
Merge pull request #32557 from bharathkkb/gcs-backend-impersonate-envvar
3 years ago
James Bardin 1307317457
Merge pull request #32614 from yardbirdsax/fix/30670
3 years ago
Joshua Feierman d45ebfbdef chore: clean-up tests & logging
3 years ago
Joshua Feierman 2576544db8 fix: remote state behavior
3 years ago
Brandon Croft 81a4e5ae44
Backport support for generic hostname to backend/remote
3 years ago
Sheridan C Rawlins 75e5ae27a2
[fixes 31700] Add mTLS support for http backend by way of client cert & key, as well as enterprise cacert. (#31699)
3 years ago
bharathkkb 05ff3c3278 Add a GCS backend specific env var for impersonation
3 years ago
James Bardin 721df0e68d
Merge pull request #32395 from hashicorp/jbardin/plan-output-on-error
3 years ago
James Bardin 3cda7a0269
Merge pull request #29520 from ComBin/main
3 years ago
James Bardin 5aa088e385 remove -always-out
3 years ago
Martin Atkins 4660dacd59 command: Prototype of handling errored plans
3 years ago
xiaozhu36 ec62ca1b70 backend/oss: Ignore the getting oss endpoint error and using string concat instead; Improves the error message level
3 years ago
James Bardin 79175b29f3
Merge pull request #32261 from sivchari/fix-prealloc
3 years ago
Jarrett Spiker 1dafd7c0b1 Fix test compilation errors caused by interface change
3 years ago
Jarrett Spiker 060255a9d5 Use safe or force workspace delete for cloud backend
3 years ago
sivchari ef4798de8e fix: pre allocate for composite literal
3 years ago
Paschalis Tsilias 4cb355f3d6 S3 Backend : Bucket key should not contain trailing slash
4 years ago
Tom Bamford ff68c8d129
Merge pull request #31966 from kschu91/feature/azure-generic-oidc
4 years ago
Tom Bamford 82c0b440dc
Fix default values
4 years ago
Sarah French 89ef27d3b4
Add Private Service Connect endpoint support to GCS backend (#31967)
4 years ago
Kevin Schu 5842950291 Added support for generic OIDC authentication (eg. Gitlab) and ensure documentation is more clear about it´s usage. oidc_request_url and oidc_request_token are meant to be used for Github Actions only.
4 years ago
Sarah French d43ec0f30f
Add customer-managed encryption key (KMS) support to GCS backend (#31786)
4 years ago
James Bardin 522556534d
remove deprecated backends (#31711)
4 years ago
Megan Bang bddf6a9b34 updating to use the latest version of cloud/state.go and just pass schemas along to PersistState in the remote state
4 years ago
Megan Bang 4fab46749a update persist state
4 years ago
Brandon Croft e1fa690879
style: goimports fixes
4 years ago
Brandon Croft c33c8b013f
fix: have `terraform output` adhere to authorization w/ cloud
4 years ago
Anna Winkler d72911a640 Save detailed type outputs to JSONStateOutputs
4 years ago
hellertang 0dbf0711a0
cos backend support accelerate (#31425)
4 years ago
Tom Bamford dc1f5bccf8
Merge pull request #31070 from hashicorp/f/removing-adal-auth
4 years ago
James Bardin 96c720517f fixup broken test fixtures
4 years ago
James Bardin d61d3e9fd8 remove deprecated etcdv3 backend
4 years ago
James Bardin 953c448f9a add simple error indicating backend removal
4 years ago
James Bardin 799ab6c951 remove deprecated etcd backend
4 years ago
Nicolas Vanheuverzwijn bb1c134b94 http-backend: http backend lock error return LockError instead of generic error
4 years ago
Kagashino cab6cee385 fix: backend/cos - remove cos object write lock either when unlock state file
4 years ago
James Bardin 0c7d39aca5 deprecate unmaintained backends
4 years ago
tombuildsstuff 05528e8c8a backend/azurerm: removing ADAL support
4 years ago
Anna Winkler 22c121df86
Bump compatibility version to 1.3.0 for terraform core release (#30988)
4 years ago
James Bardin df0a70bfb6 check for cancellation before apply confirmation
4 years ago
Tom Bamford d08bc4463d
Azure Backend: support OIDC authentication
4 years ago
Keith Clawson 23dffee568 Always use token in backend config when provided
4 years ago
Tom Harvey 2eb9118cd1
backend/remote-state/azure: defaulting the Azure Backend to use MSAL (#30891)
4 years ago
Eng Zer Jun fedd315275
test: use `T.TempDir` to create temporary test directory (#30803)
4 years ago
Lars Lehtonen 88c9b90c93
internal/backend/remote-state/oss: fix dropped error (#30352)
4 years ago
Luces Huayhuaca bdc7d8c0a1
Upgrade go-tfe dependency to use 1.0 version. It contains breaking changes, so we are updating method signatures, method names and the type of optional parameters, as needed. (#30626)
4 years ago
Theo Chupp d15a2bc024
fix: local variables should not be overridden by remote variables during `terraform import` (#29972)
4 years ago
Krista LaFentres (she/her) 6dcf00aefc
Merge pull request #30344 from hashicorp/lafentres/refactor-show-command
4 years ago
Krista LaFentres 64e1241ae3 backend/local: Remove unused DisablePlanFileStateLineageChecks flag
4 years ago
Martin Atkins 36c4d4c241 core and backend: remove redundant handling of default variable values
4 years ago
Alisdair McDiarmid 768741c0f7 command/show: Disable plan state lineage checks
4 years ago
James Bardin 8c4031ef15 don't persist a nil state from Apply
4 years ago
Chris Arcand f521ba6cd7 Remove 'enhanced' backend type distinction
4 years ago
Katy Moe b1c071bb57
pass hclog logger to retryable client
4 years ago
Tom Harvey a1c7c0dfa4
Update internal/backend/remote-state/azure/backend.go
4 years ago
tombuildsstuff ffe9a41468 internal/backend/remote-state/azure: adding tests covering MSAL
4 years ago
tombuildsstuff a2cad7d579 internal/backend/remote-state/azure: prefixing the existing tests with ADAL
4 years ago
tombuildsstuff 9f710558ce internal/backend/remote-state/azure: adding a feature-toggle to use MSAL
4 years ago
tombuildsstuff 27a34d6c2c internal/backend/remote-state/azure: updating the link to the client secret
4 years ago
tombuildsstuff 5133d30b71 internal/backend/remote-state/azure: code changes for go-azure-helpers v0.18.0
4 years ago
Jared Ledvina 61a5808680 k8s-backend - Initial context support for library update
4 years ago
Chris Arcand 779c958fbf cloud: Add streamlined 'remote' backend state migration path
5 years ago
xiaozhu36 e0a2716601 backend/oss: Removes the ConflictWith tag which on the attributes assume_role* to fix the incompatible error
5 years ago
xiaozhu36 5d19a34f88 backend/oss: Supports the new attribute sts_endpoint
5 years ago
James Bardin 2ebdc099ac
Merge pull request #29307 from hayorov/main
5 years ago
James Bardin 81e709d185
Merge pull request #29825 from hashicorp/jbardin/no-panicwrap
5 years ago
Brandon Croft dbbfae5a1c refactor ParseVariableValues into separate operations
5 years ago
Chris Arcand 1791b71196 cloud: TestCloud_backendWithTags
5 years ago
Chris Arcand 471dd479e8 Update go-tfe to 26689e
5 years ago
Chris Arcand ea8ad0b15a Initial commit of 'cloud' package
5 years ago
James Bardin d03a037567 insert panic handlers
5 years ago
Alex Khaerov 6f1eceb0e2
Revert autoupdate
5 years ago
xiaozhu36 7afaea4cf2 backend/oss: Fixes the nil pointer panic error when missing access key or secret key
5 years ago
Alex Khaerov 14f366dbf4
Update documentation
5 years ago
Alex Khaerov f32702c5c2
Support deprecated assume_role block
5 years ago
Alex Khaerov de8810cdd9
Merge branch 'hashicorp:main' into main
5 years ago
Martin Atkins 39779e7021 backend/remote-state/cos: Don't use github.com/likexian/gokit
5 years ago
James Bardin ef3c98466d
Merge pull request #29755 from hashicorp/jbardin/first-plan-lineage
5 years ago
James Bardin 5ffa0839f9 only check serial when applying the first plan
5 years ago
Martin Atkins bee7403f3e command/workspace_delete: Allow deleting a workspace with empty husks
5 years ago
Megan Bang 9b9b26a3cd update error message for invalid json
5 years ago
megan07 7dda3366a6
Update internal/backend/remote-state/gcs/backend.go
5 years ago
Megan Bang 81201d69a3 check valid json
5 years ago
Megan Bang 348c761bea add better error if credentials are invalid
5 years ago
Martin Atkins df578afd7e backend/local: Check dependency lock consistency before any operations
5 years ago
Martin Atkins 6a98e4720c plans/planfile: Create takes most arguments via a struct type
5 years ago
Martin Atkins 8d193ad268 core: Simplify and centralize plugin availability checks
5 years ago
James Bardin 8ce2254ad6
Merge pull request #29647 from hashicorp/jbardin/test-temp-cleanup
5 years ago
Alisdair McDiarmid 57318ef561 backend/remote: Support interop from 0.14 to 1.1
5 years ago
James Bardin 9c078c27cf temp path clean for some backend tests
5 years ago
Martin Atkins f0034beb33 core: refactoring.ImpliedMoveStatements replaces NodeCountBoundary
5 years ago
Martin Atkins 332ea1f233 backend/local: TestLocal_plan_context_error to fail terraform.NewContext
5 years ago
Martin Atkins 718fa3895f backend: Remove Operation.Parallelism field
5 years ago
James Bardin d0993b0e80 fix temp directory handling in some tests
5 years ago
James Bardin 8ed9a270e5
Merge pull request #29559 from hashicorp/jbardin/optional-attrs
5 years ago
James Bardin 53a73a8ab6 configs: add ConstraintType to config.Variable
5 years ago
Martin Atkins 343279110a core: Graph walk loads plugin schemas opportunistically
5 years ago
Valeriy Pastushenko 7c7e5d8f0a Don't show data while input if sensitive
5 years ago
James Bardin 863963e7a6 de-linting
5 years ago
Martin Atkins 89b05050ec core: Functional-style API for terraform.Context
5 years ago
Alex Khaerov 9d5f1752c8
oss backend: flattern assume_role block
5 years ago
James Bardin 97a2694528
Merge pull request #28838 from remilapeyre/consul-size-limit
5 years ago
Rémi Lapeyre da6717761e Merge remote-tracking branch 'origin/main' into update-consul
5 years ago
James Bardin 570b70b02f
Merge pull request #28078 from jasons42/configure-etcdv3-client-max-request-size
5 years ago
James Bardin 8dd722ece0
Merge pull request #29167 from xiaozhu36/xiaozhu
5 years ago
James Bardin 431aa0280e
Merge pull request #29157 from remilapeyre/unique-constraint
5 years ago
Jason Smith d1608d7a7f Expose etcd client MaxCallSendMsgSize config
5 years ago
James Bardin dd330e5194
Merge pull request #29200 from hashicorp/jbardin/rebase-25554
5 years ago
Kevin Burke c047958b57 go.mod,backend: update coreos/etcd dependency to release-3.4 branch
5 years ago
James Bardin 9c20ed6185 StateMgr must be able to return with locked state
5 years ago
xiaozhu36 c495caafeb backend/oss: Changes the DescribeEndpoint to DescribeEndpoints to fixes the unsupported sts bug
5 years ago
Rémi Lapeyre 3c34e15d40 Update the Consul API client
5 years ago
Rémi Lapeyre b8e0d6f418 Add UNIQUE constraint in the states table for the pg backend
5 years ago
Rémi Lapeyre 3bf053a5fc Add a test to ensure that workspaces must have a unique name in pg backend
5 years ago
Nick Fagerlund ab70879b9b Remote backend: Stop setting message when creating runs
5 years ago
Rémi Lapeyre 5f444a6862 Fix handling large states in the Consul backend
5 years ago
Rémi Lapeyre e5fb84a01a Add test for storing state just under the size limit of the Consul backend
5 years ago
CJ Horton 2f980f1dfe
Merge pull request #28820 from hashicorp/radditude/refresh-error-message
5 years ago
CJ Horton 314d322b59 backend/remote: encourage use of -refresh-only
5 years ago
Alisdair McDiarmid a3b1764fd7 backend/local: Fix lock when applying stale plan
5 years ago
CJ Horton ab5fec9aec backend/remote: test new options and modes
5 years ago
CJ Horton eb1f113693 backend/remote: validate API version for refresh and replace
5 years ago
Chris Arcand 2171f8a1a6 backend/remote: Support replacements in plans
5 years ago
Chris Arcand a436c7fa2f backend/remote: Support refresh-only plans
5 years ago
Chris Arcand cb49a4c8d6 backend/remote: Remove the -refresh=false restriction
5 years ago
James Bardin 4d55e2604f save apply diagnostics on backend failure
5 years ago
Martin Atkins 36d0a50427 Move terraform/ to internal/terraform/
5 years ago
Martin Atkins f40800b3a4 Move states/ to internal/states/
5 years ago
Martin Atkins 034e944070 Move plans/ to internal/plans/
5 years ago
Martin Atkins 31349a9c3a Move configs/ to internal/configs/
5 years ago
Martin Atkins ffe056bacb Move command/ to internal/command/
5 years ago
Martin Atkins b9a93a0fe7 Move addrs/ to internal/addrs/
5 years ago
Martin Atkins 1409f30f9c Move providers/ to internal/providers/
5 years ago
Martin Atkins 05caff2ca3 Move tfdiags/ to internal/tfdiags/
5 years ago
Martin Atkins 4c254cc2be Move httpclient/ to internal/httpclient/
5 years ago
Martin Atkins 73dda868cc Move backend/ to internal/backend/
5 years ago