Skip to content

Commit

Permalink
Merge pull request #358 from Worklytics/rc-v0.4.23
Browse files Browse the repository at this point in the history
release v0.4.23
  • Loading branch information
eschultink authored May 23, 2023
2 parents 201800b + 76027a3 commit 3e41a9b
Show file tree
Hide file tree
Showing 45 changed files with 289 additions and 157 deletions.
2 changes: 1 addition & 1 deletion infra/examples-dev/aws-google-workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ data "google_project" "psoxy-google-connectors" {

module "psoxy" {
source = "../../modular-examples/aws-google-workspace"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.23"

aws_account_id = var.aws_account_id
aws_assume_role_arn = var.aws_assume_role_arn # role that can test the instances (lambdas)
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/aws-google-workspace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ variable "google_workspace_example_admin" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}

variable "vpc_ip_block" {
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/aws-msft-365/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ provider "azuread" {

module "psoxy" {
source = "../../modular-examples/aws-msft-365"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-msft-365?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-msft-365?ref=v0.4.23"

aws_account_id = var.aws_account_id
aws_assume_role_arn = var.aws_assume_role_arn # role that can test the instances (lambdas)
Expand Down
6 changes: 3 additions & 3 deletions infra/examples-dev/aws-msft-365/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ variable "caller_aws_arns" {

variable "msft_tenant_id" {
type = string
default = ""
description = "ID of Microsoft tenant to connect to (req'd only if config includes MSFT connectors)"
default = ""
}

variable "msft_owners_email" {
Expand Down Expand Up @@ -104,7 +104,7 @@ variable "force_bundle" {

variable "provision_testing_infra" {
type = bool
description = "whether to provision infra needed to support testing of deployment"
description = "Whether to provision infra needed to support testing of deployment. If false, it's left to you to ensure the AWS principal you use when running test scripts has the correct permissions."
default = false
}

Expand Down Expand Up @@ -230,6 +230,6 @@ variable "lookup_table_builders" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}
2 changes: 1 addition & 1 deletion infra/examples-dev/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ provider "azuread" {

module "psoxy" {
source = "../../modular-examples/aws"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws?ref=v0.4.23"

aws_account_id = var.aws_account_id
aws_assume_role_arn = var.aws_assume_role_arn # role that can test the instances (lambdas)
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ variable "google_workspace_example_admin" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}

variable "connector_display_name_suffix" {
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/gcp-google-workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ provider "google" {

module "psoxy" {
source = "../../modular-examples/gcp-google-workspace"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.23"

gcp_project_id = var.gcp_project_id
environment_name = var.environment_name
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/gcp-google-workspace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@ variable "google_workspace_example_admin" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}
2 changes: 1 addition & 1 deletion infra/examples-dev/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ provider "google" {

module "psoxy" {
source = "../../modular-examples/gcp"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/gcp?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/gcp?ref=v0.4.23"

gcp_project_id = var.gcp_project_id
environment_id = var.environment_id
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ variable "google_workspace_example_admin" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}

variable "msft_tenant_id" {
Expand Down
2 changes: 1 addition & 1 deletion infra/examples/aws-google-workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ data "google_project" "psoxy-google-connectors" {

module "psoxy" {
# source = "../../modular-examples/aws-google-workspace"
source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.22"
source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.23"

aws_account_id = var.aws_account_id
aws_assume_role_arn = var.aws_assume_role_arn # role that can test the instances (lambdas)
Expand Down
2 changes: 1 addition & 1 deletion infra/examples/aws-google-workspace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,6 @@ variable "google_workspace_example_admin" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}
2 changes: 1 addition & 1 deletion infra/examples/aws-msft-365/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ provider "azuread" {

module "psoxy" {
source = "../../modular-examples/aws-msft-365"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-msft-365?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-msft-365?ref=v0.4.23"

aws_account_id = var.aws_account_id
aws_assume_role_arn = var.aws_assume_role_arn # role that can test the instances (lambdas)
Expand Down
4 changes: 2 additions & 2 deletions infra/examples/aws-msft-365/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ variable "caller_aws_arns" {

variable "msft_tenant_id" {
type = string
default = ""
description = "ID of Microsoft tenant to connect to (req'd only if config includes MSFT connectors)"
default = ""
}

variable "msft_owners_email" {
Expand Down Expand Up @@ -230,6 +230,6 @@ variable "lookup_table_builders" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}
2 changes: 1 addition & 1 deletion infra/examples/gcp-google-workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ provider "google" {

module "psoxy" {
# source = "../../modular-examples/gcp-google-workspace"
source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/gcp-google-workspace?ref=v0.4.22"
source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/gcp-google-workspace?ref=v0.4.23"

gcp_project_id = var.gcp_project_id
environment_name = var.environment_name
Expand Down
2 changes: 1 addition & 1 deletion infra/examples/gcp-google-workspace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@ variable "google_workspace_example_admin" {

variable "salesforce_domain" {
type = string
default = ""
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}
8 changes: 4 additions & 4 deletions infra/examples/msft-365/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ data "azuread_client_config" "current" {}

module "worklytics_connector_specs" {
# source = "../../modules/worklytics-connector-specs"
source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connector-specs?ref=v0.4.22"
source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connector-specs?ref=v0.4.23"

enabled_connectors = var.enabled_connectors

Expand All @@ -52,7 +52,7 @@ module "msft-connection" {
for_each = module.worklytics_connector_specs.enabled_msft_365_connectors

# source = "../../modules/azuread-connection"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-connection?ref=v0.4.22"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-connection?ref=v0.4.23"

display_name = "Psoxy Connector - ${each.value.display_name}${var.connector_display_name_suffix}"
tenant_id = var.msft_tenant_id
Expand All @@ -65,7 +65,7 @@ module "msft-connection-auth-federation" {
for_each = module.worklytics_connector_specs.enabled_msft_365_connectors

# source = "../../modules/azuread-federated-credentials"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-federated-credentials?ref=v0.4.22"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-federated-credentials?ref=v0.4.23"

application_object_id = module.msft-connection[each.key].connector.id
display_name = "AccessFromAWS"
Expand Down Expand Up @@ -107,7 +107,7 @@ module "msft_365_grants" {
for_each = module.worklytics_connector_specs.enabled_msft_365_connectors

# source = "../../modules/azuread-grant-all-users"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-grant-all-users?ref=v0.4.22"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-grant-all-users?ref=v0.4.23"

psoxy_instance_id = each.key
application_id = module.msft-connection[each.key].connector.application_id
Expand Down
3 changes: 2 additions & 1 deletion infra/examples/msft-365/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ variable "caller_aws_arns" {
error_message = "The values of caller_aws_arns should be AWS Resource Names, something like 'arn:aws:iam::914358739851:root'."
}
}

variable "msft_tenant_id" {
type = string
default = ""
description = "ID of Microsoft tenant to connect to (req'd only if config includes MSFT connectors)"
default = ""
}

variable "connector_display_name_suffix" {
Expand Down
36 changes: 20 additions & 16 deletions infra/modular-examples/aws-google-workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ locals {

module "worklytics_connector_specs" {
source = "../../modules/worklytics-connector-specs"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connector-specs?ref=v0.4.22
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connector-specs?ref=v0.4.23

enabled_connectors = var.enabled_connectors
google_workspace_example_user = var.google_workspace_example_user
google_workspace_example_admin = coalesce(var.google_workspace_example_admin, var.google_workspace_example_user)
google_workspace_example_admin = try(coalesce(var.google_workspace_example_admin, var.google_workspace_example_user), null)
salesforce_domain = var.salesforce_domain
msft_tenant_id = var.msft_tenant_id
}

module "psoxy-aws" {
source = "../../modules/aws"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws?ref=v0.4.22
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws?ref=v0.4.23

aws_account_id = var.aws_account_id
region = var.aws_region
psoxy_base_dir = var.psoxy_base_dir
force_bundle = var.force_bundle
caller_aws_arns = var.caller_aws_arns
Expand All @@ -43,7 +45,7 @@ module "psoxy-aws" {
# secrets shared across all instances
module "global_secrets" {
source = "../../modules/aws-ssm-secrets"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-ssm-secrets?ref=v0.4.22
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-ssm-secrets?ref=v0.4.23

path = var.aws_ssm_param_root_path
kms_key_id = var.aws_ssm_key_id
Expand All @@ -64,7 +66,7 @@ module "google-workspace-connection" {
for_each = module.worklytics_connector_specs.enabled_google_workspace_connectors

source = "../../modules/google-workspace-dwd-connection"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/google-workspace-dwd-connection?ref=v0.4.22
# source = "git::https://github.com/worklytics/psoxy//infra/modules/google-workspace-dwd-connection?ref=v0.4.23

project_id = var.gcp_project_id
connector_service_account_id = "psoxy-${each.key}"
Expand All @@ -82,7 +84,7 @@ module "google-workspace-connection-auth" {
for_each = module.worklytics_connector_specs.enabled_google_workspace_connectors

source = "../../modules/gcp-sa-auth-key"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/gcp-sa-auth-key?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/gcp-sa-auth-key?ref=v0.4.23"

service_account_id = module.google-workspace-connection[each.key].service_account_id
}
Expand All @@ -91,7 +93,7 @@ module "sa-key-secrets" {
for_each = module.worklytics_connector_specs.enabled_google_workspace_connectors

source = "../../modules/aws-ssm-secrets"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-ssm-secrets?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-ssm-secrets?ref=v0.4.23"
# other possibly implementations:
# source = "../hashicorp-vault-secrets"

Expand All @@ -110,7 +112,7 @@ module "psoxy-google-workspace-connector" {
for_each = module.worklytics_connector_specs.enabled_google_workspace_connectors

source = "../../modules/aws-psoxy-rest"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-rest?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-rest?ref=v0.4.23"

function_name = "psoxy-${each.key}"
source_kind = each.key
Expand All @@ -120,6 +122,7 @@ module "psoxy-google-workspace-connector" {
api_caller_role_arn = module.psoxy-aws.api_caller_role_arn
aws_assume_role_arn = var.aws_assume_role_arn
aws_account_id = var.aws_account_id
region = var.aws_region
path_to_repo_root = var.psoxy_base_dir
example_api_calls = each.value.example_api_calls
example_api_calls_user_to_impersonate = each.value.example_api_calls_user_to_impersonate
Expand Down Expand Up @@ -150,7 +153,7 @@ module "worklytics-psoxy-connection-google-workspace" {
for_each = module.worklytics_connector_specs.enabled_google_workspace_connectors

source = "../../modules/worklytics-psoxy-connection"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-psoxy-connection?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-psoxy-connection?ref=v0.4.23"

psoxy_instance_id = each.key
psoxy_host_platform_id = local.host_platform_id
Expand Down Expand Up @@ -196,7 +199,7 @@ module "parameter-fill-instructions" {
for_each = local.long_access_parameters

source = "../../modules/aws-ssm-fill-md"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-ssm-fill-md?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-ssm-fill-md?ref=v0.4.23"

region = var.aws_region
parameter_name = aws_ssm_parameter.long-access-secrets[each.key].name
Expand All @@ -206,7 +209,7 @@ module "source_token_external_todo" {
for_each = module.worklytics_connector_specs.enabled_oauth_long_access_connectors_todos

source = "../../modules/source-token-external-todo"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/source-token-external-todo?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/source-token-external-todo?ref=v0.4.23"

source_id = each.key
connector_specific_external_steps = each.value.external_token_todo
Expand All @@ -219,14 +222,15 @@ module "aws-psoxy-long-auth-connectors" {
for_each = module.worklytics_connector_specs.enabled_oauth_long_access_connectors

source = "../../modules/aws-psoxy-rest"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-rest?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-rest?ref=v0.4.23"

function_name = "psoxy-${each.key}"
path_to_function_zip = module.psoxy-aws.path_to_deployment_jar
function_zip_hash = module.psoxy-aws.deployment_package_hash
path_to_config = null
aws_assume_role_arn = var.aws_assume_role_arn
aws_account_id = var.aws_account_id
region = var.aws_region
api_caller_role_arn = module.psoxy-aws.api_caller_role_arn
source_kind = each.value.source_kind
path_to_repo_root = var.psoxy_base_dir
Expand Down Expand Up @@ -262,7 +266,7 @@ module "worklytics-psoxy-connection" {
for_each = module.worklytics_connector_specs.enabled_oauth_long_access_connectors

source = "../../modules/worklytics-psoxy-connection"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-psoxy-connection?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-psoxy-connection?ref=v0.4.23"

psoxy_instance_id = each.key
connector_id = try(each.value.worklytics_connector_id, "")
Expand Down Expand Up @@ -295,7 +299,7 @@ module "psoxy-bulk" {
for_each = merge(module.worklytics_connector_specs.enabled_bulk_connectors, var.custom_bulk_connectors)

source = "../../modules/aws-psoxy-bulk"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-bulk?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-bulk?ref=v0.4.23"

aws_account_id = var.aws_account_id
aws_assume_role_arn = var.aws_assume_role_arn
Expand Down Expand Up @@ -334,7 +338,7 @@ module "psoxy-bulk-to-worklytics" {
var.custom_bulk_connectors)

source = "../../modules/worklytics-psoxy-connection-generic"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-psoxy-connection-generic?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-psoxy-connection-generic?ref=v0.4.23"

psoxy_host_platform_id = local.host_platform_id
psoxy_instance_id = each.key
Expand All @@ -354,7 +358,7 @@ module "lookup_output" {
for_each = var.lookup_table_builders

source = "../../modules/aws-psoxy-output-bucket"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-output-bucket?ref=v0.4.22"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-psoxy-output-bucket?ref=v0.4.23"

instance_id = each.key
iam_role_for_lambda_name = module.psoxy-bulk[each.value.input_connector_id].instance_role_name
Expand Down
14 changes: 13 additions & 1 deletion infra/modular-examples/aws-google-workspace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,20 @@ variable "google_workspace_example_admin" {
default = null # will failover to user
}

variable "salesforce_domain" {
variable "msft_tenant_id" {
type = string
description = "ID of Microsoft tenant to connect to (req'd only if config includes MSFT connectors)"
default = ""
}

variable "msft_owners_email" {
type = set(string)
default = []
description = "(Only if config includes MSFT connectors). Optionally, set of emails to apply as owners on AAD apps apart from current logged user"
}

variable "salesforce_domain" {
type = string
description = "Domain of the Salesforce to connect to (only required if using Salesforce connector). To find your My Domain URL, from Setup, in the Quick Find box, enter My Domain, and then select My Domain"
default = ""
}
Loading

0 comments on commit 3e41a9b

Please sign in to comment.