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

prep v0.4.41 release #578

Merged
merged 14 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from 10 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
12 changes: 6 additions & 6 deletions .github/workflows/ci-java-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ on:
branches:
- 'main'
- 'rc-*'
- 's162-improve-health-check' # more fixes to java cross-version compatibility here, so test all here to
- 's162-prep-release'

jobs:
# Java 11 - Oracle support ended 30 Sept 2023
# Java 11 - Oracle support ended 30 Sept 2023 ... but still what ships with GCP cloud shell!!!
ci_java11:
uses: ./.github/workflows/build-java.yaml
with:
Expand All @@ -31,10 +31,10 @@ jobs:
# although beyond me why 17 and 21 both work, but 20 doesn't; best guess is Mockito 5 degrading
# behavior in some way for 20 that isn't needed for 21 and doesn't matter for 17?

# ci_java20:
# uses: ./.github/workflows/build-java.yaml
# with:
# java-version: '20'
ci_java20:
uses: ./.github/workflows/build-java.yaml
with:
java-version: '20'

# Java 21 - released 19 Sept 2023, supported until Sept 2028 (LTS)
ci_java21:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Working tracking of changes, updated as work done prior to release. Please revi
then wildcard policy to read shared also grants read of secrets across all connectors)
- keys/salts per value kind (PII, item id, etc)

## [0.4.41](https://github.com/Worklytics/psoxy/release/tag/v0.4.41)
* GCP only : Compute Engine API will be enabled in the project. Newer versions of GCP terraform
provider seem to require this. You may see this in your next `terraform plan`, although it may
also be a no-op if you already have the API enabled.

## [0.4.36](https://github.com/Worklytics/psoxy/release/tag/v0.4.36)
* Microsoft 365 - Azure AD Directory - default rules change to return `proxyAddresses` field for
users, pseudonymized; needed to match user's past email addresses against other data sources
Expand Down
1 change: 1 addition & 0 deletions docs/gcp/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Service Account Keys and activate Google Workspace APIs.
*attempt* to enable these, but as there is sometimes a few minutes delay in activation and in
some cases they are required to read your existing infra prior to apply, you may experience
errors. To pre-empt those, we suggest ensuring the following are enabled:
- [Compute Engine API](https://console.cloud.google.com/apis/library/compute.googleapis.com) (`compute.googleapis.com`)
- [Cloud Build API](https://console.cloud.google.com/apis/library/cloudbuild.googleapis.com) (`cloudbuild.googleapis.com`)
- [Cloud Functions API](https://console.cloud.google.com/apis/library/cloudfunctions.googleapis.com) (`cloudfunctions.googleapis.com`)
- [Cloud Resource Manager API](https://console.cloud.google.com/apis/library/cloudresourcemanager.googleapis.com) (`cloudresourcemanager.googleapis.com`)
Expand Down
10 changes: 6 additions & 4 deletions docs/sources/google-workspace/directory/directory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ endpoints:
- !<redact>
jsonPaths:
- "$.users[*].name"
- "$.users[*].thumbnailPhotoUrl"
- "$.users[*].organizations[*].title"
- "$.users[*].posixAccounts[*].homeDirectory"
- "$.users[*].recoveryEmail"
- "$.users[*].recoveryPhone"
- "$.users[*].posixAccounts[*].homeDirectory"
- "$.users[*].sshPublicKeys[*]"
- "$.users[*].thumbnailPhotoUrl"
- "$.users[*].websites[*]"
- pathTemplate: "/admin/directory/v1/users/{accountId}"
transforms:
Expand All @@ -47,11 +48,12 @@ endpoints:
- !<redact>
jsonPaths:
- "$.name"
- "$.thumbnailPhotoUrl"
- "$.organizations[*].title"
- "$.posixAccounts[*].homeDirectory"
- "$.recoveryEmail"
- "$.recoveryPhone"
- "$.posixAccounts[*].homeDirectory"
- "$.sshPublicKeys[*]"
- "$.thumbnailPhotoUrl"
- "$.websites[*]"
- pathTemplate: "/admin/directory/v1/groups"
transforms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ endpoints:
- !<redact>
jsonPaths:
- "$.users[*].name"
- "$.users[*].thumbnailPhotoUrl"
- "$.users[*].organizations[*].title"
- "$.users[*].posixAccounts[*].homeDirectory"
- "$.users[*].recoveryEmail"
- "$.users[*].recoveryPhone"
- "$.users[*].posixAccounts[*].homeDirectory"
- "$.users[*].sshPublicKeys[*]"
- "$.users[*].thumbnailPhotoUrl"
- "$.users[*].websites[*]"
- !<pseudonymize>
jsonPaths:
Expand All @@ -52,11 +53,12 @@ endpoints:
- !<redact>
jsonPaths:
- "$.name"
- "$.thumbnailPhotoUrl"
- "$.organizations[*].title"
- "$.posixAccounts[*].homeDirectory"
- "$.recoveryEmail"
- "$.recoveryPhone"
- "$.posixAccounts[*].homeDirectory"
- "$.sshPublicKeys[*]"
- "$.thumbnailPhotoUrl"
- "$.websites[*]"
- !<pseudonymize>
jsonPaths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
],
"organizations":[
{
"title":"CTO, President",
"primary":true,
"customType":"",
"department":"Engineering",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
],
"organizations":[
{
"title":"CTO, President",
"primary":true,
"customType":"",
"department":"Engineering",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
],
"organizations":[
{
"title":"CTO, President",
"primary":true,
"customType":"",
"department":"Engineering",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
],
"organizations":[
{
"title":"CTO, President",
"primary":true,
"customType":"",
"department":"Engineering",
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/aws-all/google-workspace.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider "google" {

module "worklytics_connectors_google_workspace" {
source = "../../modules/worklytics-connectors-google-workspace"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-google-workspace?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-google-workspace?ref=v0.4.41"

providers = {
google = google.google_workspace
Expand Down
6 changes: 3 additions & 3 deletions infra/examples-dev/aws-all/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ terraform {
# general cases
module "worklytics_connectors" {
source = "../../modules/worklytics-connectors"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors?ref=v0.4.41"

enabled_connectors = var.enabled_connectors
jira_cloud_id = var.jira_cloud_id
Expand Down Expand Up @@ -95,7 +95,7 @@ locals {

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

environment_name = var.environment_name
aws_account_id = var.aws_account_id
Expand Down Expand Up @@ -136,7 +136,7 @@ module "connection_in_worklytics" {
for_each = local.all_instances

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

psoxy_instance_id = each.key
worklytics_host = var.worklytics_host
Expand Down
8 changes: 4 additions & 4 deletions infra/examples-dev/aws-all/msft-365.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module "worklytics_connectors_msft_365" {
source = "../../modules/worklytics-connectors-msft-365"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-msft-365?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-msft-365?ref=v0.4.41"


enabled_connectors = var.enabled_connectors
Expand Down Expand Up @@ -41,7 +41,7 @@ module "cognito_identity_pool" {
count = local.msft_365_enabled ? 1 : 0 # only provision identity pool if MSFT-365 connectors are enabled

source = "../../modules/aws-cognito-pool"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-cognito-pool?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-cognito-pool?ref=v0.4.41"

developer_provider_name = local.developer_provider_name
name = "${local.env_qualifier}-azure-ad-federation"
Expand All @@ -51,7 +51,7 @@ module "cognito_identity" {
count = local.msft_365_enabled ? 1 : 0 # only provision identity pool if MSFT-365 connectors are enabled

source = "../../modules/aws-cognito-identity-cli"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-cognito-identity-cli?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/aws-cognito-identity-cli?ref=v0.4.41"

aws_region = data.aws_region.current.id
aws_role = var.aws_assume_role_arn
Expand All @@ -73,7 +73,7 @@ module "msft_connection_auth_federation" {
for_each = module.worklytics_connectors_msft_365.enabled_api_connectors

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

application_object_id = each.value.connector.id
display_name = "${local.env_qualifier}AccessFromAWS"
Expand Down
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 @@ -59,7 +59,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=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.41"

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-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=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-msft-365?ref=v0.4.41"

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/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=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws?ref=v0.4.41"

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/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/gcp-google-workspace?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/gcp-google-workspace?ref=v0.4.41"

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.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider "google" {

module "worklytics_connectors_google_workspace" {
source = "../../modules/worklytics-connectors-google-workspace"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-google-workspace?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-google-workspace?ref=v0.4.41"

providers = {
google = google.google_workspace
Expand Down
6 changes: 3 additions & 3 deletions infra/examples-dev/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ locals {
# call this 'generic_source_connectors'?
module "worklytics_connectors" {
source = "../../modules/worklytics-connectors"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors?ref=v0.4.41"


enabled_connectors = var.enabled_connectors
Expand Down Expand Up @@ -76,7 +76,7 @@ locals {

module "psoxy" {
source = "../../modules/gcp-host"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/gcp-host?ref=rc-v0.4.41"
# source = "git::https://github.com/worklytics/psoxy//infra/modules/gcp-host?ref=v0.4.41"

gcp_project_id = var.gcp_project_id
environment_name = var.environment_name
Expand Down Expand Up @@ -115,7 +115,7 @@ module "connection_in_worklytics" {
for_each = local.all_instances

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

psoxy_host_platform_id = local.host_platform_id
psoxy_instance_id = each.key
Expand Down
2 changes: 1 addition & 1 deletion infra/examples-dev/gcp/msft-365.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "msft-connection-auth-federation" {
for_each = module.worklytics_connectors_msft_365.enabled_api_connectors

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

application_object_id = each.value.connector.id
display_name = "GcpFederation"
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 @@ -59,7 +59,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=rc-v0.4.41"
source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-google-workspace?ref=v0.4.41"

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-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=rc-v0.4.41"
source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/aws-msft-365?ref=v0.4.41"

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/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/gcp-google-workspace?ref=rc-v0.4.41"
source = "git::https://github.com/worklytics/psoxy//infra/modular-examples/gcp-google-workspace?ref=v0.4.41"

gcp_project_id = var.gcp_project_id
environment_name = var.environment_name
Expand Down
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=rc-v0.4.41"
source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connector-specs?ref=v0.4.41"

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=rc-v0.4.41"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-connection?ref=v0.4.41"

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=rc-v0.4.41"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-federated-credentials?ref=v0.4.41"

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=rc-v0.4.41"
source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-grant-all-users?ref=v0.4.41"

psoxy_instance_id = each.key
application_id = module.msft-connection[each.key].connector.application_id
Expand Down
Loading