New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ktr03rtk/touring-log-service/vpn-client

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ktr03rtk/touring-log-service/vpn-client

  • v0.0.0-20221113071433-3ec3138ecfe7
  • Source
  • Go
  • Socket score

Version published
Created
Source

VPN client

Purpose

This VPN client cronjob download vpn config file from S3 bucket and execute openvpn command to VPN connection with the VPN server of the public cloud.

Create sealed secret manifest of AWS credential

Store credential to file. Then, Remove command history from ~/.bash_history.

echo -n 'foo' > access_key_id.txt
echo -n 'bar' > secret_access_key.txt
echo -n 'baz' > bucket.txt
echo -n 'foobar' > api_key.txt
echo -n 'barbaz' > endpoint.txt

Install kubeseal cli and create controller resource. github Create sealed secret manifest from certificate.

kubectl create secret -n vpn generic vpn-client-credential \
  --from-file=access_key_id=./access_key_id.txt \
  --from-file=secret_access_key=./secret_access_key.txt \
  --from-file=bucket=./bucket.txt \
  --from-file=api_key=./api_key.txt \
  --from-file=endpoint=./endpoint.txt \
  -o yaml --dry-run=client >secret.yml
kubeseal -o yaml <secret.yml >sealedsecret.yml
rm secret.yml access_key_id.txt secret_access_key.txt bucket.txt api_key.txt endpoint.txt

Copy sealed secret manifest to vpn client manifest

Copy sealed secret manifest to the part of vpn_client.yml

Usage

Apply vpn_client.yml and execute pub/sub command.

Create AWS resource for VPN server. (the terraform github repository is private. Sorry.)

FAQs

Package last updated on 13 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc