Commit graph

25 commits

Author SHA1 Message Date
Vicente Pinto
af78e8481a
Remove project_id from resourcemanager_project example (#163) 2023-12-13 14:46:26 +00:00
Vicente Pinto
62b6a1b3de
Support project UUID identifier in resource manager project (#161)
* Add projectId to resource manager project, fix value conversion error

* Support both uuid and container id, update acceptance tests

* Update docs

* Fix unit tests

* Adapt acc test names
2023-12-13 14:17:28 +00:00
João Palet
7188e13e92
Onboard Load Balancer (part 4: acc tests, examples and documentation) (#117)
* Implement acceptance test

* Add resource and data source to the provider

* Add examples and markdown description

* Generate docs

* Adjustments after review

* Move load balancer supporting infrastructure from resource config to example
2023-10-31 18:13:50 +01:00
Henrique Santos
fc8d2663cd
Update docs (#113)
* Update docs

* Update docs

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-27 15:49:05 +01:00
João Palet
8625ac100a
Improve phrasing in README instruction (#109) 2023-10-27 11:40:40 +02:00
João Palet
e61bfe09a5
Set backupSchedule as required in MongoDB Flex instance (#96)
* Set backupSchedule as required in MongoDB Flex instance

* Update example and generate docs

* Add regex explanation comment

* Fix acceptance test

* Fix map fields
2023-10-20 14:38:19 +02:00
Henrique Santos
59ee1b529e
Secrets manager - Add examples, update docs (#95)
* Add examples, update docs

* Fix typo

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-19 16:03:42 +01:00
Henrique Santos
e1265578ce
Implement Secrets Manager ACL (#93)
* Add CIDR validator

* Implement `syncACL`, add it to creation

* Rename function

* Rename variables

* Add mapACLs

* Implement instance update

* Add ACLs to acc test

* Add ACL to schema

* Add new line

* Fix not using the ACLs read from config

* Add test case where ACLs aren't set

* Fix lint

* Generate docs

* Add uniqueness check for ACLs

* Add repeated ACLs test cases

* Remove debug leftover

* Change test cases

* Rename data

* Add ACL description

* Generate docs

* Change ACL attribute type

* Remove test case

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-18 13:25:54 +01:00
João Palet
3c6748545d
Fix PostgresFlex references in MongoDB Flex (#91)
* Fix PostgresFlex references in MongoDB Flex

* Update docs

* Re-generate docs
2023-10-17 17:53:45 +02:00
Henrique Santos
9d11098102
Improve region details (#90)
* Make client config error message more clear

* Add missing log

* Add region detail to resource/data source description

* Generate docs

* Remove resourcemanager using region

* Apply changes to MongoDBFlex user

* Generate docs

* Fix wrong description

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-17 16:02:13 +01:00
João Palet
20f3496242
Onboard MongoDB Flex user (#88)
* Onboard user

* Add examples and generate docs

* Adjustments after review
2023-10-17 15:09:02 +02:00
Henrique Santos
6e51bdd5bf
Object storage improvements (#84)
* Add example

* Rename bucket_name --> bucket

* Fix examples in wrong folder

* Add example

* Lint examples

* Fix examples

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-13 18:33:45 +01:00
Henrique Santos
248b9834ff
Object storage misc fixes (#82)
* Fix wrong reference

* Fix schema

* Fix mapFields not fetching credentials group id

* Change expiration timestamp

* Fix schema

* Remove fields that don't come in the GET response

* Add RFC3339SecondsOnly

* Change expiration timestamp to not support fractional seconds

* Set retry timeout

* Harmonize expiration timestamp

* Skip import check on credential keys

* Add error check

* Update docs

* Change field description

* Add test case, simplify test

* Add test case, simplify test

* Rename variable

* Generate docs

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-13 15:02:48 +01:00
João Palet
5a5ac6640c
Rename credentials_id field to credential_id (#80)
* Rename credentials_id field to credential_id

* Address review comments
2023-10-12 14:57:05 +01:00
Henrique Santos
0fb7d0d793
Implement object storage credential (#79)
* Implement credential resource

* Implement test

* Fix test

* Implement data source

* Implement credential acc test

* Add objectstorage credential

* Add test for enableProject

* Add readCredentials test

* Removed unnecessary test case

* Generate docs

* Fix lint

* Fix field name

* Readd credentials group checks

* Fix comment

* Fix comment

* Remove auth

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-12 14:42:31 +01:00
Vicente Pinto
b8d2d94156
Onboard object storage credentials group (#74)
* Onboard credentials group resource

* Update object storage acc test

* Fix typo

* Generate docs, add examples, fix typos

* Refactor map fiels

* Add unit test for readCredentialsGroups

* Fix lint issues§
g

* Use projectId from Model

* Fix errors§
g

* Fix test

* Simplify signature of enableProject

* Change comment

* Add TestEnableProject

* Rename variable

* Add enableProject test

* Remove unused test setting

* Fix wrong error message

* Improve test case, rename mocked data

* Fix typo

* Removed unnecessary test case

* Removed unnecessary test case

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-12 09:34:38 +01:00
João Palet
fee47a6400
Rename DSA credentials to credential (#76)
* Rename in LogMe

* Rename in other DSA

* Rename examples

* Rename folder names

* Rename in error messages
2023-10-11 09:54:08 +02:00
Vicente Pinto
bc27bc20db
Key flow authentication (#67)
* Add key flow params to provider

* Update docs, add examples
2023-10-09 08:15:14 +01:00
Henrique Santos
4e8514df00
Logging and error handling improvements, bug fixes (#21)
- Uniformed logs and diagnostics:
  - Logging and adding to diagnostics is done by the highest level function (Create/Read/Update/Delete/Import) using `LogAndAddError`
  - Lower-level routines' signature changed to return error instead of writing to diagnostics
  - Standardize summary and details across services
  - Removed manual adding of relevant variables to details (they're in the context, TF adds them to logs)
- Changed validators to be closer to official implementation
- Fix logging wrong output after wait
- Fix Argus checking wrong diagnostics
- Fix Resource Manager not updating state after project update
- Fix unnecessary pointer in LogAndAddError
2023-09-21 14:52:52 +01:00
Henrique Santos
78dcc66e5e
Add template for provider main page (#17)
* Add template

* Generate docs

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-11 17:58:17 +01:00
João Palet
1b1301b011
Add migration import examples for the SKE and LogMe services (#15)
* Fix internal ID strucutre description

* Add example to MIGRATION.md

* Add SKE example

* Add LogMe instance and note for import issue
2023-09-11 15:09:33 +02:00
João Palet
82b0c6ff6c
Document resource's internal ID structure and create foundation for migration guide (#12)
* Add internal ID structure to DSA instance descriptions

* Add internal ID structure to DSA credential descriptions

* Add internal ID structure to Argus descriptions

* Add internal ID structure to DNS descriptions

* Add internal ID structure to PostgresFlex descriptions

* Add internal ID structure to ResourceManager descriptions

* Add internal ID structure to SKE descriptions

* Generate updated docs

* Add first basis for migration guide
2023-09-08 18:03:26 +01:00
Vicente Pinto
135f86d645
Update provider doc (#11) 2023-09-08 17:37:07 +01:00
Henrique Santos
6800f7a421
Update DSA dependencies (#5)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-07 16:09:14 +01:00
vicentepinto98
e4c8a6fbf4 Initial commit 2023-09-07 11:34:45 +01:00