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

[Blueprint 02-At scale] Migration to helm-openldap/openldap-stack-ha (part I) #140

Merged
merged 41 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2461d52
Addressing #72
carlosrodlop May 15, 2024
81d56f5
Adding main for ci
carlosrodlop May 15, 2024
7b03742
fix line
carlosrodlop May 15, 2024
152f194
terraform-docs: automated action
github-actions[bot] May 15, 2024
87acb13
Update blueprints/02-at-scale/README.md
carlosrodlop May 15, 2024
812eb76
Update blueprints/02-at-scale/README.md
carlosrodlop May 15, 2024
2057eb3
terraform-docs: automated action
github-actions[bot] May 15, 2024
f507f8b
Update blueprints/02-at-scale/outputs.tf
carlosrodlop May 15, 2024
a8f8311
Update blueprints/02-at-scale/outputs.tf
carlosrodlop May 15, 2024
b0ccb68
Update blueprints/02-at-scale/outputs.tf
carlosrodlop May 15, 2024
3094544
Update blueprints/02-at-scale/outputs.tf
carlosrodlop May 15, 2024
643bcfc
terraform-docs: automated action
github-actions[bot] May 15, 2024
3c5d134
Update blueprints/02-at-scale/main.tf
carlosrodlop May 15, 2024
0072ba3
Preparing bundle
carlosrodlop May 15, 2024
44d2178
Removing old secret hardcoded in the file
carlosrodlop May 15, 2024
8da46a7
Replacing osixia-openldap by openldap-stack
carlosrodlop May 15, 2024
4457a03
Merge branch 'ldap' of github.com:cloudbees/terraform-aws-cloudbees-c…
carlosrodlop May 15, 2024
ea28c16
Removing osixia-ldap
carlosrodlop May 19, 2024
2112e4b
Casc. Test ldap password
carlosrodlop May 19, 2024
b3670a0
casc test
carlosrodlop May 19, 2024
2956470
Casc: Adding Ldap configuration for Example Org
carlosrodlop May 20, 2024
26061e0
Casc - refactor names
carlosrodlop May 20, 2024
7f54859
Adding notes on users and groups configuration
carlosrodlop May 20, 2024
929d7c2
Reformat names on secrets
carlosrodlop May 20, 2024
34933e0
Prepare secrets to be templating
carlosrodlop May 20, 2024
4eb885d
Template secrets
carlosrodlop May 20, 2024
59713f4
Casc: enabling Rbac configuraion
carlosrodlop May 20, 2024
ed31b61
Setting ldap branch
carlosrodlop May 20, 2024
5f42e79
Secrets passed as String not as file path
carlosrodlop May 20, 2024
08234dd
Update blueprints/02-at-scale/k8s/openldap-stack-values.yml
carlosrodlop May 20, 2024
fea0242
Update variables.tf
carlosrodlop May 20, 2024
4c563f2
Update blueprints/02-at-scale/k8s/openldap-stack-values.yml
carlosrodlop May 20, 2024
179df16
Replace to ACME Coorporation
carlosrodlop May 21, 2024
f71506a
Merge branch 'ldap' of github.com:cloudbees/terraform-aws-cloudbees-c…
carlosrodlop May 21, 2024
6814aac
Replacing by global password
carlosrodlop May 21, 2024
3397e61
typo and disabling phpldapadmin
carlosrodlop May 21, 2024
fe66954
typo
carlosrodlop May 21, 2024
bc021d3
Moving to local.global_pass_jsonpath
carlosrodlop May 21, 2024
ff8388c
Merge branch 'develop' into ldap
carlosrodlop May 21, 2024
e092815
terraform-docs: automated action
github-actions[bot] May 21, 2024
e9bbc45
terraform-docs: automated action
github-actions[bot] May 21, 2024
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
40 changes: 0 additions & 40 deletions .cloudbees/workflows/ldap-dh.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .cloudbees/workflows/ldap-gh.yaml

This file was deleted.

90 changes: 0 additions & 90 deletions .docker/ldap/data.ldif

This file was deleted.

10 changes: 0 additions & 10 deletions .docker/ldap/openldap.Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion blueprints/02-at-scale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Once you have familiarized yourself with [CloudBees CI blueprint add-on: Get sta
|------|-------------|------|---------|:--------:|
| hosted_zone | Amazon Route 53 hosted zone. CloudBees CI applications are configured to use subdomains in this hosted zone. | `string` | n/a | yes |
| trial_license | CloudBees CI trial license details for evaluation. | `map(string)` | n/a | yes |
| grafana_admin_password | Grafana admin password. | `string` | `"change.me"` | no |
| suffix | Unique suffix to assign to all resources. When adding the suffix, changes are required in CloudBees CI for the validation phase. | `string` | `""` | no |
| tags | Tags to apply to resources. | `map(string)` | `{}` | no |

Expand Down Expand Up @@ -86,6 +85,7 @@ Once you have familiarized yourself with [CloudBees CI blueprint add-on: Get sta
| efs_access_points | Amazon EFS access points. |
| efs_arn | Amazon EFS ARN. |
| eks_cluster_arn | Amazon EKS cluster ARN. |
| global_password | Random string that is used as the global password. |
| grafana_dashboard | Provides access to Grafana dashboards. |
| kubeconfig_add | Add kubeconfig to the local configuration to access the Kubernetes API. |
| kubeconfig_export | Export the KUBECONFIG environment variable to access the Kubernetes API. |
Expand Down
2 changes: 1 addition & 1 deletion blueprints/02-at-scale/casc/oc/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ items:
plugins:
- plugins
rbac:
- rbac
- rbac
variables:
- variables
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ items:
store:
s3Store:
#TODO: Use variables
#bucketName: ${cbci_s3}
#bucketName: ${cbciS3}
bucketName: "cbci-bp02-s3"
bucketFolder: cbci/backup
region: us-east-1
Expand Down
4 changes: 2 additions & 2 deletions blueprints/02-at-scale/casc/oc/items/items-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ items:
"cloudbees.prometheus": "true"
properties:
- configurationAsCode:
bundle: "main/none-ha"
bundle: "ldap/none-ha"
# Casc, HA
- kind: managedController
name: team-c-ha
Expand Down Expand Up @@ -74,4 +74,4 @@ items:
"cloudbees.prometheus": "true"
properties:
- configurationAsCode:
bundle: "main/ha"
bundle: "ldap/ha"
6 changes: 3 additions & 3 deletions blueprints/02-at-scale/casc/oc/jcasc/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ unclassified:
name: "casc-mm-store"
retriever:
SCM:
defaultVersion: ${casc_branch}
defaultVersion: ${cascBranch}
scmSource:
git:
credentialsId: "GH-token"
remote: ${scm_casc_mm_store}
remote: ${scmCascMmStore}
traits:
- "gitBranchDiscovery"
- headWildcardFilter:
includes: ${casc_branch}
includes: ${cascBranch}
- sparseCheckoutPaths:
extension:
sparseCheckoutPaths:
Expand Down
16 changes: 8 additions & 8 deletions blueprints/02-at-scale/casc/oc/jcasc/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ jenkins:
securityRealm:
ldap:
configurations:
- managerDN: ${ldap_ManagerDN}
managerPasswordSecret: ${ldap_ManagerPasswordSecret}
rootDN: ${ldap_RootDN}
server: ${ldap_Server}
userSearch: ${ldap_UserSearch}
- managerDN: ${ldapManagerDN}
managerPasswordSecret: ${sec_ldapPassword}
rootDN: ${ldapRootDN}
server: ${ldapServer}
userSearch: ${ldapUserSearch}
authorizationStrategy: "cloudBeesRoleBasedAccessControl"
remotingSecurity:
enabled: true
Expand All @@ -20,12 +20,12 @@ credentials:
- usernamePassword:
description: "GH-User-token"
id: "GH-User-token"
password: ${secGithubUser}
password: ${sec_githubUser}
scope: GLOBAL
username: ${secGithubToken}
username: ${sec_githubToken}
usernameSecret: true
- string:
description: "GH-ST-token"
id: "GH-ST-token"
scope: GLOBAL
secret: ${secGithubToken}
secret: ${sec_githubToken}
15 changes: 7 additions & 8 deletions blueprints/02-at-scale/casc/oc/variables/variables.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
variables:
- message: "Welcome to the CloudBees CI blueprint add-on: At scale!"
- scm_casc_mm_store: "https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git"
- casc_branch: main
- ldap_ManagerDN: "cn=admin,dc=acme,dc=org"
- ldap_ManagerPasswordSecret: "admin"
- ldap_RootDN: "dc=acme,dc=org"
- ldap_Server: "ldap-service.auth.svc.cluster.local"
- ldap_UserSearch: "cn={0}"
- scmCascMmStore: "https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git"
- cascBranch: ldap
- ldapManagerDN: "cn=admin,dc=example,dc=org"
- ldapRootDN: "dc=example,dc=org"
- ldapServer: "openldap-stack.auth.svc.cluster.local"
- ldapUserSearch: "cn={0}"
#Issue #70
#- cbci_s3: "cbci-bp02-s3"
#- cbciS3: "cbci-bp02-s3"
2 changes: 1 addition & 1 deletion blueprints/02-at-scale/k8s/cbci-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ OperationsCenter:
Retriever:
Enabled: true
scmRepo: https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git
scmBranch: main
scmBranch: ldap
scmBundlePath: blueprints/02-at-scale/casc/oc
scmPollingInterval: PT20M
Persistence:
Expand Down
Loading
Loading