Skip to content
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
5 changes: 1 addition & 4 deletions example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module "cnpg" {

# FerretDB Deployment for MongoDB Database Solution
module "ferretdb" {
source = "git::https://github.com/necro-cloud/modules//modules/ferretdb?ref=main"
source = "git::https://github.com/necro-cloud/modules//modules/ferretdb?ref=task/68/authn-setup"

// Garage Cluster Details for configuration of PITR Backups
garage_certificate_authority = module.garage.garage_internal_certificate_secret
Expand All @@ -94,9 +94,6 @@ module "ferretdb" {
{
namespace = "cloud"
user = "cloud"
database = "cloud"
derRequired = false
privateKeyEncoding = "PKCS1"
}
]

Expand Down
10 changes: 0 additions & 10 deletions modules/ferretdb/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,8 @@ variable "clients" {
type = list(object({
namespace = string
user = string
database = string
derRequired = bool
privateKeyEncoding = string
}))
default = []
validation {
condition = length([
for object in var.clients : true
if contains(["PKCS1", "PKCS8"], object.privateKeyEncoding)
]) == length(var.clients)
error_message = "Encoding Value is either PKCS1 or PKCS8"
}
}

# --------------- CLUSTER VARIABLES VARIABLES --------------- #
Expand Down