-
Notifications
You must be signed in to change notification settings - Fork 36
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
Feature: support custom libreswan secret token #18
Conversation
hack/gen-yaml.sh
Outdated
) | ||
set +x | ||
echo "==== create raven-agent.yaml in $OUT_YAML_DIR ====" | ||
echo "psk='$(openssl rand -hex 64)'" > "${BUILD_YAML_DIR}"/default/psk.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if psk.env
already exist, use the exist key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
raven.sh
Outdated
@@ -19,7 +19,7 @@ set -e -x | |||
|
|||
trap "exit 1" SIGTERM SIGINT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trap
will not work after the script exec
to agent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete it now
pkg/network-engine/gateway.go
Outdated
// TODO: secret PSK config | ||
fmt.Fprintf(file, "%%any %%any : PSK \"%s\"\n", "alibaba") | ||
|
||
psk := os.Getenv("PSK") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PSK is libreswan’s config. Maybe LIBRESWAN_PSK
or BACKEND_LIBRESWAN_PSK
as env name will be better?
@DrmagicE Any suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LIBRESWAN_PSK +1
LGTM |
lgmt |
No description provided.