Skip to content

Commit 1bc9bb3

Browse files
committed
hiba: Add initial recipe for hiba
Discussion to install the HIBA Internal OpenSSH to fetch dependencies can be found in https://lists.openembedded.org/g/openembedded-core/topic/94475279#172977 HIBA is a system built on top of regular OpenSSH certificate-based authentication that allows to manage flexible authorization of principals on pools of target hosts without the need to push customized authorized_users files periodically. This recipe allow us to manage SSH to production machines easily and not rely on authorized keys. Tested: Ran the local-setup.sh and works fine on a BMC. ``` $ ssh -F /tmp/tmp.w8itTW/ssh_config -p 2201 root@localhost ##################################################### # setup-local.sh # # Host Identity Based Authorization SSHD example. # ##################################################### prodHost: limited access Connection to localhost closed. $ ssh -F /tmp/tmp.w8itTW/ssh_config -p 2202 root@localhost ##################################################### # setup-local.sh # # Host Identity Based Authorization SSHD example. # ##################################################### Last login: Thu Jan 1 00:47:28 1970 from ::1 ``` Signed-off-by: Willy Tu <wltu@google.com>
1 parent c4829fa commit 1bc9bb3

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
SUMMARY = "Google Host Identity Based Authorization"
2+
DESCRIPTION = "HIBA is a system built on top of regular OpenSSH \
3+
certificate-based authentication that allows to manage flexible \
4+
authorization of principals on pools of target hosts without the need to \
5+
push customized authorized_users files periodically."
6+
7+
S = "${WORKDIR}/git/hiba"
8+
LICENSE = "BSD-3-Clause"
9+
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=7e161abe9a4585310725dd86c28d1ae2"
10+
11+
PV = "git${SRCPV}"
12+
13+
inherit autotools
14+
15+
DEPENDS = "openssl openssh zlib"
16+
RDEPENDS:${PN} = " bash"
17+
18+
SRC_URI = " \
19+
git://github.com/google/hiba;protocol=https;branch=main;destsuffix=git/hiba;name=hiba \
20+
git://github.com/openssh/openssh-portable.git;protocol=https;branch=master;destsuffix=git/openssh-portable;name=openssh \
21+
"
22+
SRCREV_hiba = "cae606dafc5692240ac49441fd57653d7aade99b"
23+
24+
# Internal OpenSSH version for HIBA to link against (the version doesn't have
25+
# to match the actual installed version).
26+
# Discussion in
27+
# https://lists.openembedded.org/g/openembedded-core/topic/94475279#172977
28+
SRCREV_openssh = "15a01cf15f396f87c6d221c5a6af98331c818962"
29+
SRCREV_FORMAT = "hiba"
30+
31+
EXTRA_OECONF = " \
32+
--with-opensshdir=${WORKDIR}/git/openssh-portable \
33+
--prefix=/usr/ \
34+
"
35+
36+
do_configure_openssh() {
37+
cd "${WORKDIR}/git/openssh-portable"
38+
autoreconf
39+
./configure ${CONFIGUREOPTS}
40+
cd "${S}"
41+
}
42+
43+
do_compile_openssh() {
44+
cd "${WORKDIR}/git/openssh-portable"
45+
oe_runmake
46+
cd "${S}"
47+
}
48+
49+
addtask compile_openssh before do_configure after do_configure_openssh
50+
addtask configure_openssh before do_compile_openssh after do_unpack

0 commit comments

Comments
 (0)