-
Notifications
You must be signed in to change notification settings - Fork 1
/
repos.tf
192 lines (168 loc) · 4.46 KB
/
repos.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
locals {
github_repos = {
###################
# Core Components #
###################
netauth = {
description = "The NetAuth service itself."
homepage_url = "https://netauth.org"
teams = ["core-dev"]
topics = [
"authentication-service",
"golang",
"secure-access",
]
}
protocol = {
description = "The Protobuf files for the NetAuth GRPC protocol"
teams = ["core-dev"]
topics = [
"protobuf",
"protocol",
"rpc",
]
}
############
# Websites #
############
docs = {
description = "Documentaiton for NetAuth"
teams = ["core-dev"]
topics = [
"documentation",
"mdbook",
]
}
"netauth.org" = {
description = "hugo source files for netauth.org"
homepage_url = "https://netauth.org"
teams = ["core-dev"]
topics = [
"devblog",
"docs",
"hugo-site",
]
}
################################
# Interoperability & Ecosystem #
################################
authserver = {
description = "A web microservice suitable for using request delegation authentication."
teams = ["core-dev"]
topics = [
"authentication-backend",
"secure-login",
]
}
ldap = {
description = "An LDAP proxy for connecting LDAP aware applications to NetAuth"
teams = ["core-dev"]
topics = [
"ldap",
"proxy",
]
}
localizer = {
description = "A tool to make your NetAuth accounts local"
teams = ["core-dev"]
topics = [
"identity",
"shadow-database",
]
}
netkeys = {
description = "An AuthorizedKeysCommand implementation for NetAuth"
teams = ["core-dev"]
topics = [
"ssh",
"authentication-backend",
"secure-login",
]
}
nsscache = {
description = "Tool to create nsscache maps from NetAuth"
teams = ["core-dev"]
topics = [
"identity",
"authorization",
"nss",
]
}
pam-helper = {
description = "A helper executable to use with pam_exec"
teams = ["core-dev"]
topics = [
"authentication",
"pam",
]
}
pam_netauth = {
description = "PAM plugin which implements the NetAuth protocol"
teams = ["core-dev"]
topics = [
"authentication",
"pam-module",
"secure-login",
"pam-authentication",
]
}
webui = {
description = "A web interface for NetAuth"
teams = ["core-dev"]
topics = [
"web-frontend",
"gui",
]
}
netauth-python = {
description = "NetAuth client library for Python"
homepage_url = "https://python.netauth.org"
teams = ["core-dev", "python-dev"]
topics = [
"secure-access",
"authentication-service",
"python",
]
}
###########
# Plugins #
###########
plugin-okta = {
description = "A NetAuth plugin which mirrors changes to Okta"
teams = ["core-dev"]
topics = [
"okta-api",
"secure-access",
"security-tools",
]
}
gh-meta = {
# How Meta!
description = "Terraform source for managing github"
teams = ["core-dev"]
topics = ["terraform"]
}
}
}
resource "github_repository" "repositories" {
for_each = local.github_repos
name = each.key
description = each.value.description
has_issues = true
has_downloads = true
has_projects = false
has_wiki = false
homepage_url = lookup(each.value, "homepage_url", null)
allow_merge_commit = lookup(each.value, "allow_merge_commit", false)
allow_squash_merge = lookup(each.value, "allow_squash_merge", false)
topics = flatten([lookup(each.value, "topics", []), ["netauth"]])
vulnerability_alerts = true
}
resource "github_team_repository" "team_repositories" {
for_each = { for i in flatten([for repo_name, repo in local.github_repos :
[for team_name in repo.teams : { repo_name = repo_name, team_name = team_name }]
]) : "${i.repo_name}_${i.team_name}" => i }
team_id = github_team.teams[each.value.team_name].id
repository = github_repository.repositories[each.value.repo_name].name
permission = "push"
}