Skip to content

Commit

Permalink
Merge pull request #1188 from navikt/cleanup_confluence_group_access
Browse files Browse the repository at this point in the history
Clean-up confluence group access
  • Loading branch information
eziztm authored Sep 19, 2023
2 parents 43bfe59 + 2d987f6 commit 87abf2e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions apps/backend/nais/backend-dev-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ spec:
value: "https://behandlingskatalog-backend.intern.dev.nav.no"
- name: CLIENT_NOM_GRAPHQL_URL
value: "http://nom-api.nom.svc.cluster.local/graphql"
- name: AZURE_CLIENT_GROUPS
value: "ceab8bf0-0771-4478-bc39-186629b8cc2b"
- name: AZURE_CLIENT_GROUPS_ADMIN
value: "eedc0f72-585e-4814-94f4-25b43d9c8d1b"
- name: AZURE_APP_MAIL_USER
Expand Down
2 changes: 0 additions & 2 deletions apps/backend/nais/backend-prod-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ spec:
value: "https://behandlingskatalog-backend.intern.nav.no"
- name: CLIENT_NOM_GRAPHQL_URL
value: "http://nom-api.nom.svc.cluster.local/graphql"
- name: AZURE_CLIENT_GROUPS
value: "2ee0ef50-718c-43d3-8c05-c839f2dc2490"
- name: AZURE_CLIENT_GROUPS_ADMIN
value: "eb3dd903-42c9-4337-b8df-618a45da47cd"
- name: AZURE_APP_MAIL_USER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public Set<GrantedAuthority> lookupGrantedAuthorities(List<String> groupIds) {
* token v2 does not allow us to fetch group details, so we have to map by id instead
*/
private String roleFor(String group) {
if (securityProperties.getWriteGroups().contains(group)) {
return AppRole.WRITE.name();
}
if (securityProperties.getAdminGroups().contains(group)) {
return AppRole.ADMIN.name();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class SecurityProperties {

private boolean enabled = true;
private String encKey = "";
private List<String> writeGroups;

private List<String> adminGroups;
private List<String> redirectUris;
private String env;
Expand Down
1 change: 0 additions & 1 deletion apps/backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ azure.activedirectory.mail-user=${AZURE_APP_MAIL_USER}
azure.activedirectory.mail-password=${AZURE_APP_MAIL_PASSWORD}

team-catalog.security.enc-key=${AZURE_TOKEN_ENC_KEY:tokenkey}
team-catalog.security.write-groups=${AZURE_CLIENT_GROUPS:nom}
team-catalog.security.admin-groups=${AZURE_CLIENT_GROUPS_ADMIN:nom}
team-catalog.security.redirectUris=http://localhost:3000
team-catalog.security.env=${NAIS_CLUSTER_NAME:local}
Expand Down

0 comments on commit 87abf2e

Please sign in to comment.