Skip to content

[NoMongo] Self Signed SSL Certificates Causing Issues with Caddy #2869

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

Closed
vasujain275 opened this issue Jan 18, 2025 · 20 comments
Closed

[NoMongo] Self Signed SSL Certificates Causing Issues with Caddy #2869

vasujain275 opened this issue Jan 18, 2025 · 20 comments
Assignees
Labels
bug Something isn't working unapproved Unapproved for Pull Request

Comments

@vasujain275
Copy link
Contributor

Describe the bug
The development server is currently configured to use self-signed certificates for HTTPS in our Express GraphQL API. This is causing issues when hosting on a cloud VPS with a reverse proxy (Caddy) configured. The development server should use HTTP only, leaving HTTPS to be handled by Caddy in the production environment.

This issue is blocking progress on hosting the API on the cloud VPS (related to issue #1428).

To Reproduce
Steps to reproduce the behavior:

  1. Set up the talawa api on your local dev.
  2. Attempt to access the API via HTTPS, it will show warning that this site is using unserucred certificates for https.

Expected behavior
The talawa api should be acceed by http only in the local envirment which can be converted to https using caddy in production.

Actual behavior
The self-signed certificates from the development server conflict with the reverse proxy (Caddy) configuration, leading to errors when accessing the API via HTTPS on the cloud VPS.

Screenshots

Image

Additional details
This issue is a blocker for issue #1428. Resolving this would allow the development server to run on HTTP only, and Caddy to handle HTTPS in production, enabling smooth deployment to the cloud VPS.

@vasujain275 vasujain275 added the bug Something isn't working label Jan 18, 2025
@github-actions github-actions bot added the unapproved Unapproved for Pull Request label Jan 18, 2025
@palisadoes
Copy link
Contributor

@xoldd This may be something to investigate

@xoldd
Copy link
Contributor

xoldd commented Jan 19, 2025

In develop-postgres branch the node.js server for talawa api runs only on http. For accessing it over https in all environments the self signed certificates are generated and managed internally by the caddy docker container when it detects that the value of CADDY_TALAWA_API_DOMAIN environment variable is localhost. It is a feature provided by caddy for easily testing if the application is working properly over https in development environment as well.

@vasujain275
Copy link
Contributor Author

@xoldd but the issue is with devlop branch, it is using openssl generated self signed certificates for the node http server.

@xoldd
Copy link
Contributor

xoldd commented Jan 19, 2025

Then you'll have to get rid of it I guess? Idk what else could be done.

@palisadoes
Copy link
Contributor

@vasujain275 have you found a solution for disabling HTTPS?

@PurnenduMIshra129th
Copy link

PurnenduMIshra129th commented Jan 21, 2025

@palisadoes please assign i will try to do it. If no one is assigned

@Cioppolo14
Copy link
Contributor

@PurnenduMIshra129th Right now you have 2 issues already, let me know if one issue is completed, and I can assign you.

Our policy is to assign no more than two issues to each contributor across all repositories. This way everyone gets a chance to participate in the projects. We sometimes give exceptions for more urgent cases and sometimes we lose track, but the policy stands. You have reached your limit, please wait until your existing issues are closed before requesting more issues. You could unassign yourself from one of the other issues too.

@prayanshchh
Copy link
Contributor

can i try this?

@PurnenduMIshra129th
Copy link

@Cioppolo14 ok i understand

@palisadoes palisadoes changed the title Self Signed SSL Certificates Causing Issues with Caddy [NoMongo] Self Signed SSL Certificates Causing Issues with Caddy Jan 24, 2025
@IITI-tushar
Copy link

IITI-tushar commented Jan 25, 2025

@Cioppolo14 can i take this??please assign...

Copy link

github-actions bot commented Feb 5, 2025

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Feb 5, 2025
@Cioppolo14
Copy link
Contributor

Unassigning due to inactivity and/or no submitted PR. Others need to get a chance. Please let us know whether you want to be reassigned before someone else requests assignment or select another issue.

@IITI-tushar
Copy link

assign me again please @Cioppolo14

@github-actions github-actions bot removed the no-issue-activity No issue activity label Feb 6, 2025
@IITI-tushar
Copy link

@vasujain275 @xoldd
Here,
https is only for production and development is using http only...

Image

@IITI-tushar
Copy link

@vasujain275 can you provide more info on how to reproduce this??

@PurnenduMIshra129th
Copy link

@IITI-tushar did you find any solution?

@IITI-tushar
Copy link

@PurnenduMIshra129th are you able to reproduce it??

@PurnenduMIshra129th
Copy link

No i am not working on this issue .

@palisadoes
Copy link
Contributor

Is this still valid?

@palisadoes
Copy link
Contributor

Closing.

@palisadoes palisadoes closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in NoMongo: Talawa-API Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unapproved Unapproved for Pull Request
Projects
Archived in project
Development

No branches or pull requests

7 participants