-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from MZC-CSC/main
add permissions ticket and docker deploy method
- Loading branch information
Showing
31 changed files
with
1,183 additions
and
1,088 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
## MCIAMMANAGER ENV SETUP | ||
ADDR=0.0.0.0 | ||
PORT=4000 # this is for DEV env { :3000 to nginx, :5000 to deploy standalone } | ||
PORT=4000 | ||
|
||
DATABASE_USER=db_user | ||
DATABASE_PASS=db_password | ||
DATABASE_HOST=db_host | ||
DATABASE=db | ||
## DB MODE | ||
MODE=standalone # [standalone|docker] both are same. | ||
|
||
DEV_DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASS}@${DATABASE_HOST}:5432/${DATABASE} # you can directly use this line for db connection | ||
DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASS}@${DATABASE_HOST}:5432/${DATABASE} # you can directly use this line for db connection | ||
## Resources Permission MODE | ||
USE_TICKET_VALID=true # [true|false] | ||
|
||
KEYCLOAK_HOST=https://example.com | ||
KEYCLAOK_REALM=mciam | ||
KEYCLAOK_CLIENT=mciam | ||
KEYCLAOK_CLIENT_SECRET=mciamclientsecret | ||
KEYCLAOK_ADMIN=admin | ||
KEYCLAOK_ADMIN_PASSWORD=admin | ||
## docker postgres setup | ||
IAM_POSTGRES_USER=mciamdb | ||
IAM_POSTGRES_PASSWORD=mciamdbadmin | ||
IAM_POSTGRES_DATABASE_HOST=mc-iam-manager-db | ||
IAM_POSTGRES_DB=mciamdb | ||
|
||
MCINFRAMANAGER=http://example.com:1323/tumblebug | ||
MCINFRAMANAGER_APIUSERNAME=default | ||
MCINFRAMANAGER_APIPASSWORD=default | ||
## mciammanager db | ||
DATABASE_URL=postgres://${IAM_POSTGRES_USER}:${IAM_POSTGRES_PASSWORD}@${IAM_POSTGRES_DATABASE_HOST}:5432/${IAM_POSTGRES_DB} | ||
|
||
# SECURITY TOKEN FOR POC STS | ||
# YOU DONT NEED BELOW LINE FOR NORMAL DEPLOY | ||
AWSRoleArn=arn:aws:iam::xxxxxxxxx:role/xxxxxxxxxxxx | ||
## Keycloak | ||
KEYCLOAK_HOST=http://mc-iam-manager-kc:8080 | ||
KEYCLAOK_REALM=mciamKeycloakRealm | ||
KEYCLAOK_CLIENT=mciamKeycloakClient | ||
KEYCLAOK_CLIENT_SECRET=testsecret | ||
|
||
AlibabaOIDCProviderArn=acs:ram::xxxxxxxxx:oidc-provider/xxxxxxxxx | ||
AlibabaRoleArn=acs:ram::xxxxxxxxx:role/xxxxxxxxx | ||
## mc-infra-manager | ||
MCINFRAMANAGER=http://example.com:1323/tumblebug | ||
MCINFRAMANAGER_APIUSERNAME=default | ||
MCINFRAMANAGER_APIPASSWORD=default |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
development: | ||
url: {{envOr "DEV_DATABASE_URL" "postgres://postgres:postgres@db:5432/mc_iam_manager_development?sslmode=disable"}} | ||
standalone: | ||
url: {{envOr "DATABASE_URL" "postgres://postgres:postgres@db:5432/mc_iam_manager_development?sslmode=disable"}} | ||
|
||
production: | ||
url: {{envOr "DATABASE_URL" "postgres://postgres:postgres@db:5432/mc_iam_manager_production?sslmode=disable"}} | ||
docker: | ||
url: {{envOr "DATABASE_URL" "postgres://postgres:postgres@db:5432/mc_iam_manager_development?sslmode=disable"}} |
Oops, something went wrong.