Skip to content

Commit

Permalink
224 scimendpointurl with anoother pattern (#225)
Browse files Browse the repository at this point in the history
* Updating scim api endpoint regex

* Update paths for go releaser

go releaser is now using different paths for arm64 build.
dist/ssosync_linux_arm64/ssosync has become dist/ssosync_linux_arm64_v8.0/ssosync
  • Loading branch information
ChrisPates authored Dec 6, 2024
1 parent 4694c56 commit aea8dbb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ staging.yaml
*.rej
cicd/.DS_Store
*.swo
cicd/.DS_Store
4 changes: 2 additions & 2 deletions cicd/build/package/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ phases:
# Check that the files need to package exist
- ls README.md
- ls SAR.md
- ls dist/ssosync_linux_arm64/ssosync
- ls dist/ssosync_linux_arm64_v8.0/ssosync
- ls dist/ssosync_linux_amd64_v1/ssosync

# Check that the executable works
- ./dist/ssosync_linux_amd64_v1/ssosync --version
- mv dist/ssosync_linux_arm64/ssosync bootstrap
- mv dist/ssosync_linux_arm64_v8.0/ssosync bootstrap

build:
commands:
Expand Down
4 changes: 2 additions & 2 deletions cicd/cloudformation/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ Parameters:
SCIMEndpointUrl:
Description: AWS IAM Identity Center SCIM Endpoint Url
Type: String
AllowedPattern: "https://scim.(us(-gov)?|ap|ca|cn|eu|sa)-(central|(north|south)?(east|west)?)-([0-9]{1}).amazonaws.com/(.*)-([a-z0-9]{4})-([a-z0-9]{4})-([a-z0-9]{12})/scim/v2/"
AllowedPattern: "https://scim.(us(-gov)?|ap|ca|cn|eu|sa)-(central|(north|south)?(east|west)?)-([0-9]{1}).amazonaws.com/([A-Za-z0-9]{11})-([A-Za-z0-9]{4})-([A-Za-z0-9]{4})-([A-Za-z0-9]{4})-([A-Za-z0-9]{12})/scim/v2/?"
NoEcho: true

SCIMEndpointAccessToken:
Description: AWS IAM Identity Center SCIM AccessToken
Type: String
AllowedPattern: '([0-9a-zA-Z/=+-\\]{500,600})'
AllowedPattern: '([0-9a-zA-Z/=+-\\]{500,620})'
NoEcho: true

IdentityStoreId:
Expand Down
2 changes: 1 addition & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Parameters:
Description: |
AWS IAM Identity Center - SCIM Endpoint Url
Default: ""
AllowedPattern: '(?!.*\s)|(https://scim.(us(-gov)?|ap|ca|cn|eu|sa)-(central|(north|south)?(east|west)?)-([0-9]{1}).amazonaws.com/(.*)-([a-z0-9]{4})-([a-z0-9]{4})-([a-z0-9]{12})/scim/v2/?)'
AllowedPattern: '(?!.*\s)|(https://scim.(us(-gov)?|ap|ca|cn|eu|sa)-(central|(north|south)?(east|west)?)-([0-9]{1}).amazonaws.com/([A-Za-z0-9]{11})-([A-Za-z0-9]{4})-([A-Za-z0-9]{4})-([A-Za-z0-9]{4})-([A-Za-z0-9]{12})/scim/v2/?)'

SCIMEndpointAccessToken:
Type: String
Expand Down

0 comments on commit aea8dbb

Please sign in to comment.