Skip to content

Commit 6597883

Browse files
RoseSecurityaknysh
andauthored
feat: Provide Anonymous ArgoCD Access (cloudposse/terraform-aws-components#1017)
Co-authored-by: Andriy Knysh <[email protected]>
1 parent 151998f commit 6597883

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

src/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ Reference: https://stackoverflow.com/questions/75046330/argo-cd-error-server-sec
511511
| <a name="input_alb_logs_bucket"></a> [alb\_logs\_bucket](#input\_alb\_logs\_bucket) | The name of the bucket for ALB access logs. The bucket must have policy allowing the ELB logging principal | `string` | `""` | no |
512512
| <a name="input_alb_logs_prefix"></a> [alb\_logs\_prefix](#input\_alb\_logs\_prefix) | `alb_logs_bucket` s3 bucket prefix | `string` | `""` | no |
513513
| <a name="input_alb_name"></a> [alb\_name](#input\_alb\_name) | The name of the ALB (e.g. `argocd`) provisioned by `alb-controller`. Works together with `var.alb_group_name` | `string` | `null` | no |
514+
| <a name="input_anonymous_enabled"></a> [anonymous\_enabled](#input\_anonymous\_enabled) | Toggles anonymous user access using default rbac setting (defaults to readonly) | `bool` | `false` | no |
514515
| <a name="input_argocd_apps_chart"></a> [argocd\_apps\_chart](#input\_argocd\_apps\_chart) | Chart name to be installed. The chart name can be local path, a URL to a chart, or the name of the chart if `repository` is specified. It is also possible to use the `<repository>/<chart>` format here if you are running Terraform on a system that the repository has been added to with `helm repo add` but this is not recommended. | `string` | `"argocd-apps"` | no |
515516
| <a name="input_argocd_apps_chart_description"></a> [argocd\_apps\_chart\_description](#input\_argocd\_apps\_chart\_description) | Set release description attribute (visible in the history). | `string` | `"A Helm chart for managing additional Argo CD Applications and Projects"` | no |
516517
| <a name="input_argocd_apps_chart_repository"></a> [argocd\_apps\_chart\_repository](#input\_argocd\_apps\_chart\_repository) | Repository URL where to locate the requested chart. | `string` | `"https://argoproj.github.io/argo-helm"` | no |

src/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ module "argocd" {
148148
"${path.module}/resources/argocd-values.yaml.tpl",
149149
{
150150
admin_enabled = var.admin_enabled
151+
anonymous_enabled = var.anonymous_enabled
151152
alb_group_name = var.alb_group_name == null ? "" : var.alb_group_name
152153
alb_logs_bucket = var.alb_logs_bucket
153154
alb_logs_prefix = var.alb_logs_prefix

src/resources/argocd-values.yaml.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ server:
7474
config:
7575
url: https://${argocd_host}
7676
admin.enabled: "${admin_enabled}"
77+
users.anonymous_enabled: "${anonymous_enabled}"
7778

7879
# https://github.com/argoproj/argo-cd/issues/7835
7980
kustomize.buildOptions: --enable-helm

src/variables-argocd.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ variable "admin_enabled" {
101101
default = false
102102
}
103103

104+
variable "anonymous_enabled" {
105+
type = bool
106+
description = "Toggles anonymous user access using default RBAC setting (Defaults to read-only)"
107+
default = false
108+
}
109+
104110
variable "oidc_enabled" {
105111
type = bool
106112
description = "Toggles OIDC integration in the deployed chart"

0 commit comments

Comments
 (0)