-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
128 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# A list of org_id's that allow access to the internal API of the fleet manager. | ||
allowed_org_ids: | ||
# RH ACS Organization (returned for personal tokens obtained by ocm token). | ||
- "11009103" | ||
# RHACS Managed Service Org for staging (Entry `RHACS Managed Service Org for AWS Billing` in Bitwarden). | ||
- "16064548" | ||
# ACS RH SSO Org Prod | ||
- "16134752" | ||
# ACS RH SSO ORG Development | ||
- "16155304" | ||
allowed_subjects: | ||
- "system:serviceaccount:rhacs:fleetshard-sync" | ||
allowed_audience: | ||
- "acs-fleet-manager-private-api-development" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# A list of org_id's that allow access to the internal API of the fleet manager. | ||
allowed_org_ids: | ||
# ACS RH SSO Org Prod | ||
- "16134752" | ||
allowed_subjects: | ||
- "system:serviceaccount:rhacs:fleetshard-sync" | ||
allowed_audiences: | ||
- "acs-fleet-manager-private-api-production" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package auth | ||
|
||
import ( | ||
"testing" | ||
|
||
. "github.com/onsi/gomega" | ||
) | ||
|
||
func TestFleetShardAuthZConfig_ReadFiles(t *testing.T) { | ||
RegisterTestingT(t) | ||
c := &FleetShardAuthZConfig{ | ||
Enabled: true, | ||
File: "pkg/auth/testdata/fleetshard-authz.yaml", | ||
} | ||
err := c.ReadFiles() | ||
Expect(err).ToNot(HaveOccurred()) | ||
Expect(c.AllowedOrgIDs).To(Equal(ClaimValues{"12345678"})) | ||
Expect(c.AllowedSubjects).To(Equal(ClaimValues{"test-sub"})) | ||
Expect(c.AllowedAudiences).To(Equal(ClaimValues{"test-aud"})) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
allowed_org_ids: | ||
- "12345678" | ||
allowed_subjects: | ||
- "test-sub" | ||
allowed_audiences: | ||
- "test-aud" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters