-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Flaconi/plt-761
PLT-761 - Create one password module to store items
- Loading branch information
Showing
7 changed files
with
90 additions
and
17 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @Flaconi/devops | ||
* @Flaconi/devops @Flaconi/platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,4 +47,4 @@ jobs: | |
} | ||
retry make test | ||
env: | ||
RETRIES: 20 | ||
RETRIES: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
resource "onepassword_item" "items" { | ||
for_each = { for parameter in var.items : parameter.name => parameter } | ||
vault = var.vault_id | ||
|
||
category = each.value.category | ||
|
||
title = each.value.name | ||
|
||
username = each.value.username | ||
password = each.value.password | ||
|
||
tags = concat(var.tags, ["Managed by Terraform"]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
variable "tags" { | ||
description = "Tags applied to the resources" | ||
type = list(string) | ||
default = [] | ||
} | ||
|
||
variable "vault_id" { | ||
description = "id of the vault where the items are stored" | ||
type = string | ||
} | ||
|
||
variable "items" { | ||
description = "A list of dicts with secret information" | ||
type = list(object({ | ||
category = optional(string, "login") | ||
name = string | ||
username = string | ||
password = string | ||
})) | ||
default = [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
terraform { | ||
required_version = "~> 1.3" | ||
required_providers { | ||
onepassword = { | ||
source = "1Password/onepassword" | ||
version = ">= 1.4.0" | ||
} | ||
} | ||
required_version = ">= 1.5" | ||
} |