You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "MakarkinSAkvelon (via GitHub)" <gi...@apache.org> on 2023/03/03 19:42:30 UTC
[GitHub] [beam] MakarkinSAkvelon commented on a diff in pull request #25508: [Playground] Playground network policy+MiTM proxy
MakarkinSAkvelon commented on code in PR #25508:
URL: https://github.com/apache/beam/pull/25508#discussion_r1124935539
##########
playground/backend/containers/go/entrypoint.sh:
##########
@@ -14,13 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-nohup /opt/mitmproxy/mitmdump -s /opt/mitmproxy/allow_list_proxy.py -p 8081 &
-while [ ! -f /home/appuser/.mitmproxy/mitmproxy-ca.pem ] ;
-do
- sleep 2
-done
-openssl x509 -in /home/appuser/.mitmproxy/mitmproxy-ca.pem -inform PEM -out /home/appuser/.mitmproxy/mitmproxy-ca.crt
-cp /home/appuser/.mitmproxy/mitmproxy-ca.crt /usr/local/share/ca-certificates/extra/
-update-ca-certificates
-
+if [[ -n "$PLAYGROUND_MITM_SERVICE_HOST" ]] && [[ -n "$PLAYGROUND_MITM_SERVICE_PORT" ]]
+then
+ export http_proxy=http://$PLAYGROUND_MITM_SERVICE_HOST:$PLAYGROUND_MITM_SERVICE_PORT
Review Comment:
Direct internet connection for backend runners will be closed, so it will be more securely
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org