Skip to content

Apache DataFusion SQL Query Engine

ARROW-7828: [Release] Remove SSH keys for internal use

Sutou Kouhei020960cc6a84
diff --git a/dev/release/.gitignore b/dev/release/.gitignore
index f32fcb03c6..f3d708a6a2 100644
--- a/dev/release/.gitignore
+++ b/dev/release/.gitignore
@@ -16,4 +16,6 @@
# under the License.
/.env
+/binary/id_rsa
+/binary/id_rsa.pub
/binary/tmp/
diff --git a/dev/release/binary-common.sh b/dev/release/binary-common.sh
index 414638436c..7c66e375f8 100644
--- a/dev/release/binary-common.sh
+++ b/dev/release/binary-common.sh
@@ -26,6 +26,10 @@ else
fi
docker_ssh_key="${SOURCE_DIR}/binary/id_rsa"
+if [ ! -f "${docker_ssh_key}" ]; then
+ ssh-keygen -N "" -f "${docker_ssh_key}"
+fi
+
docker_gpg_ssh() {
local ssh_port=$1
shift
diff --git a/dev/release/binary/id_rsa b/dev/release/binary/id_rsa
deleted file mode 100644
index e0fb3dddf0..0000000000
--- a/dev/release/binary/id_rsa
+++ /dev/null
@@ -1,44 +0,0 @@
------BEGIN OPENSSH PRIVATE KEY-----
-b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
-NhAAAAAwEAAQAAAQEArqq7sMjiHbD5d3DlMgHqH7xor9KF7jbihKSiNeQ8rYgMZjuKEYnA
-Uw445fISgoDnlAyOymLsir4Bu6tu8BPOvXTkKXhS5JQJ7tMPTxaa2Im4+O0uo6qxYn5+Xr
-riK9h4c5TAs701s3NmFMcFoBbrtfpeyARuRE5j5ApC7/g2Rvnpm7IQ6rEr0snSThKeLPBo
-qzI6tBwD8wRkSiF6WvoV7HiHwndAD7Hwo33LaYP+TrReV0xg/09MU7JNRdGIZbj4mM/dAX
-27Tt9WM/NBx2PTdZreqBcxf428f1QHf+mm8q58YQJkjuv/ZeaYMuaVKot5DjEXp5QB2P5i
-7HnXuBf1TQAAA8imbngXpm54FwAAAAdzc2gtcnNhAAABAQCuqruwyOId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AipH7bd8AAACBAM/1kSSTnqR68Tlh
-1kvaveSW9mY1C5jDC7Jwu6NEZBFWU9Vyha623aEq8507LYYasWQFAw3DONvF6waenXOdFR
-yt1Z0sdrl4cpYWj6znLdjCPwytBuNOnxJuhxSI4m8PIeHp9ZweCS8mezIYYRS+OpGHQS0H
-CKG5n9eAGEBgi2pTAAAAC2tvdUBtb3VzaWFuAQIDBAUGBw==
------END OPENSSH PRIVATE KEY-----
-
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
diff --git a/dev/release/binary/id_rsa.pub b/dev/release/binary/id_rsa.pub
deleted file mode 100644
index 11120e8536..0000000000
--- a/dev/release/binary/id_rsa.pub
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuqruwyOIdsPl3cOUyAeofvGiv0oXuNuKEpKI15DytiAxmO4oRicBTDjjl8hKCgOeUDI7KYuyKvgG7q27wE869dOQpeFLklAnu0w9PFprYibj47S6jqrFifn5euuIr2HhzlMCzvTWzc2YUxwWgFuu1+l7IBG5ETmPkCkLv+DZG+embshDqsSvSydJOEp4s8GirMjq0HAPzBGRKIXpa+hXseIfCd0APsfCjfctpg/5OtF5XTGD/T0xTsk1F0YhluPiYz90BfbtO31Yz80HHY9N1mt6oFzF/jbx/VAd/6abyrnxhAmSO6/9l5pgy5pUqi3kOMRenlAHY/mLsede4F/VN kou@mousian