Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do away with Keycloak and Minio in Staging environment #54

Closed
himeshr opened this issue Dec 10, 2024 · 4 comments
Closed

Do away with Keycloak and Minio in Staging environment #54

himeshr opened this issue Dec 10, 2024 · 4 comments
Assignees

Comments

@himeshr
Copy link
Contributor

himeshr commented Dec 10, 2024

Need

Currently staging environment is configured to work in IDPType = 'Both' implying that it can have an Org setup to work with either cognito or keycloak. This results in the need to keep Staging Keycloak and minio systems up and running all time, though they do not get used.

AC

Only in Staging environment

  • Switch IDPType to 'Cognito'
  • Disable Keycloak
  • Disable Minio
  • Bring down Keycloak and Minio EC2 instances
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product Dec 10, 2024
@himeshr himeshr moved this from New Issues to Focus Items in Avni Product Dec 10, 2024
@petmongrels
Copy link
Contributor

Lets see if we can have avni-server start without keycloak and cognito running. More likely there is an option to do this in upgraded version of spring if not in the current one.

@himeshr
Copy link
Contributor Author

himeshr commented Dec 10, 2024

Lets see if we can have avni-server start without keycloak and cognito running. More likely there is an option to do this in upgraded version of spring if not in the current one.

You meant Keycloak and Minio.?
We can currently change the settings to just run with Cognito, you do not wanna do that.? And instead just get it to ignore keycloak / minio connection issues and start-up?

@petmongrels
Copy link
Contributor

  • Yes. keycloak and minio
  • For now we can change the config to cognito, if that allows us to stop these two services immediately
  • We can test that server starts without them running as final activity and change config to both and keep it in that mode. We can also test that if keycloak and minio is started then we have no issues.

himeshr added a commit that referenced this issue Dec 10, 2024
@himeshr himeshr self-assigned this Dec 10, 2024
@himeshr himeshr moved this from Focus Items to In Progress in Avni Product Dec 10, 2024
@himeshr
Copy link
Contributor Author

himeshr commented Dec 10, 2024

  • Running with idpType=Both, with the Keycloak instance stopped, caused problem during server startup.
  • Starting the Keycloak and Minio stopped instances and enabling their usage in config (staging_vars => avni_server_idp_type: "cognito") works as expected, but would need following additional activity
    • Update IP address in Route53 for "minio-staging.avniproject.org" and "keycloak-staging.avniproject.org" as per new ip allocated to their instances
    • Renew SSL certs for the 2 machines(minio and Keycloak) using let's encrypt commands if needed

@himeshr himeshr moved this from In Progress to Done in Avni Product Dec 10, 2024
himeshr added a commit that referenced this issue Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants