Skip to content

Commit

Permalink
Add Default Roles for Azure App AD Groups (SumoLogic#44)
Browse files Browse the repository at this point in the history
* add default roles

* add drone vars

* update descrip

* fix filter
  • Loading branch information
mlclmj authored Aug 10, 2020
1 parent dc40958 commit 8cdda2d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ steps:
backend-config:
- "bucket=remote-state"
- "prefix=nytimes/dv-sumologic-test"
vars:
default_role: "2FA - SumoLogic (Test)"
environment:
SUMOLOGIC_ACCESSID:
from_secret: test_access_id
Expand Down Expand Up @@ -75,6 +77,8 @@ steps:
backend-config:
- "bucket=remote-state"
- "prefix=nytimes/dv-sumologic-test"
vars:
default_role: "2FA - SumoLogic (Test)"
environment:
SUMOLOGIC_ACCESSID:
from_secret: test_access_id
Expand Down Expand Up @@ -140,6 +144,8 @@ steps:
backend-config:
- "bucket=remote-state"
- "prefix=nytimes/dv-sumologic"
vars:
default_role: "2FA - SumoLogic"
environment:
SUMOLOGIC_ACCESSID:
from_secret: access_id
Expand Down Expand Up @@ -168,6 +174,8 @@ steps:
backend-config:
- "bucket=remote-state"
- "prefix=nytimes/dv-sumologic"
vars:
default_role: "2FA - SumoLogic"
environment:
SUMOLOGIC_ACCESSID:
from_secret: access_id
Expand Down
5 changes: 5 additions & 0 deletions terraform/default-roles.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "sumologic_role" "default-role" {
name = var.default_role
description = "Default AD Group role for Sumo Logic"
filter_predicate = "_sourceCategory=/dev/null"
}
4 changes: 4 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variable "default_role" {
type = string
description = "The default AD group that users are added to for Azure SAML integration."
}

0 comments on commit 8cdda2d

Please sign in to comment.