Comments (9)
well , after a few investigations, i was able to solve the issue while keeping the ssl termination in webapp and setting the ingress port to 443 , i added the below line to the ingress annotations, and it worked
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
from whatsapp-business-api-setup-scripts.
Hi @eumel8, I am not an expert with Kubernetes, please bear with my question here. Could you elaborate a bit more on what you want to setup ingress-nginx for? Thanks!
from whatsapp-business-api-setup-scripts.
@mengyiyuan , sure!
A normal use case would be to terminate Internet traffic on specific Ingress nodes and pass through traffic to the application layer:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: whatsapp
namespace: whatsapp
annotations:
certmanager.k8s.io/cluster-issuer: letsencrypt-production
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: whatsapp.example.com
http:
paths:
- backend:
serviceName: whatsapp-web-service
servicePort: 8080
path: /
tls:
- hosts:
- whatsapp.example.com
secretName: whatsapp-example-com
Additinal features like LetsEncrypt certificates would be possible.
The easiest way to get this done is an expose of a non-ssl http port, like 8080, from the container.
from whatsapp-business-api-setup-scripts.
@eumel8 Sorry for my super late reply! Somehow this comment slipped through my inbox. Thanks a lot for the explanation as well.
If the purpose is to use a custom certificate for https traffic, we provide an API to upload your own certificate: https://developers.facebook.com/docs/whatsapp/api/certificates.
Would this be sufficient for your use case?
from whatsapp-business-api-setup-scripts.
@mengyiyuan Interesting. But we split our architecture typically in application layer (Whatsapp) and internet layer (Kubernetes Ingress Controller. The Ingress Controller terminated SSL connections and with Cert Manager we have a tool for automatically managemnet of SSL certificates with Let's Encrypt
from whatsapp-business-api-setup-scripts.
i am also facing the same problem, trying to run on k8s with ingress controller , i have implemented the same ingress above but i am getting the below error when sending traffic to the webapp
2021-04-30 12:13:42: (mod_openssl.c.1796) SSL: 1 error:1408F09C:SSL routines:ssl3_get_record:http request
2021-04-30 12:13:42: (mod_openssl.c.1796) SSL: 1 error:1408F09C:SSL routines:ssl3_get_record:http request
2021-04-30 12:13:42: (mod_openssl.c.1796) SSL: 1 error:1408F09C:SSL routines:ssl3_get_record:http request
from whatsapp-business-api-setup-scripts.
@eumel8 @mengyiyuan
does it happen to any of you guys to find any solution for this issue, i am facing this issue with my above comment showing the appearing errors after using the above ingress controller setup with k8s
from whatsapp-business-api-setup-scripts.
@OElGebaly @deniojunior Thanks a lot for working on this and sending the pull request.
Sorry that currently we do not have enough resources to maintain the Kubernetes solution, so I would not accept the PR for now because we just don't have enough resources to do the testing internally.
I will keep the PR and this issue open so that people who want to use the ingress service could refer to your examples. Thanks a lot for your understanding.
from whatsapp-business-api-setup-scripts.
For me creating an ingress with @OElGebaly's annotation nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
worked as well!
from whatsapp-business-api-setup-scripts.
Related Issues (20)
- Prod-docker HOT 1
- Why I can't find script package in install packages HOT 1
- How to get the URL of an image in WhatsApp Business Cloud API, while we send an image through WhatsApp HOT 2
- A state that manged was in-correct related to voice message ! HOT 2
- Multi-Product & Single Product Messages not supporting on Cloud API HOT 2
- What HOT 1
- whatsapp for linux HOT 1
- version Grafana 8.3.5 vulnerable to several CVEs HOT 2
- This is for the WhatsApp messeger devs - I'm not sure how to reach them. HOT 5
- Connection to PostgreSQL with required SSL HOT 2
- Should be an option for edit the sent message HOT 1
- [security] grafana 8.5.11 impacted by a CVE HOT 1
- [security] Use a LTS version of prometheus HOT 1
- [monitoring] scraping of endpoint /v1/stats/db is not included in prometheus configuration HOT 1
- Provide the grafana dashboard in the repo HOT 2
- interpolation problems in yaml HOT 1
- WA_DB_CONNECTION_IDLE_TIMEOUT postgresql alternative HOT 1
- Where to find or how to calc the shard_id to shard-number mapping ? HOT 1
- Transforming Business with ICT: Strategies and Solutions 👩💻📈📉 HOT 1
- Error "Invalid authentication token format [] []" even when the api key is correct HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-business-api-setup-scripts.