Skip to content

Add CyberArk API and SCIM settings to Terraform deployment - #128

Merged
strick-j merged 1 commit into
developfrom
claude/add-terraform-settings-zXoJb
Feb 13, 2026
Merged

Add CyberArk API and SCIM settings to Terraform deployment#128
strick-j merged 1 commit into
developfrom
claude/add-terraform-settings-zXoJb

Conversation

@strick-j

Copy link
Copy Markdown
Owner

Wire all CyberArk environment variables through Terraform so they can be configured at deployment time via terraform.tfvars instead of only through the Settings UI after deployment.

Backend changes:

  • Add SCIM env vars (CYBERARK_SCIM_ENABLED, CYBERARK_SCIM_APP_ID, CYBERARK_SCIM_SCOPE, CYBERARK_SCIM_CLIENT_ID, CYBERARK_SCIM_CLIENT_SECRET) and CYBERARK_TENANT_NAME to config.py
  • Create ensure_cyberark_settings startup seeder that seeds CyberArkSettings DB row from env vars on first boot and syncs secrets on subsequent boots
  • Update _get_or_create_cyberark_settings to include UAP, tenant, and SCIM fields when creating from env var defaults

Terraform changes:

  • Add CyberArk + SCIM variables to dev and prod variables.tf
  • Pass CyberArk env vars to ECS containers via main.tf locals
  • Store cyberark_client_secret and cyberark_scim_client_secret in AWS Secrets Manager via the secrets module
  • Add CyberArk/SCIM examples to terraform.tfvars.example for both dev and prod environments
  • Update .env.example with SCIM and tenant name documentation

https://claude.ai/code/session_01EQJ2ozb4749hDoaykNNuKG

Wire all CyberArk environment variables through Terraform so they can
be configured at deployment time via terraform.tfvars instead of only
through the Settings UI after deployment.

Backend changes:
- Add SCIM env vars (CYBERARK_SCIM_ENABLED, CYBERARK_SCIM_APP_ID,
  CYBERARK_SCIM_SCOPE, CYBERARK_SCIM_CLIENT_ID,
  CYBERARK_SCIM_CLIENT_SECRET) and CYBERARK_TENANT_NAME to config.py
- Create ensure_cyberark_settings startup seeder that seeds
  CyberArkSettings DB row from env vars on first boot and syncs
  secrets on subsequent boots
- Update _get_or_create_cyberark_settings to include UAP, tenant,
  and SCIM fields when creating from env var defaults

Terraform changes:
- Add CyberArk + SCIM variables to dev and prod variables.tf
- Pass CyberArk env vars to ECS containers via main.tf locals
- Store cyberark_client_secret and cyberark_scim_client_secret in
  AWS Secrets Manager via the secrets module
- Add CyberArk/SCIM examples to terraform.tfvars.example for both
  dev and prod environments
- Update .env.example with SCIM and tenant name documentation

https://claude.ai/code/session_01EQJ2ozb4749hDoaykNNuKG
@strick-j
strick-j merged commit 297a7f6 into develop Feb 13, 2026
@strick-j
strick-j deleted the claude/add-terraform-settings-zXoJb branch February 13, 2026 23:08
Comment thread infrastructure/modules/secrets/main.tf Dismissed
Comment thread infrastructure/modules/secrets/main.tf Dismissed
Comment thread infrastructure/modules/secrets/main.tf Dismissed
Comment thread infrastructure/modules/secrets/main.tf Dismissed
@github-actions

Copy link
Copy Markdown

🐳 Docker Build Results

Image Status Tag
Backend ✅ success pr-128
Frontend ⏭️ skipped N/A (no changes)

Note: Images are pushed to the dev ECR on merge to develop and to the prod ECR on merge to main.
To push from this PR, use the workflow dispatch with push_to_ecr: true.

strick-j pushed a commit that referenced this pull request Feb 15, 2026
Refactor SSRF validation into reusable _validate_url_for_ssrf() and
_build_safe_url() functions. The URL reconstruction now uses IDNA
hostname encoding (bytes round-trip) and regex path validation to
break CodeQL's taint propagation chain. Apply SSRF protection to
test_cyberark_connection and test_scim_connection endpoints that
previously had no SSRF guards.

https://claude.ai/code/session_01Qedk4PBh5tEHy4bbr7qUDV
strick-j pushed a commit that referenced this pull request Feb 16, 2026
Sync main with all changes from develop (PRs #125-#153), including:

- CyberArk integration: access mapping visualization, SIA policies,
  safes, roles, accounts, SCIM users, and CyberArk dashboard
- Access mapping: collapsible branches, user filtering, Terraform
  badges, detail panels, filter bar, and layout improvements
- Sidebar reorganization: AWS/CyberArk/IaC sections with collapsible
  behavior
- Topology improvements: custom zoom controls, collapsible VPC/subnet
  nodes, badge positioning fixes
- Terraform parser: idsec_identity_role_member, random_password,
  S3 bucket parser and collector
- CyberArk settings management in admin UI
- JIT access mapping fixes: connection profiles, AND-logic criteria,
  case-insensitive tags
- Security fixes: SSRF vulnerability (CodeQL #128), CVE-2026-24049,
  CVE-2026-23949, CVE-2025-8869
- Version bump to 1.5.0

https://claude.ai/code/session_01PBYdK5PVFQCWeWmmtiUbwh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants