Skip to content
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

Updated go sdk to latest version 2.0.1 to support platform login #70

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Terraform 0.13 uses a different file system layout for 3rd party providers. More
└───terraform.delinea.com
DelineaXPM
└───tss
└───2.0.5
└───2.0.6
└───windows_amd64
```

Expand All @@ -34,7 +34,7 @@ Terraform 0.13 uses a different file system layout for 3rd party providers. More
└───terraform.delinea.com
DelineaXPM
└───tss
└───2.0.5
└───2.0.6
├───linux_amd64
```

Expand All @@ -55,6 +55,8 @@ terraform {

To run the example, create a `terraform.tfvars` and use below variables to get and create/update secret:

If you want to access the secret server via the platform, provide the platform URL as an input to tss_server_url, and the platform user credentials to tss_username and tss_password.

Get Secret By ID:

```hcl
Expand Down Expand Up @@ -102,17 +104,28 @@ Above Create/Update Secret variables are for Windows Account secret template of

## Environment variables

You can provide your credentials via the TSS_SERVER_URL, TSS_USERNAME and TSS_PASSWORD environment variables.
You can provide your credentials via the tss_server_url, tss_username and tss_password environment variables.
In this case, tss provider could be represented like this
```
provider "tss" {}
provider "tss" {
username = var.tss_username
password = var.tss_password
server_url = var.tss_server_url
}
```
Usage (For Linux)
```
$ export TF_VAR_tss_username="my_app_user"
$ export TF_VAR_tss_password="Passw0rd."
$ export TF_VAR_tss_server_url="https://localhost/SecretServer"
$ terraform plan or $ terraform apply
```
Usage
Usage (For Windows)
```
$ export TSS_USERNAME="my_app_user"
$ export TSS_PASSWORD="Passw0rd."
$ export TSS_SERVER_URL="https://localhost/SecretServer"
$ terraform plan
> set TF_VAR_tss_username="my_app_user"
> set TF_VAR_tss_password="Passw0rd."
> set TF_VAR_tss_server_url="https://localhost/SecretServer"
> terraform plan or > terraform apply
```

## Domain user accounts
Expand Down
2 changes: 1 addition & 1 deletion examples/secrets/secret_create.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
tss = {
source = "DelineaXPM/tss"
version = "2.0.5"
version = "2.0.6"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/secrets/secret_get.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
tss = {
source = "DelineaXPM/tss"
version = "2.0.5"
version = "2.0.6"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/DelineaXPM/terraform-provider-tss/v2

require (
github.com/DelineaXPM/tss-sdk-go/v2 v2.0.0
github.com/DelineaXPM/tss-sdk-go/v2 v2.0.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/DelineaXPM/tss-sdk-go/v2 v2.0.0 h1:BiMCCawPnEHSPrceUQvwofZ+fDnWg7vso7zaXp6p4eM=
github.com/DelineaXPM/tss-sdk-go/v2 v2.0.0/go.mod h1:xz6FXP2Do88Vc5Hx7OamZgZC1W45yfmLy4+iDKxlGXo=
github.com/DelineaXPM/tss-sdk-go/v2 v2.0.1 h1:/rzzzaBuj/FYTcbt8sYZ9IzlnENqcgh5zKqBhHiBBm4=
github.com/DelineaXPM/tss-sdk-go/v2 v2.0.1/go.mod h1:xz6FXP2Do88Vc5Hx7OamZgZC1W45yfmLy4+iDKxlGXo=
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec=
Expand Down