forked from WoTTsecurity/agent-snap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
131 lines (118 loc) · 2.7 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: wott-agent
version: '0.1.5.0-26'
summary: Web of Trusted Things agent.
description: |
tl;dr - WoTT Agent is the Let's Encrypt for IoT.
grade: stable
confinement: strict
base: core18
apps:
daemon:
command: bin/snapcraft-preload $SNAP/bin/wott-agent daemon
daemon: simple
plugs:
- firewall-control
- hardware-observe
- network
- network-setup-control
- network-bind
- network-observe
- network-control
- process-control
- system-observe
- account-control
- log-observe
- tpm
environment:
XTABLES_LIBDIR: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/xtables
CONFIG_PATH: $SNAP_DATA
CERT_PATH: $SNAP_COMMON/certs
CREDENTIALS_PATH: $SNAP_COMMON/credentials
wott-agent:
command: wott-agent
plugs:
- firewall-control
- hardware-observe
- network
- network-observe
- network-control
- system-observe
- account-control
- log-observe
- tpm
environment:
XTABLES_LIBDIR: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/xtables
CONFIG_PATH: $SNAP_DATA
CERT_PATH: $SNAP_COMMON/certs
CREDENTIALS_PATH: $SNAP_COMMON/credentials
ghostunnel:
command: ghostunnel
plugs:
- network
- network-bind
server:
command: server.sh
plugs:
- network
- network-bind
client:
command: client.sh
plugs:
- network
- network-bind
verify-cert:
command: openssl verify -CAfile "$SNAP_DATA/ca.crt" "$SNAP_DATA/client.crt"
inspect-cert:
command: openssl x509 -in "$SNAP_DATA/client.crt" -text -noout
slots:
wott-certs:
content: wott-certs
interface: content
read:
- $SNAP_DATA
parts:
snapcraft-preload:
source: https://github.com/diddlesnaps/snapcraft-preload.git
source-type: git
source-branch: semaphore-support
plugin: cmake
build-packages:
- on amd64:
- gcc-multilib
- g++-multilib
- else:
- gcc
- g++
wott-agent:
plugin: python
python-version: python3
source: https://github.com/WoTTsecurity/agent.git
requirements:
- requirements.txt
source-type: git
source-branch: master
build-packages:
- python3-git
- libffi-dev
- libffi6
- libssl-dev
- pkg-config
- libsystemd0
- libsystemd-dev
stage-packages:
- iptables
ghostunnel:
plugin: go
go-importpath: github.com/square/ghostunnel
source: https://github.com/square/ghostunnel.git
source-tag: v1.3.0
build-packages:
- build-essential
- libltdl-dev
stage-packages:
- libltdl7
tools:
source: bin/
plugin: dump
organize:
'*': bin/