Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ GATEWAY_PUBLIC_DOMAIN=<your domain for zt-https>
# for certbot
CERTBOT_ENABLED=false
CF_API_TOKEN=
CF_ZONE_ID=
ACME_URL=https://acme-staging-v02.api.letsencrypt.org/directory
EOF
if [ -f $CONFIG_FILE ]; then
Expand Down Expand Up @@ -113,7 +112,10 @@ EOF
build_host() {
echo "Building binaries"
(cd $DSTACK_DIR && cargo build --release --target-dir ${RUST_BUILD_DIR})
cp ${RUST_BUILD_DIR}/release/{dstack-gateway,dstack-kms,dstack-vmm,supervisor} .
for bin in dstack-gateway dstack-kms dstack-vmm supervisor; do
cp "${RUST_BUILD_DIR}/release/${bin}" ".${bin}.new"
mv -f ".${bin}.new" "./${bin}"
done
}

# Step 2: build guest images
Expand Down Expand Up @@ -221,8 +223,6 @@ workdir = "$CERBOT_WORKDIR"
acme_url = "$ACME_URL"
# Cloudflare API token
cf_api_token = "$CF_API_TOKEN"
# Cloudflare zone ID
cf_zone_id = "$CF_ZONE_ID"
# Auto set CAA record
auto_set_caa = true
# Domain to issue certificates for
Expand Down
2 changes: 1 addition & 1 deletion dstack
Submodule dstack updated 188 files
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Disable all password-based authentication
PasswordAuthentication no
PermitEmptyPasswords no
KbdInteractiveAuthentication no

# Only allow public key authentication
PubkeyAuthentication yes
PermitRootLogin prohibit-password
10 changes: 10 additions & 0 deletions meta-dstack/recipes-connectivity/openssh/openssh_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += "file://disable-password-auth.conf"

do_install:append() {
install -d ${D}${sysconfdir}/ssh/sshd_config.d
install -m 0644 ${UNPACKDIR}/disable-password-auth.conf ${D}${sysconfdir}/ssh/sshd_config.d/
}

FILES:${PN}-sshd += "${sysconfdir}/ssh/sshd_config.d/"
7 changes: 0 additions & 7 deletions meta-dstack/recipes-core/images/dstack-rootfs-base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,4 @@ mkdirs() {
mkdir -p ${IMAGE_ROOTFS}/etc/wireguard
mkdir -p ${IMAGE_ROOTFS}/var/lib/docker
ln -sf dstack ${IMAGE_ROOTFS}/tapp

# Aliases passwd files to a subdirectory
mkdir -p ${IMAGE_ROOTFS}/etc/users
mv ${IMAGE_ROOTFS}/etc/passwd ${IMAGE_ROOTFS}/etc/users/
mv ${IMAGE_ROOTFS}/etc/shadow ${IMAGE_ROOTFS}/etc/users/
ln -s users/passwd ${IMAGE_ROOTFS}/etc/passwd
ln -s users/shadow ${IMAGE_ROOTFS}/etc/shadow
}