Compare commits
110 Commits
v2023.4.4-
...
2024.1.11-
Author | SHA1 | Date | |
---|---|---|---|
a5c81dc4b4 | |||
fefac830fd | |||
c43d1a5da6 | |||
3f200e1674 | |||
d9f11ac877 | |||
16a59fe027 | |||
8d42bf0b34 | |||
3c3d7fe82d | |||
ddddbbc895 | |||
32ce5a206f | |||
6a7945d05c | |||
86ddb6a4c1 | |||
a6da1be3bf | |||
5c2d128e8c | |||
144fdd8bf3 | |||
8b33bacbd5 | |||
b842dd5263 | |||
0c9d86b850 | |||
b2b839cab4 | |||
7fa3011ab2 | |||
17e06ce19b | |||
0d2aac41a8 | |||
38795a9767 | |||
327226aa74 | |||
fbf818e423 | |||
46a853a3f7 | |||
f31a63efdc | |||
c8a2303ff3 | |||
ced2658eec | |||
ce9b3003fe | |||
b0898eefc3 | |||
4da723e908 | |||
e756a60373 | |||
9068203e71 | |||
a84fa05c27 | |||
6c78bc5c7c | |||
75cab3264f | |||
1a270fa4d8 | |||
6318a8b497 | |||
3d7a094cb8 | |||
077964c7b9 | |||
3af6324121 | |||
b31900ae2f | |||
777648ff44 | |||
d9919c888f | |||
1eb3de4f16 | |||
9326bac792 | |||
3c1f5042c8 | |||
14eecbf01e | |||
c51ac0adc7 | |||
3e168dadf6 | |||
61ac5e8ae0 | |||
929394c479 | |||
a1ec5b87c8 | |||
5c36955c13 | |||
6cf01adb61 | |||
8e88b5a7f1 | |||
42d49eb090 | |||
4217850c30 | |||
4a58847d52 | |||
42559408da | |||
a5fbe3e6e0 | |||
d73e027ee3 | |||
054744e3e9 | |||
0e664bce44 | |||
58ef3b0077 | |||
6a976c0b51 | |||
d188af81af | |||
e975381b4f | |||
0d03a708f9 | |||
64ea0e05a9 | |||
10844a15a3 | |||
0394e34055 | |||
541d30d74f | |||
87a45090e0 | |||
fcd159c0fb | |||
eda02c6be3 | |||
ef3048b005 | |||
51e1dc3b2d | |||
3d01cf0f93 | |||
bb03b3a54a | |||
813f837291 | |||
ed35ee5002 | |||
4b5bc0bc82 | |||
dee62184b9 | |||
76656e8dbf | |||
41b1619fc1 | |||
35d5ee868f | |||
765257b4b1 | |||
2315ee7b61 | |||
86a6d81e1d | |||
c4427dfd2b | |||
280b0fbd50 | |||
8fb86c600f | |||
12f8b3aa25 | |||
2d2dc29c84 | |||
4cf53d9f15 | |||
34e4769b49 | |||
47c2546d54 | |||
21173911fb | |||
b213b8d1ae | |||
9dcddc5566 | |||
9a46c9d3d0 | |||
69f183d126 | |||
e8829170e5 | |||
253c93dbac | |||
d2f865ccbb | |||
7ee4344adc | |||
06b1235707 | |||
2e1ee44e6a |
44
.chglog/CHANGELOG.tpl.md
Normal file
44
.chglog/CHANGELOG.tpl.md
Normal file
@ -0,0 +1,44 @@
|
||||
{{ if .Versions -}}
|
||||
{{ if .Unreleased.CommitGroups -}}
|
||||
<a name="unreleased"></a>
|
||||
## [Unreleased]
|
||||
|
||||
{{ range .Unreleased.CommitGroups -}}
|
||||
### {{ .Title }}
|
||||
{{ range .Commits -}}
|
||||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ range .Versions }}
|
||||
<a name="{{ .Tag.Name }}"></a>
|
||||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
|
||||
{{ range .CommitGroups -}}
|
||||
### {{ .Title }}
|
||||
{{ range .Commits -}}
|
||||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
_Nothing functionally significant._
|
||||
{{ end -}}
|
||||
|
||||
{{- if .NoteGroups -}}
|
||||
{{ range .NoteGroups -}}
|
||||
### {{ .Title }}
|
||||
{{ range .Notes }}
|
||||
{{ .Body }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
{{- if .Versions }}
|
||||
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
|
||||
{{ range .Versions -}}
|
||||
{{ if .Tag.Previous -}}
|
||||
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
33
.chglog/config.yml
Normal file
33
.chglog/config.yml
Normal file
@ -0,0 +1,33 @@
|
||||
style: github
|
||||
template: CHANGELOG.tpl.md
|
||||
info:
|
||||
title: CHANGELOG
|
||||
repository_url: https://forge.cadoles.com//
|
||||
options:
|
||||
commits:
|
||||
filters:
|
||||
Type:
|
||||
- feat
|
||||
- fix
|
||||
- perf
|
||||
- refactor
|
||||
- docs
|
||||
commit_groups:
|
||||
title_maps:
|
||||
feat: Features
|
||||
fix: Bug Fixes
|
||||
perf: Performance Improvements
|
||||
refactor: Code Refactoring
|
||||
docs: Documentation
|
||||
header:
|
||||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
|
||||
pattern_maps:
|
||||
- Type
|
||||
- Scope
|
||||
- Subject
|
||||
notes:
|
||||
keywords:
|
||||
- BREAKING CHANGE
|
||||
issues:
|
||||
prefix:
|
||||
- '#'
|
14
.dockerignore
Normal file
14
.dockerignore
Normal file
@ -0,0 +1,14 @@
|
||||
/apps
|
||||
/bin
|
||||
/dist
|
||||
/out
|
||||
/tmp
|
||||
/tools
|
||||
/.emissary-token
|
||||
/.env
|
||||
/agent-key.json
|
||||
/server-key.json
|
||||
/CHANGELOG.md
|
||||
/state.json
|
||||
/*.sqlite*
|
||||
/.mktools
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -9,4 +9,7 @@ dist/
|
||||
/agent-key.json
|
||||
/apps
|
||||
/server-key.json
|
||||
/.emissary-token
|
||||
/.emissary-token
|
||||
/out
|
||||
.mktools/
|
||||
/CHANGELOG.md
|
||||
|
@ -105,6 +105,9 @@ nfpms:
|
||||
file_info:
|
||||
mode: 0755
|
||||
packager: apk
|
||||
- src: misc/packaging/openrc/emissary-server.logrotate.conf
|
||||
dst: /etc/logrotate.d/emissary-server
|
||||
packager: apk
|
||||
- dst: /var/lib/emissary
|
||||
type: dir
|
||||
file_info:
|
||||
@ -147,5 +150,8 @@ nfpms:
|
||||
file_info:
|
||||
mode: 0755
|
||||
packager: apk
|
||||
- src: misc/packaging/openrc/emissary-agent.logrotate.conf
|
||||
dst: /etc/logrotate.d/emissary-agent
|
||||
packager: apk
|
||||
scripts:
|
||||
postinstall: "misc/packaging/common/postinstall-agent.sh"
|
||||
|
58
Dockerfile
58
Dockerfile
@ -1,4 +1,12 @@
|
||||
FROM golang:1.19 AS BUILD
|
||||
FROM alpine as certs
|
||||
RUN apk update && apk add ca-certificates curl openssl bash
|
||||
RUN curl -k https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/common/add-letsencrypt-ca.sh | bash
|
||||
|
||||
#####################################
|
||||
# Emissary Server #
|
||||
#####################################
|
||||
|
||||
FROM golang:1.21 AS build-emissary-server
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y make
|
||||
@ -7,9 +15,9 @@ COPY . /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN make GORELEASER_ARGS='build --rm-dist --single-target --snapshot' release
|
||||
RUN make mktools && make GORELEASER_ARGS="build --snapshot --clean --single-target --id emissary-server" goreleaser
|
||||
|
||||
FROM busybox:latest AS RUNTIME
|
||||
FROM busybox:latest AS emissary-server
|
||||
|
||||
ARG DUMB_INIT_VERSION=1.2.5
|
||||
|
||||
@ -19,11 +27,47 @@ RUN mkdir -p /usr/local/bin \
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
||||
|
||||
COPY --from=BUILD /src/dist/emissary_linux_amd64_v1 /app
|
||||
COPY --from=BUILD /src/tmp/config.yml /etc/emissary/config.yml
|
||||
COPY --from=build-emissary-server /src/dist/emissary-server_linux_amd64_v1 /app
|
||||
COPY misc/docker/server.yml /etc/emissary/server.yml
|
||||
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT ["/app/emissary"]
|
||||
RUN mkdir -p /data
|
||||
|
||||
CMD ["server", "run", "-c", "/etc/emissary/config.yml"]
|
||||
CMD [ "/app/emissary", "-c", "/etc/emissary/config.yml", "server", "run"]
|
||||
|
||||
#####################################
|
||||
# Emissary Agent #
|
||||
#####################################
|
||||
|
||||
FROM golang:1.21 AS build-emissary-agent
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y make
|
||||
|
||||
COPY . /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN make mktools && make GORELEASER_ARGS="build --snapshot --clean --single-target --id emissary-agent" goreleaser
|
||||
|
||||
FROM busybox:latest AS emissary-agent
|
||||
|
||||
ARG DUMB_INIT_VERSION=1.2.5
|
||||
|
||||
RUN mkdir -p /usr/local/bin \
|
||||
&& wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64 \
|
||||
&& chmod +x /usr/local/bin/dumb-init
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
||||
|
||||
COPY --from=build-emissary-agent /src/dist/emissary-agent_linux_amd64_v1 /app
|
||||
|
||||
COPY --chmod=777 misc/docker/docker-agent-wrapper.sh /usr/local/bin/docker-agent-wrapper
|
||||
COPY misc/docker/agent.yml /etc/emissary/agent.yml
|
||||
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
||||
|
||||
RUN mkdir -p /data
|
||||
|
||||
CMD [ "/usr/local/bin/docker-agent-wrapper", "/app/emissary", "-c", "/etc/emissary/agent.yml", "agent", "run" ]
|
35
Jenkinsfile
vendored
35
Jenkinsfile
vendored
@ -10,14 +10,24 @@ pipeline {
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Cancel older jobs') {
|
||||
steps {
|
||||
script {
|
||||
def buildNumber = env.BUILD_NUMBER as int
|
||||
if (buildNumber > 1) milestone(buildNumber - 1)
|
||||
milestone(buildNumber)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Run unit tests') {
|
||||
steps {
|
||||
script {
|
||||
withCredentials([
|
||||
usernamePassword([
|
||||
credentialsId: 'forge-jenkins',
|
||||
usernameVariable: 'GIT_USERNAME',
|
||||
passwordVariable: 'GIT_PASSWORD'
|
||||
credentialsId: 'forge-jenkins',
|
||||
usernameVariable: 'GIT_USERNAME',
|
||||
passwordVariable: 'GIT_PASSWORD'
|
||||
])
|
||||
]) {
|
||||
sh '''
|
||||
@ -43,19 +53,26 @@ pipeline {
|
||||
script {
|
||||
withCredentials([
|
||||
usernamePassword([
|
||||
credentialsId: 'forge-jenkins',
|
||||
usernameVariable: 'GITEA_RELEASE_USERNAME',
|
||||
passwordVariable: 'GITEA_RELEASE_PASSWORD'
|
||||
credentialsId: 'forge-jenkins',
|
||||
usernameVariable: 'GITEA_RELEASE_USERNAME',
|
||||
passwordVariable: 'GITEA_RELEASE_PASSWORD'
|
||||
])
|
||||
]) {
|
||||
sh 'make gitea-release'
|
||||
sh """
|
||||
export MKT_PROJECT_VERSION_BRANCH_NAME=${env.BRANCH_NAME}
|
||||
make mktools
|
||||
make gitea-release
|
||||
"""
|
||||
}
|
||||
def currentVersion = sh(returnStdout: true, script: 'make full-version').trim()
|
||||
|
||||
String currentVersion = sh(script: "MKT_PROJECT_VERSION_BRANCH_NAME=${env.BRANCH_NAME} make version", returnStdout: true).trim()
|
||||
|
||||
build(
|
||||
job: "../emissary-firmware/${env.GIT_BRANCH}",
|
||||
parameters: [
|
||||
[$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion]
|
||||
]
|
||||
],
|
||||
wait: false
|
||||
)
|
||||
}
|
||||
}
|
||||
|
94
Makefile
94
Makefile
@ -1,16 +1,12 @@
|
||||
LINT_ARGS ?= --timeout 5m
|
||||
GORELEASER_VERSION ?= v1.13.1
|
||||
GORELEASER_ARGS ?= release --snapshot --rm-dist
|
||||
GORELEASER_ARGS ?= release --snapshot --clean
|
||||
GITCHLOG_ARGS ?=
|
||||
SHELL := /bin/bash
|
||||
|
||||
EMISSARY_VERSION ?=
|
||||
GIT_VERSION := $(shell git describe --always)
|
||||
DATE_VERSION := $(shell date +%Y.%-m.%-d)
|
||||
FULL_VERSION := v$(DATE_VERSION)-$(GIT_VERSION)$(if $(shell git diff --stat),-dirty,)
|
||||
|
||||
DOCKER_IMAGE_NAME ?= bornholm/emissary
|
||||
DOCKER_IMAGE_TAG ?= $(FULL_VERSION)
|
||||
DOCKER_IMAGE_NAME ?= reg.cadoles.com/cadoles/emissary
|
||||
DOCKER_IMAGE_TAG ?= $(MKT_PROJECT_VERSION)
|
||||
|
||||
GOTEST_ARGS ?= -short
|
||||
|
||||
@ -45,7 +41,7 @@ build-emissary-%: deps ## Build executable
|
||||
-v \
|
||||
-ldflags "\
|
||||
-X 'main.GitRef=$(shell git rev-parse --short HEAD)' \
|
||||
-X 'main.ProjectVersion=$(FULL_VERSION)' \
|
||||
-X 'main.ProjectVersion=$(MKT_PROJECT_VERSION)' \
|
||||
-X 'main.BuildDate=$(shell date --utc --rfc-3339=seconds)' \
|
||||
" \
|
||||
-o ./bin/$* \
|
||||
@ -66,7 +62,7 @@ run-emissary-%: .env
|
||||
( set -o allexport && source .env && set +o allexport && bin/$* $(EMISSARY_CMD))
|
||||
|
||||
.PHONY: deps
|
||||
deps: .env
|
||||
deps: .env .mktools
|
||||
|
||||
.PHONY: dump-config
|
||||
dump-config: build-emissary
|
||||
@ -74,36 +70,23 @@ dump-config: build-emissary
|
||||
./bin/emissary config dump > tmp/config.yml
|
||||
|
||||
.PHONY: goreleaser
|
||||
goreleaser: deps
|
||||
( set -o allexport && source .env && set +o allexport && VERSION=$(GORELEASER_VERSION) curl -sfL https://goreleaser.com/static/run | GORELEASER_CURRENT_TAG="$(FULL_VERSION)" bash /dev/stdin $(GORELEASER_ARGS) )
|
||||
|
||||
.PHONY: start-release
|
||||
start-release:
|
||||
if [ -z "$(EMISSARY_VERSION)" ]; then echo "You must define environment variable FAQD_VERSION"; exit 1; fi
|
||||
|
||||
git flow release start $(EMISSARY_VERSION)
|
||||
|
||||
# Update package.json version
|
||||
jq '.version = "$(EMISSARY_VERSION)"' package.json | sponge package.json
|
||||
git add package.json
|
||||
git commit -m "chore: bump to version $(EMISSARY_VERSION)" --allow-empty
|
||||
|
||||
echo "Commit you additional modifications then execute 'make finish-release'"
|
||||
|
||||
.PHONY: finish-release
|
||||
finish-release:
|
||||
git flow release finish -m "v$(EMISSARY_VERSION)"
|
||||
git push --all
|
||||
git push --tags
|
||||
goreleaser: .env .mktools
|
||||
( set -o allexport && source .env && set +o allexport && curl -sfL https://goreleaser.com/static/run | GORELEASER_CURRENT_TAG="$(MKT_PROJECT_VERSION)" bash /dev/stdin $(GORELEASER_ARGS) )
|
||||
|
||||
install-git-hooks:
|
||||
git config core.hooksPath .githooks
|
||||
|
||||
docker-build:
|
||||
docker build -t $(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG) .
|
||||
docker-build: docker-build-agent docker-build-server
|
||||
|
||||
docker-release:
|
||||
docker push $(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
|
||||
docker-build-%:
|
||||
docker build --target emissary-$* -t $(DOCKER_IMAGE_NAME)-$*:latest .
|
||||
|
||||
docker-release: docker-release-agent docker-release-server
|
||||
|
||||
docker-release-%:
|
||||
docker tag $(DOCKER_IMAGE_NAME)-$*:latest $(DOCKER_IMAGE_NAME)-$*:$(DOCKER_IMAGE_TAG)
|
||||
docker push $(DOCKER_IMAGE_NAME)-$*:latest
|
||||
docker push $(DOCKER_IMAGE_NAME)-$*:$(DOCKER_IMAGE_TAG)
|
||||
|
||||
deploy-openwrt-agent:
|
||||
$(MAKE) GOARCH="arm" GORELEASER_ARGS='build --single-target --snapshot --clean' goreleaser
|
||||
@ -119,32 +102,28 @@ deploy-openwrt-agent:
|
||||
scp dist/emissary-agent_linux_arm_6/emissary root@$(OPENWRT_DEVICE):/usr/bin/emissary
|
||||
ssh root@$(OPENWRT_DEVICE) /etc/init.d/emissary-agent start
|
||||
|
||||
gitea-release: tools/gitea-release/bin/gitea-release.sh goreleaser
|
||||
gitea-release: .mktools tools/gitea-release/bin/gitea-release.sh goreleaser changelog
|
||||
mkdir -p .gitea-release
|
||||
rm -rf .gitea-release/*
|
||||
|
||||
cp dist/*.tar.gz .gitea-release/
|
||||
cp dist/*.apk .gitea-release/
|
||||
cp dist/*.deb .gitea-release/
|
||||
cp CHANGELOG.md .gitea-release/
|
||||
|
||||
GITEA_RELEASE_PROJECT="emissary" \
|
||||
GITEA_RELEASE_ORG="arcad" \
|
||||
GITEA_RELEASE_BASE_URL="https://forge.cadoles.com" \
|
||||
GITEA_RELEASE_VERSION="$(FULL_VERSION)" \
|
||||
GITEA_RELEASE_NAME="$(FULL_VERSION)" \
|
||||
GITEA_RELEASE_VERSION="$(MKT_PROJECT_VERSION)" \
|
||||
GITEA_RELEASE_NAME="$(MKT_PROJECT_VERSION)" \
|
||||
GITEA_RELEASE_COMMITISH_TARGET="$(GIT_VERSION)" \
|
||||
GITEA_RELEASE_IS_DRAFT="false" \
|
||||
GITEA_RELEASE_BODY="" \
|
||||
GITEA_RELEASE_ATTACHMENTS="$$(find .gitea-release/* -type f)" \
|
||||
tools/gitea-release/bin/gitea-release.sh
|
||||
|
||||
tools/gitea-release/bin/gitea-release.sh:
|
||||
mkdir -p tools/gitea-release/bin
|
||||
curl --output tools/gitea-release/bin/gitea-release.sh https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/gitea/gitea-release.sh
|
||||
chmod +x tools/gitea-release/bin/gitea-release.sh
|
||||
|
||||
.emissary-token:
|
||||
$(MAKE) run-emissary-server EMISSARY_CMD="--debug --config tmp/server.yml server auth create-token --role writer > .emissary-token"
|
||||
$(MAKE) run-emissary-server EMISSARY_CMD="--debug --config tmp/server.yml server auth create-token --role writer --output .emissary-token"
|
||||
|
||||
AGENT_ID ?= 1
|
||||
|
||||
@ -152,6 +131,31 @@ load-sample-specs:
|
||||
cat misc/spec-samples/app.emissary.cadoles.com.json | ./bin/server api agent spec update -a $(AGENT_ID) --no-patch --spec-data - --spec-name app.emissary.cadoles.com
|
||||
cat misc/spec-samples/proxy.emissary.cadoles.com.json | ./bin/server api agent spec update -a $(AGENT_ID) --no-patch --spec-data - --spec-name proxy.emissary.cadoles.com
|
||||
cat misc/spec-samples/mdns.emissary.cadoles.com.json | ./bin/server api agent spec update -a $(AGENT_ID) --no-patch --spec-data - --spec-name mdns.emissary.cadoles.com
|
||||
cat misc/spec-samples/uci.emissary.cadoles.com.json | ./bin/server api agent spec update -a $(AGENT_ID) --no-patch --spec-data - --spec-name uci.emissary.cadoles.com
|
||||
|
||||
full-version:
|
||||
@echo $(FULL_VERSION)
|
||||
version: .mktools
|
||||
@echo $(MKT_PROJECT_VERSION)
|
||||
|
||||
update-edge-lib:
|
||||
git pull --rebase
|
||||
go clean -modcache
|
||||
GONOPROXY=forge.cadoles.com/arcad/edge GOPRIVATE=forge.cadoles.com/arcad/edge go get -v -u forge.cadoles.com/arcad/edge
|
||||
go mod tidy
|
||||
$(MAKE) test
|
||||
git add go.mod go.sum
|
||||
git commit -m "feat: update arcad/edge dependency"
|
||||
git push
|
||||
|
||||
.PHONY: changelog
|
||||
changelog: .mktools
|
||||
$(MAKE) MKT_GIT_CHGLOG_ARGS='--next-tag $(MKT_PROJECT_VERSION) --tag-filter-pattern $(MKT_PROJECT_VERSION_CHANNEL) --output CHANGELOG.md' mkt-changelog
|
||||
|
||||
.PHONY: mktools
|
||||
mktools:
|
||||
rm -rf .mktools
|
||||
curl -q https://forge.cadoles.com/Cadoles/mktools/raw/branch/master/install.sh | $(SHELL)
|
||||
|
||||
.mktools:
|
||||
$(MAKE) mktools
|
||||
|
||||
-include .mktools/*.mk
|
10
README.md
10
README.md
@ -1,4 +1,6 @@
|
||||
# Emissary
|
||||
<p align="center">
|
||||
<img width="400" src="./misc/resources/logo.svg" />
|
||||
</p>
|
||||
|
||||
Control plane for "edge" (and OpenWRT-based) devices.
|
||||
|
||||
@ -14,6 +16,8 @@ Download the pre-compiled binaries from the [releases page](https://forge.cadole
|
||||
|
||||
See [`doc`](./doc/README.md)
|
||||
|
||||
## Licence
|
||||
## Licence & mentions
|
||||
|
||||
AGPL-3.0
|
||||
[AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html#license-text)
|
||||
|
||||
Logo by [@aardouin](https://forge.cadoles.com/aardouin)
|
||||
|
@ -1,20 +1,23 @@
|
||||
# Documentation
|
||||
|
||||
- (FR) - [Introduction](./fr/introduction.md)
|
||||
|
||||
## Tutorials
|
||||
|
||||
- (FR) - [Premiers pas](./tutorials/fr/first-steps.md)
|
||||
- (FR) - [Déployer un serveur mandataire inverse sur un agent](./tutorials/fr/deploy-reverse-proxy.md)
|
||||
- (FR) - [Déployer une configuration UCI personnalisée sur un agent](./tutorials/fr/deploy-uci-configuration.md)
|
||||
- (FR) - [Démarrer un agent avec Docker](./tutorials/fr/docker-agent.md)
|
||||
|
||||
## References
|
||||
|
||||
### API
|
||||
### Specifications
|
||||
|
||||
[See `misc/rest/server.rest`](../misc/rest/server.rest)
|
||||
|
||||
### Spécifications
|
||||
|
||||
- [Schéma `app.emissary.cadoles.com`](../internal/spec/app/schema.json)
|
||||
- [Schéma `app.emissary.cadoles.com`](../internal/agent/controller/app/spec/schema.json)
|
||||
- [Schéma `proxy.emissary.cadoles.com`](../internal/spec/proxy/schema.json)
|
||||
- [Schéma `mdns.emissary.cadoles.com`](../internal/agent/controller/mdns/spec/schema.json)
|
||||
- [Schéma `uci.emissary.cadoles.com`](../internal/spec/uci/schema.json)
|
||||
- [Schéma `gateway.emissary.cadoles.com`](../internal/spec/gateway/schema.json)
|
||||
- [Schéma `sysupgrade.openwrt.emissary.cadoles.com`](../internal/agent/controller/openwrt/spec/sysupgrade/schema.json)
|
||||
|
||||
### Configuration
|
||||
|
||||
@ -22,3 +25,7 @@ See:
|
||||
|
||||
- [`misc/packaging/common/config-agent.yml`](../misc/packaging/common/config-agent.yml)
|
||||
- [`misc/packaging/common/config-server.yml`](../misc/packaging/common/config-server.yml)
|
||||
|
||||
### Other projects
|
||||
|
||||
- [`emissary-firmware`](https://forge.cadoles.com/arcad/emissary-firmware) - Preconfigured OpenWRT firmwares with an agent
|
30
doc/fr/introduction.md
Normal file
30
doc/fr/introduction.md
Normal file
@ -0,0 +1,30 @@
|
||||
# Introduction
|
||||
|
||||
"Emissary" est un programme entrant dans la catégorie des outils de gestion et déploiement de configuration.
|
||||
|
||||
En utilisant un agent déployé sur chaque système cible, il permet aux administrateurs système de centraliser le contrôle et la supervision de la configuration. Grâce à ses fonctionnalités avancées, il est capable de faire converger la configuration d'une machine vers un modèle précis défini par une ou plusieurs spécifications centralisées sur un serveur de pilotage dédié.
|
||||
|
||||
Le principal atout d'"Emissary" réside dans sa capacité à activer des "contrôleurs" spécifiques pour chaque aspect de la configuration système. Ces contrôleurs sont des modules intelligents qui agissent comme des agents spécialisés, veillant à ce que les paramètres de configuration soient correctement appliqués et respectent les spécifications définies.
|
||||
|
||||
Grâce à cette approche modulaire, "Emissary" peut gérer diverses facettes de la configuration, telles que les paramètres réseau, les règles de sécurité, les options de performance et bien plus encore. Chaque contrôleur est conçu pour répondre à des besoins spécifiques, offrant ainsi une flexibilité et une granularité optimales dans la gestion de la configuration.
|
||||
|
||||
Certains contrôleurs permettent également l'exécution de services spécialisés comme des serveurs mandataires inverses ou des applications web autonomes.
|
||||
|
||||
L'utilisation d'un serveur de pilotage centralisé permet à "Emissary" de stocker et de mettre à jour les spécifications de configuration de manière cohérente. Les administrateurs peuvent définir des modèles de configuration précis, les affiner au fil du temps et les appliquer en un seul clic sur l'ensemble du parc de machines gérées. Cela garantit une uniformité et une conformité accrues, tout en facilitant la maintenance et les mises à jour à grande échelle.
|
||||
|
||||
À l'heure actuelle, Emissary est conçu pour cibler spécifiquement le système d'exploitation OpenWRT. L'activation des "contrôleurs" spécifiques à cet OS permet de converger la configuration de la machine OpenWRT vers un modèle correspondant aux spécifications centralisées sur le serveur de pilotage. Ces spécifications peuvent inclure des paramètres réseau, des configurations de sécurité, des règles de pare-feu, des options de routage, des services système, et bien d'autres éléments spécifiques à OpenWRT.
|
||||
|
||||
## Vue d'ensemble de l'architecture
|
||||
|
||||

|
||||
|
||||
|
||||
## Contrôleurs
|
||||
|
||||
Voici la liste des contrôleurs implémentés à ce jour:
|
||||
|
||||
- **Contrôleur UCI** - Permet de modifier les données [UCI](https://openwrt.org/docs/guide-user/base-system/uci) (**U**nified **C**onfiguration **S**ystem) d'un système OpenWRT et ainsi configurer les services systèmes, les règles pare-feu, la configuration des NICs, etc sur celui-ci.
|
||||
- **Contrôleur SysUpgrade** - Permet de mettre à jour un système OpenWRT via l'outil [`sysupgrade`](https://openwrt.org/docs/guide-user/installation/generic.sysupgrade).
|
||||
- **Contrôleur Proxy** - Permet de déployer des services de type passerelle mandataire inverse ("reverse proxy") sur la machine cible.
|
||||
- **Contrôleur mDNS** - Permet d'annoncer des services via mDNS sur les différents réseaux de la machine cible.
|
||||
- **Contrôleur App** - Permet de déployer des applications web "embarquées" (s'exécutant localement et non dépendantes d'une connectivité internet) sur la machine cible. Voir le projet ["Edge App"](https://forge.cadoles.com/arcad/edge).
|
59
doc/fr/resources/overview.plantuml
Normal file
59
doc/fr/resources/overview.plantuml
Normal file
@ -0,0 +1,59 @@
|
||||
@startuml
|
||||
top to bottom direction
|
||||
skinparam linetype ortho
|
||||
|
||||
node PilotNode as "Pilot Node" {
|
||||
database DataStore as "Data Store"
|
||||
|
||||
component EmissaryServer as "Emissary Server" {
|
||||
|
||||
component SpecificationRegistry as "Specification Registry" {
|
||||
component UCISpecification as "UCI Spec"
|
||||
component MDNSSpecification as "mDNS Spec"
|
||||
component AppSpecification as "App Spec"
|
||||
component ProxySpecification as "Proxy Spec"
|
||||
component SysUpgradeSpecification as "SysUpgrade Spec"
|
||||
}
|
||||
|
||||
component HTTPHandler as "HTTP Handler"
|
||||
|
||||
HTTPHandler .down.> SpecificationRegistry: validates agents data with
|
||||
|
||||
HTTPHandler .right.> DataStore: saves agent data in
|
||||
}
|
||||
}
|
||||
|
||||
node OperatorNode as "Operator Node" {
|
||||
component EmissaryClient as "Emissary Client"
|
||||
|
||||
EmissaryClient -left-> HTTPHandler: administrates
|
||||
}
|
||||
|
||||
node OpenWRTNode as "OpenWRT Node" {
|
||||
component EmissaryAgent as "Emissary Agent" {
|
||||
|
||||
component StateManager as "State Manager"
|
||||
|
||||
StateManager --up-> HTTPHandler: fetches agent ^*specs from
|
||||
|
||||
component UCIController as "UCI Controller"
|
||||
|
||||
UCIController .up.> StateManager: reconciles with
|
||||
|
||||
component SysUpgradeController as "SysUpgrade Controller"
|
||||
|
||||
SysUpgradeController .up.> StateManager: reconciles with
|
||||
|
||||
component ProxyController as "Proxy Controller"
|
||||
|
||||
ProxyController .up.> StateManager: reconciles with
|
||||
|
||||
component MDNSController as "mDNS Controller"
|
||||
|
||||
MDNSController .up.> StateManager: reconciles with
|
||||
|
||||
component AppController as "App Controller"
|
||||
|
||||
AppController .up.> StateManager: reconciles with
|
||||
}
|
||||
}
|
99
doc/fr/resources/overview.svg
Normal file
99
doc/fr/resources/overview.svg
Normal file
@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="643px" preserveAspectRatio="none" style="width:1713px;height:643px;background:#FFFFFF;" version="1.1" viewBox="0 0 1713 643" width="1713px" zoomAndPan="magnify"><defs/><g><!--MD5=[d09f24f3d7c03358bd8c02f81fe1cb3f]
|
||||
cluster PilotNode--><g id="cluster_PilotNode"><polygon fill="none" points="16,16,26,6,685,6,685,511,675,521,16,521,16,16" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="675" x2="685" y1="16" y2="6"/><line style="stroke:#181818;stroke-width:1.0;" x1="16" x2="675" y1="16" y2="16"/><line style="stroke:#181818;stroke-width:1.0;" x1="675" x2="675" y1="16" y2="521"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="73" x="310" y="33.9659">Pilot Node</text></g><!--MD5=[9c6b5fd9fe3a3a3c784efc27685ccdf9]
|
||||
cluster EmissaryServer--><g id="cluster_EmissaryServer"><rect fill="none" height="440" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:1.0;" width="523" x="138" y="57"/><rect fill="none" height="10" style="stroke:#181818;stroke-width:1.0;" width="15" x="641" y="62"/><rect fill="none" height="2" style="stroke:#181818;stroke-width:1.0;" width="4" x="639" y="64"/><rect fill="none" height="2" style="stroke:#181818;stroke-width:1.0;" width="4" x="639" y="68"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="110" x="344.5" y="84.9659">Emissary Server</text></g><!--MD5=[5f6297313bdca82dad0981382bb4d88a]
|
||||
cluster SpecificationRegistry--><g id="cluster_SpecificationRegistry"><rect fill="none" height="273" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:1.0;" width="459" x="170" y="192"/><rect fill="none" height="10" style="stroke:#181818;stroke-width:1.0;" width="15" x="609" y="197"/><rect fill="none" height="2" style="stroke:#181818;stroke-width:1.0;" width="4" x="607" y="199"/><rect fill="none" height="2" style="stroke:#181818;stroke-width:1.0;" width="4" x="607" y="203"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="149" x="325" y="219.9659">Specification Registry</text></g><!--MD5=[b562d696a455f482404b155c6a8fbfca]
|
||||
cluster OperatorNode--><g id="cluster_OperatorNode"><polygon fill="none" points="709,62,719,52,889,52,889,150,879,160,709,160,709,62" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="879" x2="889" y1="62" y2="52"/><line style="stroke:#181818;stroke-width:1.0;" x1="709" x2="879" y1="62" y2="62"/><line style="stroke:#181818;stroke-width:1.0;" x1="879" x2="879" y1="62" y2="160"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="104" x="743" y="79.9659">Operator Node</text></g><!--MD5=[68861f6d3d90d2f41bc4d4a2796fc73e]
|
||||
cluster OpenWRTNode--><g id="cluster_OpenWRTNode"><polygon fill="none" points="709,313,719,303,1696,303,1696,616,1686,626,709,626,709,313" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="1686" x2="1696" y1="313" y2="303"/><line style="stroke:#181818;stroke-width:1.0;" x1="709" x2="1686" y1="313" y2="313"/><line style="stroke:#181818;stroke-width:1.0;" x1="1686" x2="1686" y1="313" y2="626"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="109" x="1144" y="330.9659">OpenWRT Node</text></g><!--MD5=[6e6320f5227e3e26302b14a131b17aa5]
|
||||
cluster EmissaryAgent--><g id="cluster_EmissaryAgent"><rect fill="none" height="248" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:1.0;" width="939" x="733" y="354"/><rect fill="none" height="10" style="stroke:#181818;stroke-width:1.0;" width="15" x="1652" y="359"/><rect fill="none" height="2" style="stroke:#181818;stroke-width:1.0;" width="4" x="1650" y="361"/><rect fill="none" height="2" style="stroke:#181818;stroke-width:1.0;" width="4" x="1650" y="365"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="108" x="1148.5" y="381.9659">Emissary Agent</text></g><!--MD5=[45eee4c5a57edb1e2ac175c76a239d17]
|
||||
entity DataStore--><g id="elem_DataStore"><path d="M32,105.5 C32,95.5 77,95.5 77,95.5 C77,95.5 122,95.5 122,105.5 L122,133.5679 C122,143.5679 77,143.5679 77,143.5679 C77,143.5679 32,143.5679 32,133.5679 L32,105.5 " fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;"/><path d="M32,105.5 C32,115.5 77,115.5 77,115.5 C77,115.5 122,115.5 122,105.5 " fill="none" style="stroke:#181818;stroke-width:0.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="70" x="42" y="134.4659">Data Store</text></g><!--MD5=[7d2b259075cd0e421afb7965bd22532b]
|
||||
entity HTTPHandler--><g id="elem_HTTPHandler"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="132" x="335" y="95"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="447" y="100"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="445" y="102"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="445" y="106"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="92" x="350" y="129.9659">HTTP Handler</text></g><!--MD5=[d74c349cfc963885f78088443cb132a3]
|
||||
entity UCISpecification--><g id="elem_UCISpecification"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="100" x="213" y="238"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="293" y="243"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="291" y="245"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="291" y="249"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="60" x="228" y="272.9659">UCI Spec</text></g><!--MD5=[631d6ad5bad1f198f42ccf56fafe0582]
|
||||
entity MDNSSpecification--><g id="elem_MDNSSpecification"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="118" x="348" y="238"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="446" y="243"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="444" y="245"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="444" y="249"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="78" x="363" y="272.9659">mDNS Spec</text></g><!--MD5=[f8753067470155b04e2f3a693924c320]
|
||||
entity AppSpecification--><g id="elem_AppSpecification"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="103" x="501.5" y="238"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="584.5" y="243"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="582.5" y="245"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="582.5" y="249"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="63" x="516.5" y="272.9659">App Spec</text></g><!--MD5=[fd240f711946cd5d0dcadb1ea2ed786c]
|
||||
entity ProxySpecification--><g id="elem_ProxySpecification"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="112" x="213" y="392"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="305" y="397"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="303" y="399"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="303" y="403"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="72" x="228" y="426.9659">Proxy Spec</text></g><!--MD5=[74aafaf76d366e174271de99960a7b8d]
|
||||
entity SysUpgradeSpecification--><g id="elem_SysUpgradeSpecification"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="157" x="360.5" y="392"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="497.5" y="397"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="495.5" y="399"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="495.5" y="403"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="117" x="375.5" y="426.9659">SysUpgrade Spec</text></g><!--MD5=[584b4e495bc4cb9e5d46ff66335fc219]
|
||||
entity EmissaryClient--><g id="elem_EmissaryClient"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="143" x="725.5" y="95"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="848.5" y="100"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="846.5" y="102"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="846.5" y="106"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="103" x="740.5" y="129.9659">Emissary Client</text></g><!--MD5=[cbe48146c9698f81ea53c2c6f51c8eda]
|
||||
entity StateManager--><g id="elem_StateManager"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="139" x="1048.5" y="392"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="1167.5" y="397"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1165.5" y="399"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1165.5" y="403"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="99" x="1063.5" y="426.9659">State Manager</text></g><!--MD5=[27f8877b35bcf78d2c9b0e363caea569]
|
||||
entity UCIController--><g id="elem_UCIController"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="135" x="749.5" y="537"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="864.5" y="542"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="862.5" y="544"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="862.5" y="548"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="95" x="764.5" y="571.9659">UCI Controller</text></g><!--MD5=[f5a45e51cb66ff1d3b5626d0df038fee]
|
||||
entity SysUpgradeController--><g id="elem_SysUpgradeController"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="192" x="920" y="537"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="1092" y="542"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1090" y="544"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1090" y="548"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="152" x="935" y="571.9659">SysUpgrade Controller</text></g><!--MD5=[ed1f476319cb2bbabd1b988180210f61]
|
||||
entity ProxyController--><g id="elem_ProxyController"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="147" x="1147.5" y="537"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="1274.5" y="542"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1272.5" y="544"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1272.5" y="548"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="107" x="1162.5" y="571.9659">Proxy Controller</text></g><!--MD5=[dcaaaabc13b59746f8f74cc6285a228b]
|
||||
entity MDNSController--><g id="elem_MDNSController"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="153" x="1329.5" y="537"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="1462.5" y="542"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1460.5" y="544"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1460.5" y="548"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="113" x="1344.5" y="571.9659">mDNS Controller</text></g><!--MD5=[f7cab0dbd7f354492deaa54be612571f]
|
||||
entity AppController--><g id="elem_AppController"><rect fill="#F1F1F1" height="49.0679" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="138" x="1518" y="537"/><rect fill="#F1F1F1" height="10" style="stroke:#181818;stroke-width:0.5;" width="15" x="1636" y="542"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1634" y="544"/><rect fill="#F1F1F1" height="2" style="stroke:#181818;stroke-width:0.5;" width="4" x="1634" y="548"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="98" x="1533" y="571.9659">App Controller</text></g><!--MD5=[8c3501b26c9c3ea39952224ab3fba557]
|
||||
link HTTPHandler to SpecificationRegistry--><g id="link_HTTPHandler_SpecificationRegistry"><path d="M334.7,128 C268.96,128 178,128 178,128 C178,128 178,158.5475 178,190.5263 C178,190.7761 178,191.026 178,191.276 " fill="none" id="HTTPHandler-to-SpecificationRegistry" style="stroke:#181818;stroke-width:1.0;stroke-dasharray:7.0,7.0;"/><polygon fill="#181818" points="178,191.276,182,182.276,178,186.276,174,182.276,178,191.276" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="156" x="151.03" y="142.897">validates agents data with</text></g><!--MD5=[1442fca2dc2f53bf9ae23d9e844c6c8b]
|
||||
link HTTPHandler to DataStore--><g id="link_HTTPHandler_DataStore"><path d="M334.65,112 C334.65,112 128.41,112 128.41,112 " fill="none" id="HTTPHandler-to-DataStore" style="stroke:#181818;stroke-width:1.0;stroke-dasharray:7.0,7.0;"/><polygon fill="#181818" points="123.41,112,132.41,116,128.41,112,132.41,108,123.41,112" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="115" x="203.28" y="126.897">saves agent data in</text></g><!--MD5=[04b946759b53ef2d0699bda61eed296c]
|
||||
reverse link HTTPHandler to EmissaryClient--><g id="link_HTTPHandler_EmissaryClient"><path d="M473.28,112 C473.28,112 725.14,112 725.14,112 " fill="none" id="HTTPHandler-backto-EmissaryClient" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="468.28,112,477.28,116,473.28,112,477.28,108,468.28,112" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="82" x="516.21" y="107.897">administrates</text></g><!--MD5=[0dd7156c6052ea784bc88dfca61e007b]
|
||||
reverse link HTTPHandler to StateManager--><g id="link_HTTPHandler_StateManager"><path d="M473.28,128 C473.28,128 665,128 665,128 C665,128 665,409 665,409 C665,409 921.14,409 1048.21,409 " fill="none" id="HTTPHandler-backto-StateManager" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="468.28,128,477.28,132,473.28,128,477.28,124,468.28,128" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="163" x="501" y="360.137">fetches agent ^*specs from</text></g><!--MD5=[beea302d68a5d9dc6027ab4e0b987cea]
|
||||
reverse link StateManager to UCIController--><g id="link_StateManager_UCIController"><path d="M1042.15,425 C1042.15,425 876.5,425 876.5,425 C876.5,425 876.5,497.45 876.5,536.78 " fill="none" id="StateManager-backto-UCIController" style="stroke:#181818;stroke-width:1.0;stroke-dasharray:7.0,7.0;"/><polygon fill="#181818" points="1047.15,425,1038.15,421,1042.15,425,1038.15,429,1047.15,425" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="88" x="814.43" y="420.897">reconciles with</text></g><!--MD5=[8cf138a1950decb1251fc88353171770]
|
||||
reverse link StateManager to SysUpgradeController--><g id="link_StateManager_SysUpgradeController"><path d="M1080.25,447.43 C1080.25,447.43 1080.25,536.9 1080.25,536.9 " fill="none" id="StateManager-backto-SysUpgradeController" style="stroke:#181818;stroke-width:1.0;stroke-dasharray:7.0,7.0;"/><polygon fill="#181818" points="1080.25,442.43,1076.25,451.43,1080.25,447.43,1084.25,451.43,1080.25,442.43" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="88" x="991.25" y="488.057">reconciles with</text></g><!--MD5=[8dba0e44c0268b5c6a2c1c6565c41b8b]
|
||||
reverse link StateManager to ProxyController--><g id="link_StateManager_ProxyController"><path d="M1167.5,447.43 C1167.5,447.43 1167.5,536.9 1167.5,536.9 " fill="none" id="StateManager-backto-ProxyController" style="stroke:#181818;stroke-width:1.0;stroke-dasharray:7.0,7.0;"/><polygon fill="#181818" points="1167.5,442.43,1163.5,451.43,1167.5,447.43,1171.5,451.43,1167.5,442.43" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="88" x="1078.5" y="507.057">reconciles with</text></g><!--MD5=[94df0ade1dc92be8853ce902c4f83dad]
|
||||
reverse link StateManager to MDNSController--><g id="link_StateManager_MDNSController"><path d="M1193.72,425 C1193.72,425 1406,425 1406,425 C1406,425 1406,497.45 1406,536.78 " fill="none" id="StateManager-backto-MDNSController" style="stroke:#181818;stroke-width:1.0;stroke-dasharray:7.0,7.0;"/><polygon fill="#181818" points="1188.72,425,1197.72,429,1193.72,425,1197.72,421,1188.72,425" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="88" x="1266.75" y="420.897">reconciles with</text></g><!--MD5=[e74434bc519cba41fdddc7c857699717]
|
||||
reverse link StateManager to AppController--><g id="link_StateManager_AppController"><path d="M1193.96,409 C1193.96,409 1587,409 1587,409 C1587,409 1587,493.45 1587,536.66 " fill="none" id="StateManager-backto-AppController" style="stroke:#181818;stroke-width:1.0;stroke-dasharray:7.0,7.0;"/><polygon fill="#181818" points="1188.96,409,1197.96,413,1193.96,409,1197.96,405,1188.96,409" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="88" x="1365.31" y="404.897">reconciles with</text></g><!--MD5=[6fc50b732d8962c26a79ff20e99a40e3]
|
||||
@startuml
|
||||
top to bottom direction
|
||||
skinparam linetype ortho
|
||||
|
||||
node PilotNode as "Pilot Node" {
|
||||
database DataStore as "Data Store"
|
||||
|
||||
component EmissaryServer as "Emissary Server" {
|
||||
|
||||
component SpecificationRegistry as "Specification Registry" {
|
||||
component UCISpecification as "UCI Spec"
|
||||
component MDNSSpecification as "mDNS Spec"
|
||||
component AppSpecification as "App Spec"
|
||||
component ProxySpecification as "Proxy Spec"
|
||||
component SysUpgradeSpecification as "SysUpgrade Spec"
|
||||
}
|
||||
|
||||
component HTTPHandler as "HTTP Handler"
|
||||
|
||||
HTTPHandler .down.> SpecificationRegistry: validates agents data with
|
||||
|
||||
HTTPHandler .right.> DataStore: saves agent data in
|
||||
}
|
||||
}
|
||||
|
||||
node OperatorNode as "Operator Node" {
|
||||
component EmissaryClient as "Emissary Client"
|
||||
|
||||
EmissaryClient -left-> HTTPHandler: administrates
|
||||
}
|
||||
|
||||
node OpenWRTNode as "OpenWRT Node" {
|
||||
component EmissaryAgent as "Emissary Agent" {
|
||||
|
||||
component StateManager as "State Manager"
|
||||
|
||||
StateManager - -up-> HTTPHandler: fetches agent ^*specs from
|
||||
|
||||
component UCIController as "UCI Controller"
|
||||
|
||||
UCIController .up.> StateManager: reconciles with
|
||||
|
||||
component SysUpgradeController as "SysUpgrade Controller"
|
||||
|
||||
SysUpgradeController .up.> StateManager: reconciles with
|
||||
|
||||
component ProxyController as "Proxy Controller"
|
||||
|
||||
ProxyController .up.> StateManager: reconciles with
|
||||
|
||||
component MDNSController as "mDNS Controller"
|
||||
|
||||
MDNSController .up.> StateManager: reconciles with
|
||||
|
||||
component AppController as "App Controller"
|
||||
|
||||
AppController .up.> StateManager: reconciles with
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
||||
PlantUML version 1.2022.7(Mon Aug 22 19:01:30 CEST 2022)
|
||||
(GPL source distribution)
|
||||
Java Runtime: OpenJDK Runtime Environment
|
||||
JVM: OpenJDK 64-Bit Server VM
|
||||
Default Encoding: UTF-8
|
||||
Language: fr
|
||||
Country: FR
|
||||
--></g></svg>
|
After Width: | Height: | Size: 21 KiB |
3
doc/tutorials/fr/deploy-reverse-proxy.md
Normal file
3
doc/tutorials/fr/deploy-reverse-proxy.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Déployer un serveur mandataire inverse sur un agent
|
||||
|
||||
> TODO
|
130
doc/tutorials/fr/deploy-uci-configuration.md
Normal file
130
doc/tutorials/fr/deploy-uci-configuration.md
Normal file
@ -0,0 +1,130 @@
|
||||
# Déployer une configuration UCI personnalisée sur un agent
|
||||
|
||||
Via la spécification [`uci.emissary.cadoles.com`](../../../internal/spec/uci/schema.json) il est possible de configurer un agent avec un système OpenWRT. Dans ce tutoriel nous verrons:
|
||||
|
||||
- Comment exporter une configuration UCI existante au format attendu par Emissary;
|
||||
- Comment modifier la spécification d'un agent Emissary pour mettre à jour sa configuration via le serveur de pilotage.
|
||||
|
||||
## Étapes
|
||||
|
||||
### Identifier l'empreinte de votre agent
|
||||
|
||||
1. Sur la machine agent, utiliser la commande intégrée pour récupérer l'empreinte ("thumbprint") identifiant l'agent:
|
||||
|
||||
```
|
||||
emissary agent show-thumbprint
|
||||
```
|
||||
|
||||
**Noter la valeur retournée. Elle sera utilisée dans les étapes suivantes.**
|
||||
|
||||
### Exporter la configuration UCI de votre agent au format Emissary
|
||||
|
||||
1. Se connecter en SSH sur votre agent Emissary:
|
||||
|
||||
```
|
||||
ssh root@<agent_ip>
|
||||
```
|
||||
|
||||
2. Sur la machine agent, utiliser la commande intégrée pour exporter la configuration UCI de votre agent au format Emissary:
|
||||
|
||||
```
|
||||
uci export | emissary agent openwrt uci transform > my-agent-config.json
|
||||
```
|
||||
|
||||
> **Astuce**
|
||||
>
|
||||
> Par défaut, l'outil [LuCi](https://openwrt.org/fr/doc/howto/luci.essentials) est disponible sur votre agent. Vous pouvez y accéder via l'URL `http://<agent_ip>/`.
|
||||
>
|
||||
> Vous pouvez utiliser LuCi pour modifier la configuration de l'agent (par exemple, configurer le WiFi, créer des règles réseaux, etc) avant d'exporter la configuration.
|
||||
>
|
||||
> De cette manière, il est possible de répliquer celle ci sur plusieurs agents via Emissary !
|
||||
|
||||
3. Transférer le fichier `my-agent-config.json` sur la machine hébergeant votre serveur de pilotage Emissary.
|
||||
|
||||
### Transformer la configuration en spécification
|
||||
|
||||
#### Prérequis
|
||||
|
||||
- [`jq`](https://stedolan.github.io/jq/)
|
||||
- [`sponge`](https://linux.die.net/man/1/sponge) (paquet `moreutils` sur Ubuntu)
|
||||
|
||||
#### Étapes
|
||||
|
||||
1. Sur la machine hébergeant le serveur de pilotage Emissary, utiliser l'outil `jq` pour créer un objet JSON correspondant au schéma attendu par la spécification [`uci.emissary.cadoles.com`](../../../internal/spec/uci/schema.json):
|
||||
|
||||
```bash
|
||||
# Créer la structure de base de la spécification UCI
|
||||
cat >> my-uci-spec.json <<EOF
|
||||
{
|
||||
"config": null,
|
||||
"postImportCommands": [
|
||||
{ "command": "uci", "args": ["commit"] },
|
||||
{ "command": "reload_config", "args": [] }
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
# Injecter la configuration récupérée de notre agent dans la spécification
|
||||
cat my-uci-spec.json | jq --slurpfile config my-agent-config.json '.config = $config[0]' | sponge my-uci-spec.json
|
||||
```
|
||||
|
||||
Notre spécification est prête à être assignée à notre agent !
|
||||
|
||||
|
||||
### Assigner la spécification à l'agent
|
||||
|
||||
1. Sur la machine hébergeant le serveur de pilotage Emissary, retrouver l'identifiant associé à l'agent:
|
||||
|
||||
```bash
|
||||
# Déclarer une variable contenant l'empreinte de l'agent précédemment trouvée
|
||||
AGENT_THUMBPRINT="<empreinte agent>"
|
||||
|
||||
# Récupérer l'identifiant de l'agent
|
||||
AGENT_ID=$(emissary api agent query -f json | jq -r --arg thumbprint "$AGENT_THUMBPRINT" '.[] | select(.thumbprint == $thumbprint) | .id')
|
||||
```
|
||||
|
||||
2. Assigner la spécification à l'agent UCI:
|
||||
|
||||
```bash
|
||||
cat my-uci-spec.json | emissary api agent spec update -a ${AGENT_ID} --no-patch --spec-data - --spec-name uci.emissary.cadoles.com
|
||||
```
|
||||
|
||||
**Bravo, vous avez déployé des spécifications UCI sur votre agent !**
|
||||
|
||||
### Exemple: modifier le `hostname` de votre agent
|
||||
|
||||
En intervenant directement sur notre spécification, il est possible de modifier la configuration et appliquer ces changements à notre agent.
|
||||
|
||||
1. Sur la machine hébergeant le serveur de pilotage, faire:
|
||||
|
||||
```bash
|
||||
# On créait une variable avec le nouveau hostname de notre agent
|
||||
MY_NEW_AGENT_HOSTNAME="MyEmissaryAgent"
|
||||
|
||||
# On utilise jq afin de modifier la valeur de configuration dans notre spécification UCI
|
||||
cat my-uci-spec.json | jq --arg hostname "$MY_NEW_AGENT_HOSTNAME" '( .config.packages[] | select(.name == "system") | .configs[].options[] | select(.name == "hostname").value ) |= $hostname' | sponge my-uci-spec.json
|
||||
```
|
||||
|
||||
> **Astuce**
|
||||
>
|
||||
> En utilisant la commande `grep -C 10 hostname my-uci-spec.json`, on peut voir que la valeur de configuration `hostname` a bien été mise à jour dans notre spécification.
|
||||
|
||||
2. Mettre à jour la configuration de l'agent:
|
||||
|
||||
```bash
|
||||
cat my-uci-spec.json | emissary api agent spec update -a ${AGENT_ID} --no-patch --spec-data - --spec-name uci.emissary.cadoles.com
|
||||
```
|
||||
|
||||
3. Sur l'agent, après quelques secondes (par défaut, la fréquence de mise à jour est de 1 fois par minute) l'agent devrait avoir son `hostname` mis à jour:
|
||||
|
||||
```
|
||||
uci show system.@system[].hostname
|
||||
```
|
||||
|
||||
Un message de ce type devrait s'afficher:
|
||||
|
||||
```
|
||||
system.cfg01e48a.hostname='MyEmissaryAgent'
|
||||
```
|
||||
|
||||
La modification devrait être également visible dans le prompt du shell de l'agent.
|
10
doc/tutorials/fr/docker-agent.md
Normal file
10
doc/tutorials/fr/docker-agent.md
Normal file
@ -0,0 +1,10 @@
|
||||
# Lancer un agent avec Docker
|
||||
|
||||
```shell
|
||||
docker run \
|
||||
--rm -it \
|
||||
--network bridge \
|
||||
-v emissary-agent-data:/data \
|
||||
-e EMISSARY_AGENT_SERVER_URL=<server_url> \
|
||||
reg.cadoles.com/cadoles/emissary-agent:latest
|
||||
```
|
@ -1 +1,160 @@
|
||||
# Premiers pas
|
||||
# Premiers pas
|
||||
|
||||
## Prérequis
|
||||
|
||||
- Pour le serveur, une machine [Ubuntu 22.04](https://ubuntu.com/download/server)
|
||||
- Pour l'agent, un [RaspberryPi version 3](https://openwrt.org/toh/raspberry_pi_foundation/raspberry_pi)
|
||||
|
||||
## Étapes
|
||||
|
||||
### Préparer votre RaspberryPi
|
||||
|
||||
1. Sur la page des ["versions"](https://forge.cadoles.com/arcad/emissary-firmware/releases) des firmwares du projet Emissary, télécharger la dernière version disponibles correspondant à votre système cible, dans le cas présent `openwrt-<openwrt_version>-emissary-<emissary_firmware_version>-bcm27xx-bcm2710-rpi-3-ext4-factory.img.gz`
|
||||
|
||||
2. Brancher votre carte SD dans le lecteur, flasher celle ci avec le firmware:
|
||||
|
||||
```bash
|
||||
# Chemin vers le fichier de firmware précédemment téléchargé
|
||||
FIRMWARE_FILE="openwrt-<openwrt_version>-emissary-<emissary_firmware_version>-bcm27xx-bcm2710-rpi-3-ext4-factory.img.gz"
|
||||
|
||||
SDCARD_DEVICE=/dev/sdX # Chemin vers le "device" correspondant à votre carte SD
|
||||
|
||||
# Décompresser le firmware
|
||||
gzip -d "${FIRMWARE_FILE}"
|
||||
|
||||
# Flash la carte SD
|
||||
sudo dd if="${FIRMWARE_FILE%.gz}" of="${SDCARD_DEVICE}" bs=2M conv=fsync
|
||||
|
||||
# Attendre la fin des écritures
|
||||
sudo sync
|
||||
```
|
||||
|
||||
3. Placer votre carte SD dans votre RaspberryPi, le connecter à votre réseau en Ethernet puis l'allumer.
|
||||
|
||||
4. Scanner votre réseau pour trouver l'adresse IP de votre Raspberry Pi. Par exemple, avec l'outil `nmap`:
|
||||
|
||||
```bash
|
||||
sudo nmap -sP 192.168.0.* # À modifier par le préfixe correspondant à votre réseau local
|
||||
```
|
||||
|
||||
Une entrée équivalente à la suivante devrait être affichée:
|
||||
|
||||
```bash
|
||||
Starting Nmap 7.93 ( https://nmap.org ) at 2023-05-25 19:29 CEST
|
||||
Nmap scan report for 192.168.0.24
|
||||
Host is up (0.0034s latency).
|
||||
MAC Address: B8:27:EB:E5:7B:55 (Raspberry Pi Foundation)
|
||||
[...]
|
||||
```
|
||||
|
||||
5. Se connecter en SSH sur votre RaspberryPi et définir un mot de passe pour le compte administrateur:
|
||||
|
||||
```bash
|
||||
ssh root@<ip>
|
||||
|
||||
passwd
|
||||
```
|
||||
|
||||
### Installer le serveur Emissary
|
||||
|
||||
1. Sur la machine Ubuntu 22.04, télécharger les paquets Emissary sur la page ["Versions"](https://forge.cadoles.com/arcad/emissary/releases) du projet. Dans le cas présent, choisir le paquet Debian `emissary-server_<emissary_version>_linux_<arch>.deb` où `<arch>` correspond à l'architecture CPU de votre machine.
|
||||
|
||||
2. Installer le paquet télécharger via `dpkg`:
|
||||
|
||||
```
|
||||
sudo dpkg -i emissary-server_<emissary_version>_linux_<arch>.deb
|
||||
```
|
||||
|
||||
3. Appliquer les migrations sur la base de données:
|
||||
|
||||
```shell
|
||||
sudo emissary --workdir /usr/share/emissary --config /etc/emissary/server.yml server database migrate
|
||||
```
|
||||
|
||||
4. Redémarrer le service:
|
||||
|
||||
```shell
|
||||
sudo systemctl restart emissary-server
|
||||
```
|
||||
|
||||
5. Créer un jeton d'administration:
|
||||
|
||||
```shell
|
||||
sudo emissary --workdir /usr/share/emissary --config /etc/emissary/server.yml server auth create-token --role writer --subject $(whoami)
|
||||
```
|
||||
|
||||
> **Note** Le jeton sera stocké dans le répertoire `$HOME/.config/emissary`.
|
||||
|
||||
6. Vérifier l'authentification sur l'API:
|
||||
|
||||
```shell
|
||||
emissary api agent query
|
||||
```
|
||||
|
||||
Une réponse équivalente à la suivante devrait s'afficher:
|
||||
|
||||
```shell
|
||||
+----+-------+------------+--------+-------------+-----------+
|
||||
| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT |
|
||||
+----+-------+------------+--------+-------------+-----------+
|
||||
+----+-------+------------+--------+-------------+-----------+
|
||||
```
|
||||
|
||||
### Appairer l'agent avec votre serveur
|
||||
|
||||
1. Sur le RaspberryPi, exécuter la commande suivante:
|
||||
|
||||
```shell
|
||||
uci set emissary.agent.server_url='http://<server_ip>:3000'
|
||||
uci commit emissary
|
||||
reload_config
|
||||
```
|
||||
|
||||
2. Via la commande `logread`, vérifier que l'agent arrive à se connecter avec le serveur:
|
||||
|
||||
```shell
|
||||
logread -f
|
||||
```
|
||||
|
||||
Un message de ce type devrait s'afficher:
|
||||
|
||||
```
|
||||
Thu May 25 18:48:51 2023 daemon.info emissary[2202]: 2023-05-25 18:48:51.611 [INFO] <./internal/agent/controller/persistence/controller.go:58> (*Controller).Reconcile no changes detected, doing nothing {"controller": "persistence-controller"}
|
||||
Thu May 25 18:48:51 2023 daemon.info emissary[2202]: 2023-05-25 18:48:51.675 [ERROR] <./internal/agent/controller/spec/controller.go:43>(*Controller).reconcileAgent unexpected agent status {"controller": "spec-controller", "agentID": 1, "status": 0}
|
||||
Thu May 25 18:48:51 2023 daemon.info emissary[2202]: 2023-05-25 18:48:51.676 [INFO] <./internal/agent/controller/openwrt/uci_controller.go:32> (*UCIController).Reconcile could not find uci spec, doing nothing {"controller": "uci-controller"}
|
||||
Thu May 25 18:48:51 2023 daemon.info emissary[2202]: 2023-05-25 18:48:51.677 [INFO] <./internal/agent/controller/app/controller.go:43> (*Controller).Reconcile could not find app spec {"controller": "app-controller"}
|
||||
Thu May 25 18:48:51 2023 daemon.info emissary[2202]: 2023-05-25 18:48:51.678 [INFO] <./internal/agent/controller/proxy/controller.go:35>(*Controller).Reconcile could not find proxy spec {"controller": "proxy-controller"}
|
||||
Thu May 25 18:48:51 2023 daemon.info emissary[2202]: 2023-05-25 18:48:51.680 [INFO] <./internal/agent/controller/mdns/controller.go:38>(*Controller).Reconcile could not find mdns spec {"controller": "mdns-controller"}
|
||||
Thu May 25 18:48:51 2023 daemon.info emissary[2202]: 2023-05-25 18:48:51.680 [INFO] <./internal/agent/controller/openwrt/sysupgrade_controller.go:36> (*SysUpgradeController).Reconcile could not find sysupgrade spec, doing nothing {"controller": "sysupgrade-controller"}
|
||||
```
|
||||
|
||||
3. Sur le serveur, vérifier que l'agent a pu s'enregistrer:
|
||||
|
||||
```shell
|
||||
emissary api agent query
|
||||
```
|
||||
|
||||
Un message de ce type devrait s'afficher:
|
||||
|
||||
```
|
||||
+----+-------+-----------------------------------+--------+-----------------------------------+-----------------------------------+
|
||||
| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT |
|
||||
+----+-------+-----------------------------------+--------+-----------------------------------+-----------------------------------+
|
||||
| 1 | | 21CnUATcboKCaheb2uczWCuoxTZtnp... | 0 | 2023-05-25 18:49:51.652680196 ... | "2023-05-25T18:49:51.589225817... |
|
||||
+----+-------+-----------------------------------+--------+-----------------------------------+-----------------------------------+
|
||||
```
|
||||
|
||||
Noter l'identifiant associé à l'agent.
|
||||
|
||||
4. Mettre à jour le statut de l'agent afin qu'il soit en capacité à récupérer ses spécifications:
|
||||
|
||||
```
|
||||
emissary api agent update --agent-id <agent_id> --status 1
|
||||
```
|
||||
|
||||
**Bravo, vous avez appairé votre premier agent et son serveur Emissary !**
|
||||
|
||||
## Aller plus loin
|
||||
|
||||
- [Déployer une configuration UCI personnalisée sur un agent](./deploy-uci-configuration.md)
|
||||
- [Déployer un serveur mandataire inverse sur votre agent](./deploy-reverse-proxy.md)
|
38
go.mod
38
go.mod
@ -1,18 +1,22 @@
|
||||
module forge.cadoles.com/Cadoles/emissary
|
||||
|
||||
go 1.19
|
||||
go 1.21
|
||||
|
||||
toolchain go1.21.2
|
||||
|
||||
require (
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20230402160147-f08f645432c6
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20240110122251-a268759d330f
|
||||
github.com/Masterminds/sprig/v3 v3.2.3
|
||||
github.com/alecthomas/participle/v2 v2.0.0-beta.5
|
||||
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883
|
||||
github.com/antonmedv/expr v1.12.7
|
||||
github.com/brutella/dnssd v1.2.6
|
||||
github.com/btcsuite/btcd/btcutil v1.1.3
|
||||
github.com/davecgh/go-spew v1.1.1
|
||||
github.com/denisbrodbeck/machineid v1.0.1
|
||||
github.com/dop251/goja v0.0.0-20230304130813-e2f543bf4b4c
|
||||
github.com/evanphx/json-patch/v5 v5.6.0
|
||||
github.com/go-chi/chi v4.1.2+incompatible
|
||||
github.com/getsentry/sentry-go v0.25.0
|
||||
github.com/go-chi/cors v1.2.1
|
||||
github.com/golang-migrate/migrate/v4 v4.15.2
|
||||
github.com/jackc/pgx/v5 v5.3.1
|
||||
@ -24,7 +28,7 @@ require (
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/qri-io/jsonschema v0.2.1
|
||||
github.com/urfave/cli/v2 v2.24.4
|
||||
gitlab.com/wpetit/goweb v0.0.0-20230227162855-a1f09bafccb3
|
||||
gitlab.com/wpetit/goweb v0.0.0-20231019192040-4c72331a7648
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
modernc.org/sqlite v1.21.0
|
||||
)
|
||||
@ -33,25 +37,29 @@ require (
|
||||
github.com/Masterminds/goutils v1.1.1 // indirect
|
||||
github.com/Masterminds/semver/v3 v3.2.0 // indirect
|
||||
github.com/barnybug/go-cast v0.0.0-20201201064555-a87ccbc26692 // indirect
|
||||
github.com/brutella/dnssd v1.2.6 // indirect
|
||||
github.com/dop251/goja_nodejs v0.0.0-20230320130059-dcf93ba651dd // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.1 // indirect
|
||||
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/google/pprof v0.0.0-20230309165930-d61513b1440d // indirect
|
||||
github.com/gorilla/websocket v1.5.0 // indirect
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
||||
github.com/hashicorp/mdns v1.0.5 // indirect
|
||||
github.com/huandu/xstrings v1.3.3 // indirect
|
||||
github.com/igm/sockjs-go/v3 v3.0.2 // indirect
|
||||
github.com/imdario/mergo v0.3.12 // indirect
|
||||
github.com/miekg/dns v1.1.51 // indirect
|
||||
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf // indirect
|
||||
github.com/keegancsmith/rpc v1.3.0 // indirect
|
||||
github.com/klauspost/compress v1.16.6 // indirect
|
||||
github.com/miekg/dns v1.1.53 // indirect
|
||||
github.com/mitchellh/copystructure v1.0.0 // indirect
|
||||
github.com/mitchellh/reflectwalk v1.0.0 // indirect
|
||||
github.com/oklog/ulid/v2 v2.1.0 // indirect
|
||||
github.com/orcaman/concurrent-map v1.0.0 // indirect
|
||||
github.com/shopspring/decimal v1.2.0 // indirect
|
||||
github.com/spf13/cast v1.3.1 // indirect
|
||||
golang.org/x/net v0.8.0 // indirect
|
||||
github.com/ulikunitz/xz v0.5.11 // indirect
|
||||
golang.org/x/net v0.11.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20220728213248-dd149ef739b9 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
)
|
||||
@ -74,7 +82,7 @@ require (
|
||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
|
||||
github.com/jackc/puddle/v2 v2.2.0 // indirect
|
||||
github.com/jackc/puddle/v2 v2.2.1 // indirect
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
||||
github.com/leodido/go-urn v1.2.2 // indirect
|
||||
github.com/lestrrat-go/blackmagic v1.0.1 // indirect
|
||||
@ -95,15 +103,14 @@ require (
|
||||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
|
||||
go.opencensus.io v0.24.0 // indirect
|
||||
go.uber.org/atomic v1.10.0 // indirect
|
||||
golang.org/x/crypto v0.7.0 // indirect
|
||||
golang.org/x/mod v0.8.0 // indirect
|
||||
golang.org/x/crypto v0.10.0 // indirect
|
||||
golang.org/x/mod v0.10.0 // indirect
|
||||
golang.org/x/sync v0.1.0 // indirect
|
||||
golang.org/x/sys v0.6.0 // indirect
|
||||
golang.org/x/term v0.6.0 // indirect
|
||||
golang.org/x/text v0.8.0 // indirect
|
||||
golang.org/x/tools v0.6.0 // indirect
|
||||
golang.org/x/sys v0.9.0 // indirect
|
||||
golang.org/x/term v0.9.0 // indirect
|
||||
golang.org/x/text v0.10.0 // indirect
|
||||
golang.org/x/tools v0.8.0 // indirect
|
||||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
||||
google.golang.org/protobuf v1.28.1 // indirect
|
||||
gopkg.in/go-playground/validator.v9 v9.31.0 // indirect
|
||||
lukechampine.com/uint128 v1.2.0 // indirect
|
||||
modernc.org/cc/v3 v3.40.0 // indirect
|
||||
@ -117,3 +124,4 @@ require (
|
||||
)
|
||||
|
||||
// replace forge.cadoles.com/arcad/edge => ../edge
|
||||
replace github.com/allegro/bigcache/v3 v3.1.0 => github.com/Bornholm/bigcache v0.0.0-20231201111725-1ddf51584cad
|
||||
|
87
go.sum
87
go.sum
@ -54,10 +54,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl
|
||||
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20230328183829-d8ce2901d2ab h1:xOtzLAYOUcKd/VBx/PzL2riC0zNuQ/cxxf5r3AmEvJE=
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20230328183829-d8ce2901d2ab/go.mod h1:ONd6vyQ0IM0vHi1i+bmZBRc1Fd0BoXMuDdY/+0sZefw=
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20230402160147-f08f645432c6 h1:MxMEBSEvwagUrFORUJ9snZekFIKkaV3OB0EplXra+LU=
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20230402160147-f08f645432c6/go.mod h1:ONd6vyQ0IM0vHi1i+bmZBRc1Fd0BoXMuDdY/+0sZefw=
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20240110122251-a268759d330f h1:vIS4sbAcqLkgs/SkP3Zyqrn4Cgtgw4yiqfB3C2uQjJY=
|
||||
forge.cadoles.com/arcad/edge v0.0.0-20240110122251-a268759d330f/go.mod h1:MDQg88kowO/IUqPXznGERdfiaVn4lWk8VRwKDD+LTgw=
|
||||
gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=
|
||||
github.com/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg=
|
||||
github.com/Azure/azure-pipeline-go v0.2.3/go.mod h1:x841ezTBIMG6O3lAcl8ATHnsOPVl2bqk7S3ta6S6u4k=
|
||||
@ -130,6 +128,7 @@ github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkK
|
||||
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 h1:smF2tmSOzy2Mm+0dGI2AIUHY+w0BUc+4tn40djz7+6U=
|
||||
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38/go.mod h1:r7bzyVFMNntcxPZXK3/+KdruV1H5KSlyVY0gc+NgInI=
|
||||
github.com/alecthomas/assert/v2 v2.0.3 h1:WKqJODfOiQG0nEJKFKzDIG3E29CN2/4zR9XGJzKIkbg=
|
||||
github.com/alecthomas/assert/v2 v2.0.3/go.mod h1:b/+1DI2Q6NckYi+3mXyH3wFb8qG37K/DuK80n7WefXA=
|
||||
github.com/alecthomas/chroma v0.7.0/go.mod h1:1U/PfCsTALWWYHDnsIQkxEBM0+6LLe0v8+RSVMOwxeY=
|
||||
github.com/alecthomas/chroma v0.10.0 h1:7XDcGkCQopCNKjZHfYrNLraA+M7e0fMiJ/Mfikbfjek=
|
||||
github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQqNSB4rjA/1s=
|
||||
@ -141,6 +140,7 @@ github.com/alecthomas/participle/v2 v2.0.0-beta.5 h1:y6dsSYVb1G5eK6mgmy+BgI3Mw35
|
||||
github.com/alecthomas/participle/v2 v2.0.0-beta.5/go.mod h1:RC764t6n4L8D8ITAJv0qdokritYSNR3wV5cVwmIEaMM=
|
||||
github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ=
|
||||
github.com/alecthomas/repr v0.1.0 h1:ENn2e1+J3k09gyj2shc0dHr/yjaWSHRlrJ4DPMevDqE=
|
||||
github.com/alecthomas/repr v0.1.0/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8=
|
||||
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||
@ -151,6 +151,8 @@ github.com/alexflint/go-filemutex v1.1.0/go.mod h1:7P4iRhttt/nUvUOrYIhcpMzv2G6CY
|
||||
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ=
|
||||
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/antonmedv/expr v1.12.7 h1:jfV/l/+dHWAadLwAtESXNxXdfbK9bE4+FNMHYCMntwk=
|
||||
github.com/antonmedv/expr v1.12.7/go.mod h1:FPC8iWArxls7axbVLsW+kpg1mz29A1b2M6jt+hZfDkU=
|
||||
github.com/apache/arrow/go/arrow v0.0.0-20210818145353-234c94e4ce64/go.mod h1:2qMFB56yOP3KzkB3PbYZ4AlUFg3a88F67TIx5lB/WwY=
|
||||
github.com/apache/arrow/go/arrow v0.0.0-20211013220434-5962184e7a30/go.mod h1:Q7yQnSMnLvcXlZ8RV+jwz/6y1rQTqbX6C82SndT52Zs=
|
||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
|
||||
@ -504,15 +506,17 @@ github.com/gabriel-vasile/mimetype v1.4.1 h1:TRWk7se+TOjCYgRth7+1/OYLNiRNIotknkF
|
||||
github.com/gabriel-vasile/mimetype v1.4.1/go.mod h1:05Vi0w3Y9c/lNvJOdmIwvrrAhX3rYhfQQCaf9VJcv7M=
|
||||
github.com/garyburd/redigo v0.0.0-20150301180006-535138d7bcd7/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY=
|
||||
github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ=
|
||||
github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI=
|
||||
github.com/getsentry/sentry-go v0.25.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
|
||||
github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/go-chi/chi v4.0.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
|
||||
github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec=
|
||||
github.com/go-chi/chi v4.1.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
|
||||
github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0=
|
||||
github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
|
||||
github.com/go-chi/cors v1.2.1 h1:xEC8UT3Rlp2QuWNEr4Fs/c2EAGVKBwy/1vHx3bppil4=
|
||||
github.com/go-chi/cors v1.2.1/go.mod h1:sSbTewc+6wYHBBCW7ytsFSn836hqM7JxpglAy2Vzc58=
|
||||
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
|
||||
github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=
|
||||
github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g=
|
||||
github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks=
|
||||
github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
|
||||
@ -550,10 +554,10 @@ github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dp
|
||||
github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
|
||||
github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
|
||||
github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=
|
||||
github.com/go-playground/locales v0.12.1/go.mod h1:IUMDtCfWo/w/mtMfIE/IG2K+Ey3ygWanZIBtBW0W2TM=
|
||||
github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs=
|
||||
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
|
||||
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
||||
github.com/go-playground/universal-translator v0.16.0/go.mod h1:1AnU7NaIRDWWzGEKwgtJRd2xk99HeFyHw3yid4rvQIY=
|
||||
github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA=
|
||||
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
|
||||
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
|
||||
github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU=
|
||||
@ -673,6 +677,7 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYVaIZs/MK/Jz5any1wFW0=
|
||||
github.com/google/go-github/v39 v39.2.0/go.mod h1:C1s8C5aCC9L+JXIYpJM5GYytdX52vC1bLvHEF1IhBrE=
|
||||
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
|
||||
@ -761,6 +766,8 @@ github.com/hashicorp/go.net v0.0.0-20151006203346-104dcad90073/go.mod h1:hjKkEWc
|
||||
github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
|
||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
|
||||
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
|
||||
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
||||
github.com/hashicorp/mdns v0.0.0-20151206042412-9d85cf22f9f8/go.mod h1:aa76Av3qgPeIQp9Y3qIkTBPieQYNkQ13Kxe7pze9Wb0=
|
||||
@ -770,6 +777,7 @@ github.com/hashicorp/mdns v1.0.5/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/
|
||||
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
|
||||
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
|
||||
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
|
||||
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
|
||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||
github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4=
|
||||
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
|
||||
@ -786,6 +794,8 @@ github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH
|
||||
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
|
||||
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
|
||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf h1:FtEj8sfIcaaBfAKrE1Cwb61YDtYq9JxChK1c7AKce7s=
|
||||
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf/go.mod h1:yrqSXGoD/4EKfF26AOGzscPOgTTJcyAwM2rpixWT+t4=
|
||||
github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ=
|
||||
github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA=
|
||||
github.com/j-keck/arping v1.0.2/go.mod h1:aJbELhR92bSk7tp79AWM/ftfc90EfEi2bQJrbBFOsPw=
|
||||
@ -837,8 +847,8 @@ github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0f
|
||||
github.com/jackc/puddle v1.1.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
|
||||
github.com/jackc/puddle v1.1.1/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
|
||||
github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
|
||||
github.com/jackc/puddle/v2 v2.2.0 h1:RdcDk92EJBuBS55nQMMYFXTxwstHug4jkhT5pq8VxPk=
|
||||
github.com/jackc/puddle/v2 v2.2.0/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
||||
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
|
||||
github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
||||
github.com/jedib0t/go-pretty/v6 v6.4.4 h1:N+gz6UngBPF4M288kiMURPHELDMIhF/Em35aYuKrsSc=
|
||||
github.com/jedib0t/go-pretty/v6 v6.4.4/go.mod h1:MgmISkTWDSFu0xOqiZ0mKNntMQ2mDgOcwOkwBEkMDJI=
|
||||
github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
|
||||
@ -878,6 +888,8 @@ github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaR
|
||||
github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA=
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
||||
github.com/keegancsmith/rpc v1.3.0 h1:wGWOpjcNrZaY8GDYZJfvyxmlLljm3YQWF+p918DXtDk=
|
||||
github.com/keegancsmith/rpc v1.3.0/go.mod h1:6O2xnOGjPyvIPbvp0MdrOe5r6cu1GZ4JoTzpzDhWeo0=
|
||||
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
|
||||
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
@ -889,6 +901,8 @@ github.com/klauspost/compress v1.11.13/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdY
|
||||
github.com/klauspost/compress v1.13.1/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
|
||||
github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
|
||||
github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
|
||||
github.com/klauspost/compress v1.16.6 h1:91SKEy4K37vkp255cJ8QesJhjyRO0hn9i9G0GoUwLsk=
|
||||
github.com/klauspost/compress v1.16.6/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
@ -906,7 +920,7 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/ktrysmt/go-bitbucket v0.6.4/go.mod h1:9u0v3hsd2rqCHRIpbir1oP7F58uo5dq19sBYvuMoyQ4=
|
||||
github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw=
|
||||
github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY=
|
||||
github.com/leodido/go-urn v1.2.2 h1:7z68G0FCGvDk646jz1AelTYNYWrTNm0bEcFAo147wt4=
|
||||
github.com/leodido/go-urn v1.2.2/go.mod h1:kUaIbLZWttglzwNuG0pgsh5vuV6u2YcGBYz1hIPjtOQ=
|
||||
github.com/lestrrat-go/blackmagic v1.0.1 h1:lS5Zts+5HIC/8og6cGHb0uCcNCa3OUt1ygh3Qz2Fe80=
|
||||
@ -976,6 +990,7 @@ github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOq
|
||||
github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/mattn/go-sqlite3 v1.14.10/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=
|
||||
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
|
||||
github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY=
|
||||
@ -983,8 +998,8 @@ github.com/miekg/dns v0.0.0-20161006100029-fc4e1e2843d8/go.mod h1:W1PPwlIAgtquWB
|
||||
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||
github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI=
|
||||
github.com/miekg/dns v1.1.50/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME=
|
||||
github.com/miekg/dns v1.1.51 h1:0+Xg7vObnhrz/4ZCZcZh7zPXlmU0aveS2HDBd0m0qSo=
|
||||
github.com/miekg/dns v1.1.51/go.mod h1:2Z9d3CP1LQWihRZUf29mQ19yDThaI4DAYzte2CaQW5c=
|
||||
github.com/miekg/dns v1.1.53 h1:ZBkuHr5dxHtB1caEOlZTLPo7D3L3TWckgUUs/RHfDxw=
|
||||
github.com/miekg/dns v1.1.53/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY=
|
||||
github.com/miekg/pkcs11 v1.0.3/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs=
|
||||
github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible/go.mod h1:8AuVvqP/mXw1px98n46wfvcGfQ4ci2FwoAjKYxuo3Z4=
|
||||
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
|
||||
@ -1111,8 +1126,11 @@ github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2
|
||||
github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
|
||||
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
|
||||
github.com/pierrec/lz4/v4 v4.1.8/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
|
||||
github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
|
||||
github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
|
||||
github.com/pkg/browser v0.0.0-20210706143420-7d21f8c997e2/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI=
|
||||
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI=
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
@ -1174,6 +1192,7 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
|
||||
github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
|
||||
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
|
||||
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
|
||||
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
|
||||
@ -1209,8 +1228,9 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
|
||||
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
||||
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
|
||||
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
|
||||
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
|
||||
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
||||
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
||||
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
||||
@ -1271,6 +1291,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1
|
||||
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
|
||||
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM=
|
||||
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
|
||||
github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8=
|
||||
github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
|
||||
github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
|
||||
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
|
||||
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
|
||||
@ -1312,8 +1334,8 @@ github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPS
|
||||
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg=
|
||||
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
|
||||
gitlab.com/nyarla/go-crypt v0.0.0-20160106005555-d9a5dc2b789b/go.mod h1:T3BPAOm2cqquPa0MKWeNkmOM5RQsRhkrwMWonFMN7fE=
|
||||
gitlab.com/wpetit/goweb v0.0.0-20230227162855-a1f09bafccb3 h1:ddXRTeqEr7LcHQEtkd6gogZOh9tI1Y6Gappr0a1oa2I=
|
||||
gitlab.com/wpetit/goweb v0.0.0-20230227162855-a1f09bafccb3/go.mod h1:3sus4zjoUv1GB7eDLL60QaPkUnXJCWBpjvbe0jWifeY=
|
||||
gitlab.com/wpetit/goweb v0.0.0-20231019192040-4c72331a7648 h1:t2UQmCmUoElIBBuVTqxqo8DcTJA/exQ/Q7XycfLqCZo=
|
||||
gitlab.com/wpetit/goweb v0.0.0-20231019192040-4c72331a7648/go.mod h1:WdxGjM3HJWgBkUa4TwaTXUqY2BnRKlNSyUIv1aF4jxk=
|
||||
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
||||
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
||||
go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ=
|
||||
@ -1367,6 +1389,8 @@ go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0
|
||||
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
|
||||
go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
|
||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
||||
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
||||
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
|
||||
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||
@ -1401,8 +1425,9 @@ golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm
|
||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
|
||||
golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A=
|
||||
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
|
||||
golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM=
|
||||
golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I=
|
||||
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
@ -1451,9 +1476,9 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk=
|
||||
golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/net v0.0.0-20161013035702-8b4af36cd21a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
@ -1530,8 +1555,9 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
|
||||
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
|
||||
golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
||||
golang.org/x/net v0.11.0 h1:Gi2tvZIJyBtO9SDr1q9h5hEQCp/4L2RQ+ar0qjx2oNU=
|
||||
golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ=
|
||||
golang.org/x/oauth2 v0.0.0-20180227000427-d7d64896b5ff/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
@ -1695,8 +1721,9 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s=
|
||||
golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
@ -1705,8 +1732,9 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
|
||||
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
|
||||
golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||
golang.org/x/term v0.9.0 h1:GRRCnKYhdQrD8kfRAdQ6Zcw1P0OcELxGLKJvtjVMZ28=
|
||||
golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
@ -1720,8 +1748,9 @@ golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
|
||||
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
|
||||
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.10.0 h1:UpjohKhiEgNc0CSauXmwYftY1+LlaC75SJwh0SgCX58=
|
||||
golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
@ -1811,9 +1840,9 @@ golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k=
|
||||
golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/tools v0.8.0 h1:vSDcovVPld282ceKgDimkRSC8kpaH1dgyc9UMzlt84Y=
|
||||
golang.org/x/tools v0.8.0/go.mod h1:JxBZ99ISMI5ViVkT1tr6tdNmXeTrcpVSD3vZ1RsRdN4=
|
||||
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
@ -1976,6 +2005,7 @@ google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ5
|
||||
google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
|
||||
google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ=
|
||||
google.golang.org/grpc v1.48.0 h1:rQOsyJ/8+ufEDJd/Gdsz7HG220Mh9HAhFHRGnIjda0w=
|
||||
google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
@ -1990,8 +2020,8 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
|
||||
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.29.1 h1:7QBf+IK2gx70Ap/hDsOmam3GE0v9HicjfEdAxE62UoM=
|
||||
google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U=
|
||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
@ -2102,6 +2132,7 @@ modernc.org/ccgo/v3 v3.9.2/go.mod h1:gnJpy6NIVqkETT+L5zPsQFj7L2kkhfPMzOghRNv/CFo
|
||||
modernc.org/ccgo/v3 v3.16.13 h1:Mkgdzl46i5F/CNR/Kj80Ri59hC8TKAhZrYSaqvkwzUw=
|
||||
modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY=
|
||||
modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk=
|
||||
modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ=
|
||||
modernc.org/db v1.0.0/go.mod h1:kYD/cO29L/29RM0hXYl4i3+Q5VojL31kTUVpVJDw0s8=
|
||||
modernc.org/file v1.0.0/go.mod h1:uqEokAEn1u6e+J45e54dsEA/pw4o7zLrA2GwyntZzjw=
|
||||
modernc.org/fileutil v1.0.0/go.mod h1:JHsWpkrk/CnVV1H/eGlFf85BEpfkrp56ro8nojIq9Q8=
|
||||
@ -2135,12 +2166,14 @@ modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY=
|
||||
modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw=
|
||||
modernc.org/tcl v1.5.2/go.mod h1:pmJYOLgpiys3oI4AeAafkcUfE+TKKilminxNyU/+Zlo=
|
||||
modernc.org/tcl v1.15.1 h1:mOQwiEK4p7HruMZcwKTZPw/aqtGM4aY00uzWhlKKYws=
|
||||
modernc.org/tcl v1.15.1/go.mod h1:aEjeGJX2gz1oWKOLDVZ2tnEWLUrIn8H+GFu+akoDhqs=
|
||||
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=
|
||||
modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
modernc.org/z v1.0.1-0.20210308123920-1f282aa71362/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA=
|
||||
modernc.org/z v1.0.1/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA=
|
||||
modernc.org/z v1.7.0 h1:xkDw/KepgEjeizO2sNco+hqYkU12taxQFqPEmgm1GWE=
|
||||
modernc.org/z v1.7.0/go.mod h1:hVdgNMh8ggTuRG1rGU8x+xGRFfiQUIAw0ZqlPy8+HyQ=
|
||||
modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/metadata"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/auth/agent"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/api"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
@ -43,13 +43,15 @@ func (a *Agent) Run(ctx context.Context) error {
|
||||
logger.Debug(ctx, "registering agent")
|
||||
|
||||
if err := a.registerAgent(ctx, client, state); err != nil {
|
||||
logger.Error(ctx, "could not register agent", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not register agent", logger.CapturedE(err))
|
||||
}
|
||||
|
||||
logger.Debug(ctx, "state before reconciliation", logger.F("state", state))
|
||||
|
||||
if err := a.Reconcile(ctx, state); err != nil {
|
||||
logger.Error(ctx, "could not reconcile node with state", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not reconcile node with state", logger.CapturedE(err))
|
||||
|
||||
return
|
||||
}
|
||||
@ -79,7 +81,8 @@ func (a *Agent) Reconcile(ctx context.Context, state *State) error {
|
||||
)
|
||||
|
||||
if err := ctrl.Reconcile(ctrlCtx, state); err != nil {
|
||||
logger.Error(ctx, "could not reconcile", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not reconcile", logger.CapturedE(err))
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,9 +113,10 @@ func (a *Agent) collectMetadata(ctx context.Context) (map[string]any, error) {
|
||||
for _, collector := range a.collectors {
|
||||
name, value, err := collector.Collect(ctx)
|
||||
if err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "could not collect metadata",
|
||||
logger.E(errors.WithStack(err)), logger.F("name", name),
|
||||
logger.CapturedE(err), logger.F("name", name),
|
||||
)
|
||||
|
||||
continue
|
||||
|
@ -3,7 +3,7 @@ package agent
|
||||
import (
|
||||
"context"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
@ -3,13 +3,10 @@ package app
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"database/sql"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
"net"
|
||||
"text/template"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/controller/app/spec"
|
||||
appSpec "forge.cadoles.com/Cadoles/emissary/internal/agent/controller/app/spec"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"forge.cadoles.com/arcad/edge/pkg/app"
|
||||
"forge.cadoles.com/arcad/edge/pkg/bus"
|
||||
@ -17,30 +14,62 @@ import (
|
||||
edgeHTTP "forge.cadoles.com/arcad/edge/pkg/http"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module"
|
||||
appModule "forge.cadoles.com/arcad/edge/pkg/module/app"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module/auth"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module/blob"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module/cast"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module/fetch"
|
||||
fetchModule "forge.cadoles.com/arcad/edge/pkg/module/fetch"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module/net"
|
||||
"forge.cadoles.com/arcad/edge/pkg/storage/sqlite"
|
||||
netModule "forge.cadoles.com/arcad/edge/pkg/module/net"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module/rpc"
|
||||
shareModule "forge.cadoles.com/arcad/edge/pkg/module/share"
|
||||
"forge.cadoles.com/arcad/edge/pkg/storage"
|
||||
"forge.cadoles.com/arcad/edge/pkg/storage/driver"
|
||||
"forge.cadoles.com/arcad/edge/pkg/storage/share"
|
||||
"github.com/Masterminds/sprig/v3"
|
||||
"github.com/dop251/goja"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/lestrrat-go/jwx/v2/jwa"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
|
||||
// Register storage drivers
|
||||
_ "forge.cadoles.com/arcad/edge/pkg/storage/driver/cache"
|
||||
_ "forge.cadoles.com/arcad/edge/pkg/storage/driver/rpc"
|
||||
_ "forge.cadoles.com/arcad/edge/pkg/storage/driver/sqlite"
|
||||
)
|
||||
|
||||
const defaultSQLiteParams = "?_pragma=foreign_keys(1)&_pragma=journal_mode(WAL)&_txlock=immediate"
|
||||
type Dependencies struct {
|
||||
Bus bus.Bus
|
||||
DocumentStore storage.DocumentStore
|
||||
BlobStore storage.BlobStore
|
||||
ShareStore share.Store
|
||||
KeySet jwk.Set
|
||||
AppRepository appModule.Repository
|
||||
AppID app.ID
|
||||
}
|
||||
|
||||
func (c *Controller) getHandlerOptions(ctx context.Context, appKey string, specs *spec.Spec) ([]edgeHTTP.HandlerOptionFunc, error) {
|
||||
dataDir, err := c.ensureAppDataDir(ctx, appKey)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not retrieve app data dir")
|
||||
appEntry, exists := specs.Apps[appKey]
|
||||
if !exists {
|
||||
return nil, errors.Errorf("could not find app entry '%s'", appKey)
|
||||
}
|
||||
|
||||
dbFile := filepath.Join(dataDir, appKey+".sqlite")
|
||||
db, err := sqlite.Open(dbFile + defaultSQLiteParams)
|
||||
storage := appEntry.Storage
|
||||
if storage == nil {
|
||||
return nil, errors.Errorf("could not find app entry '%s' storage configuration", appKey)
|
||||
}
|
||||
|
||||
documentStore, err := driver.NewDocumentStore(appEntry.Storage.DocumentStoreDSN)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "could not open database file '%s'", dbFile)
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
blobStore, err := driver.NewBlobStore(appEntry.Storage.BlobStoreDSN)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
shareStore, err := driver.NewShareStore(appEntry.Storage.ShareStoreDSN)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
keySet, err := getAuthKeySet(specs.Config)
|
||||
@ -48,18 +77,48 @@ func (c *Controller) getHandlerOptions(ctx context.Context, appKey string, specs
|
||||
return nil, errors.Wrap(err, "could not retrieve auth key set")
|
||||
}
|
||||
|
||||
bundles := make([]string, 0, len(specs.Apps))
|
||||
for appKey, app := range specs.Apps {
|
||||
path := c.getAppBundlePath(appKey, app.Format)
|
||||
bundles = append(bundles, path)
|
||||
mounts := make([]func(r chi.Router), 0)
|
||||
|
||||
authMount, err := getAuthMount(specs.Config.Auth, keySet)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
bus := memory.NewBus()
|
||||
modules := c.getAppModules(bus, db, specs, keySet)
|
||||
if authMount != nil {
|
||||
mounts = append(mounts, authMount)
|
||||
}
|
||||
|
||||
mounts = append(
|
||||
mounts,
|
||||
appModule.Mount(c.appRepository),
|
||||
blob.Mount(10<<(10*2)), // 10Mb
|
||||
fetch.Mount(),
|
||||
)
|
||||
|
||||
deps := Dependencies{
|
||||
Bus: memory.NewBus(),
|
||||
DocumentStore: documentStore,
|
||||
BlobStore: blobStore,
|
||||
ShareStore: shareStore,
|
||||
KeySet: keySet,
|
||||
AppRepository: c.appRepository,
|
||||
AppID: app.ID(appKey),
|
||||
}
|
||||
|
||||
modules := c.getAppModules(deps)
|
||||
|
||||
anonymousUserMiddleware, err := getAnonymousUserMiddleware(specs.Config.Auth)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not get anonymous user middleware")
|
||||
}
|
||||
|
||||
options := []edgeHTTP.HandlerOptionFunc{
|
||||
edgeHTTP.WithBus(bus),
|
||||
edgeHTTP.WithBus(deps.Bus),
|
||||
edgeHTTP.WithServerModules(modules...),
|
||||
edgeHTTP.WithHTTPMounts(mounts...),
|
||||
edgeHTTP.WithHTTPMiddlewares(
|
||||
anonymousUserMiddleware,
|
||||
),
|
||||
}
|
||||
|
||||
return options, nil
|
||||
@ -107,86 +166,153 @@ func getAuthKeySet(config *spec.Config) (jwk.Set, error) {
|
||||
return keySet, nil
|
||||
}
|
||||
|
||||
func createGetAppURL(specs *spec.Spec) GetURLFunc {
|
||||
var (
|
||||
compileOnce sync.Once
|
||||
urlTemplate *template.Template
|
||||
err error
|
||||
)
|
||||
func createResolveAppURL(specs *spec.Spec) (ResolveAppURLFunc, error) {
|
||||
rawIfaceMappings := make(map[string]string, 0)
|
||||
if specs.Config != nil && specs.Config.AppURLResolving != nil && specs.Config.AppURLResolving.IfaceMappings != nil {
|
||||
rawIfaceMappings = specs.Config.AppURLResolving.IfaceMappings
|
||||
}
|
||||
|
||||
return func(ctx context.Context, manifest *app.Manifest) (string, error) {
|
||||
ifaceMappings := make(map[string]*template.Template, len(rawIfaceMappings))
|
||||
for iface, rawTemplate := range rawIfaceMappings {
|
||||
tmpl, err := template.New("").Funcs(sprig.TxtFuncMap()).Parse(rawTemplate)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "could not parse iface '%s' template", iface)
|
||||
}
|
||||
|
||||
ifaceMappings[iface] = tmpl
|
||||
}
|
||||
|
||||
defaultRawTemplate := `http://{{ .DeviceIP }}:{{ .AppPort }}`
|
||||
if specs.Config != nil && specs.Config.AppURLResolving != nil && specs.Config.AppURLResolving.DefaultURLTemplate != "" {
|
||||
defaultRawTemplate = specs.Config.AppURLResolving.DefaultURLTemplate
|
||||
}
|
||||
|
||||
defaultTemplate, err := template.New("").Funcs(sprig.TxtFuncMap()).Parse(defaultRawTemplate)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return func(ctx context.Context, manifest *app.Manifest, from string) (string, error) {
|
||||
var (
|
||||
urlTemplate *template.Template
|
||||
deviceIP net.IP
|
||||
)
|
||||
|
||||
fromIP := net.ParseIP(from)
|
||||
|
||||
if fromIP != nil {
|
||||
LOOP:
|
||||
for ifaceName, ifaceTmpl := range ifaceMappings {
|
||||
iface, err := net.InterfaceByName(ifaceName)
|
||||
if err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Warn(
|
||||
ctx, "could not find interface",
|
||||
logger.CapturedE(err), logger.F("iface", ifaceName),
|
||||
)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
addresses, err := iface.Addrs()
|
||||
if err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "could not list interface addresses",
|
||||
logger.CapturedE(err),
|
||||
logger.F("iface", iface.Name),
|
||||
)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
for _, addr := range addresses {
|
||||
ifaIP, network, err := net.ParseCIDR(addr.String())
|
||||
if err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "could not parse interface ip",
|
||||
logger.CapturedE(err),
|
||||
logger.F("iface", iface.Name),
|
||||
)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
if !network.Contains(fromIP) {
|
||||
continue
|
||||
}
|
||||
|
||||
deviceIP = ifaIP
|
||||
urlTemplate = ifaceTmpl
|
||||
|
||||
break LOOP
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if urlTemplate == nil {
|
||||
urlTemplate = defaultTemplate
|
||||
}
|
||||
|
||||
if deviceIP == nil {
|
||||
deviceIP = net.ParseIP("127.0.0.1")
|
||||
}
|
||||
|
||||
var appEntry *spec.AppEntry
|
||||
for appID, entry := range specs.Apps {
|
||||
if manifest.ID != app.ID(appID) {
|
||||
continue
|
||||
}
|
||||
|
||||
appEntry = &entry
|
||||
break
|
||||
}
|
||||
|
||||
if appEntry == nil {
|
||||
return "", errors.Errorf("could not find app '%s' in specs", manifest.ID)
|
||||
}
|
||||
|
||||
_, port, err := net.SplitHostPort(appEntry.Address)
|
||||
if err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
var appURLTemplate string
|
||||
|
||||
if specs.Config == nil || specs.Config.AppURLTemplate == "" {
|
||||
appURLTemplate = `http://{{ last ( splitList "." ( toString .Manifest.ID ) ) }}.local`
|
||||
} else {
|
||||
appURLTemplate = specs.Config.AppURLTemplate
|
||||
}
|
||||
|
||||
compileOnce.Do(func() {
|
||||
urlTemplate, err = template.New("").Funcs(sprig.TxtFuncMap()).Parse(appURLTemplate)
|
||||
})
|
||||
|
||||
var buf bytes.Buffer
|
||||
|
||||
data := struct {
|
||||
Manifest *app.Manifest
|
||||
Specs *spec.Spec
|
||||
DeviceIP string
|
||||
AppPort string
|
||||
}{
|
||||
Manifest: manifest,
|
||||
Specs: specs,
|
||||
DeviceIP: deviceIP.String(),
|
||||
AppPort: port,
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
|
||||
if err := urlTemplate.Execute(&buf, data); err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
return buf.String(), nil
|
||||
}
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (c *Controller) getAppModules(bus bus.Bus, db *sql.DB, spec *appSpec.Spec, keySet jwk.Set) []app.ServerModuleFactory {
|
||||
ds := sqlite.NewDocumentStoreWithDB(db)
|
||||
bs := sqlite.NewBlobStoreWithDB(db)
|
||||
|
||||
func (c *Controller) getAppModules(deps Dependencies) []app.ServerModuleFactory {
|
||||
return []app.ServerModuleFactory{
|
||||
module.ContextModuleFactory(),
|
||||
module.ConsoleModuleFactory(),
|
||||
cast.CastModuleFactory(),
|
||||
module.LifecycleModuleFactory(),
|
||||
net.ModuleFactory(bus),
|
||||
module.RPCModuleFactory(bus),
|
||||
module.StoreModuleFactory(ds),
|
||||
blob.ModuleFactory(bus, bs),
|
||||
module.Extends(
|
||||
auth.ModuleFactory(
|
||||
auth.WithJWT(func() (jwk.Set, error) {
|
||||
return keySet, nil
|
||||
}),
|
||||
),
|
||||
func(o *goja.Object) {
|
||||
if err := o.Set("CLAIM_TENANT", "arcad_tenant"); err != nil {
|
||||
panic(errors.New("could not set 'CLAIM_TENANT' property"))
|
||||
}
|
||||
|
||||
if err := o.Set("CLAIM_ENTRYPOINT", "arcad_entrypoint"); err != nil {
|
||||
panic(errors.New("could not set 'CLAIM_ENTRYPOINT' property"))
|
||||
}
|
||||
|
||||
if err := o.Set("CLAIM_ROLE", "arcad_role"); err != nil {
|
||||
panic(errors.New("could not set 'CLAIM_ROLE' property"))
|
||||
}
|
||||
|
||||
if err := o.Set("CLAIM_PREFERRED_USERNAME", "preferred_username"); err != nil {
|
||||
panic(errors.New("could not set 'CLAIM_PREFERRED_USERNAME' property"))
|
||||
}
|
||||
},
|
||||
),
|
||||
appModule.ModuleFactory(c.appRepository),
|
||||
fetchModule.ModuleFactory(bus),
|
||||
netModule.ModuleFactory(deps.Bus),
|
||||
rpc.ModuleFactory(deps.Bus),
|
||||
module.StoreModuleFactory(deps.DocumentStore),
|
||||
blob.ModuleFactory(deps.Bus, deps.BlobStore),
|
||||
authModuleFactory(deps.KeySet),
|
||||
appModule.ModuleFactory(deps.AppRepository),
|
||||
fetchModule.ModuleFactory(deps.Bus),
|
||||
shareModule.ModuleFactory(deps.AppID, deps.ShareStore),
|
||||
}
|
||||
}
|
||||
|
73
internal/agent/controller/app/app_handler_test.go
Normal file
73
internal/agent/controller/app/app_handler_test.go
Normal file
@ -0,0 +1,73 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/controller/app/spec"
|
||||
"forge.cadoles.com/arcad/edge/pkg/app"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func TestCreateResolveAppURL(t *testing.T) {
|
||||
specs := &spec.Spec{
|
||||
Apps: map[string]spec.AppEntry{
|
||||
"app.arcad.test": {
|
||||
Address: ":8080",
|
||||
},
|
||||
"app.arcad.foo": {
|
||||
Address: ":8081",
|
||||
},
|
||||
"app.arcad.bar": {
|
||||
Address: ":8082",
|
||||
},
|
||||
},
|
||||
Config: &spec.Config{
|
||||
AppURLResolving: &spec.AppURLResolving{
|
||||
IfaceMappings: map[string]string{
|
||||
"lo": "http://{{ .DeviceIP }}:{{ .AppPort }}",
|
||||
"does-not-exists": "http://{{ .DeviceIP }}:{{ .AppPort }}",
|
||||
},
|
||||
DefaultURLTemplate: `http://{{ last ( splitList "." ( toString .Manifest.ID ) ) }}.arcad.local`,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
resolveAppURL, err := createResolveAppURL(specs)
|
||||
if err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
manifest := &app.Manifest{
|
||||
ID: "app.arcad.test",
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
url, err := resolveAppURL(ctx, manifest, "127.0.0.2")
|
||||
if err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
if e, g := "http://127.0.0.1:8080", url; e != g {
|
||||
t.Errorf("url: expected '%s', got '%s", e, g)
|
||||
}
|
||||
|
||||
url, err = resolveAppURL(ctx, manifest, "")
|
||||
if err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
if e, g := "http://test.arcad.local", url; e != g {
|
||||
t.Errorf("url: expected '%s', got '%s", e, g)
|
||||
}
|
||||
|
||||
url, err = resolveAppURL(ctx, manifest, "192.168.0.100")
|
||||
if err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
if e, g := "http://test.arcad.local", url; e != g {
|
||||
t.Errorf("url: expected '%s', got '%s", e, g)
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@ package app
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"forge.cadoles.com/arcad/edge/pkg/app"
|
||||
@ -11,12 +12,12 @@ import (
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
)
|
||||
|
||||
type GetURLFunc func(context.Context, *app.Manifest) (string, error)
|
||||
type ResolveAppURLFunc func(context.Context, *app.Manifest, string) (string, error)
|
||||
|
||||
type AppRepository struct {
|
||||
getURL GetURLFunc
|
||||
bundles []string
|
||||
mutex sync.RWMutex
|
||||
resolveAppURL ResolveAppURLFunc
|
||||
bundles []string
|
||||
mutex sync.RWMutex
|
||||
}
|
||||
|
||||
// Get implements app.Repository
|
||||
@ -33,7 +34,7 @@ func (r *AppRepository) Get(ctx context.Context, id app.ID) (*app.Manifest, erro
|
||||
}
|
||||
|
||||
// GetURL implements app.Repository
|
||||
func (r *AppRepository) GetURL(ctx context.Context, id app.ID) (string, error) {
|
||||
func (r *AppRepository) GetURL(ctx context.Context, id app.ID, from string) (string, error) {
|
||||
r.mutex.RLock()
|
||||
defer r.mutex.RUnlock()
|
||||
|
||||
@ -42,7 +43,7 @@ func (r *AppRepository) GetURL(ctx context.Context, id app.ID) (string, error) {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
url, err := r.getURL(ctx, manifest)
|
||||
url, err := r.resolveAppURL(ctx, manifest, from)
|
||||
if err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
@ -62,14 +63,16 @@ func (r *AppRepository) List(ctx context.Context) ([]*app.Manifest, error) {
|
||||
|
||||
bundle, err := bundle.FromPath(path)
|
||||
if err != nil {
|
||||
logger.Error(bundleCtx, "could not load bundle", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(bundleCtx, "could not load bundle", logger.CapturedE(err))
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
manifest, err := app.LoadManifest(bundle)
|
||||
if err != nil {
|
||||
logger.Error(bundleCtx, "could not load manifest", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(bundleCtx, "could not load manifest", logger.CapturedE(err))
|
||||
|
||||
continue
|
||||
}
|
||||
@ -77,14 +80,16 @@ func (r *AppRepository) List(ctx context.Context) ([]*app.Manifest, error) {
|
||||
manifests = append(manifests, manifest)
|
||||
}
|
||||
|
||||
sort.Sort(ByID(manifests))
|
||||
|
||||
return manifests, nil
|
||||
}
|
||||
|
||||
func (r *AppRepository) Update(getURL GetURLFunc, bundles []string) {
|
||||
func (r *AppRepository) Update(resolveAppURL ResolveAppURLFunc, bundles []string) {
|
||||
r.mutex.Lock()
|
||||
defer r.mutex.Unlock()
|
||||
|
||||
r.getURL = getURL
|
||||
r.resolveAppURL = resolveAppURL
|
||||
r.bundles = bundles
|
||||
}
|
||||
|
||||
@ -94,14 +99,16 @@ func (r *AppRepository) findManifest(ctx context.Context, id app.ID) (*app.Manif
|
||||
|
||||
bundle, err := bundle.FromPath(path)
|
||||
if err != nil {
|
||||
logger.Error(bundleCtx, "could not load bundle", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(bundleCtx, "could not load bundle", logger.CapturedE(err))
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
manifest, err := app.LoadManifest(bundle)
|
||||
if err != nil {
|
||||
logger.Error(bundleCtx, "could not load manifest", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(bundleCtx, "could not load manifest", logger.CapturedE(err))
|
||||
|
||||
continue
|
||||
}
|
||||
@ -118,7 +125,7 @@ func (r *AppRepository) findManifest(ctx context.Context, id app.ID) (*app.Manif
|
||||
|
||||
func NewAppRepository() *AppRepository {
|
||||
return &AppRepository{
|
||||
getURL: func(ctx context.Context, m *app.Manifest) (string, error) {
|
||||
resolveAppURL: func(ctx context.Context, m *app.Manifest, from string) (string, error) {
|
||||
return "", errors.New("unavailable")
|
||||
},
|
||||
bundles: []string{},
|
||||
@ -126,3 +133,9 @@ func NewAppRepository() *AppRepository {
|
||||
}
|
||||
|
||||
var _ appModule.Repository = &AppRepository{}
|
||||
|
||||
type ByID []*app.Manifest
|
||||
|
||||
func (a ByID) Len() int { return len(a) }
|
||||
func (a ByID) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
||||
func (a ByID) Less(i, j int) bool { return a[i].ID > a[j].ID }
|
||||
|
166
internal/agent/controller/app/auth_module.go
Normal file
166
internal/agent/controller/app/auth_module.go
Normal file
@ -0,0 +1,166 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
appSpec "forge.cadoles.com/Cadoles/emissary/internal/agent/controller/app/spec"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"forge.cadoles.com/arcad/edge/pkg/app"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module"
|
||||
"forge.cadoles.com/arcad/edge/pkg/module/auth"
|
||||
authModule "forge.cadoles.com/arcad/edge/pkg/module/auth"
|
||||
authHTTP "forge.cadoles.com/arcad/edge/pkg/module/auth/http"
|
||||
authModuleMiddleware "forge.cadoles.com/arcad/edge/pkg/module/auth/middleware"
|
||||
|
||||
"github.com/dop251/goja"
|
||||
"github.com/lestrrat-go/jwx/v2/jwa"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
const (
|
||||
RoleVisitor string = "visitor"
|
||||
RoleUser string = "user"
|
||||
RoleSuperuser string = "superuser"
|
||||
RoleAdmin string = "admin"
|
||||
RoleSuperadmin string = "superadmin"
|
||||
)
|
||||
|
||||
func authModuleFactory(keySet jwk.Set) app.ServerModuleFactory {
|
||||
return module.Extends(
|
||||
authModule.ModuleFactory(
|
||||
authModule.WithJWT(func() (jwk.Set, error) {
|
||||
return keySet, nil
|
||||
}),
|
||||
),
|
||||
func(o *goja.Object) {
|
||||
if err := o.Set("ROLE_VISITOR", RoleVisitor); err != nil {
|
||||
panic(errors.New("could not set 'ROLE_VISITOR' property"))
|
||||
}
|
||||
|
||||
if err := o.Set("ROLE_USER", RoleUser); err != nil {
|
||||
panic(errors.New("could not set 'ROLE_USER' property"))
|
||||
}
|
||||
|
||||
if err := o.Set("ROLE_SUPERUSER", RoleSuperuser); err != nil {
|
||||
panic(errors.New("could not set 'ROLE_SUPERUSER' property"))
|
||||
}
|
||||
|
||||
if err := o.Set("ROLE_ADMIN", RoleAdmin); err != nil {
|
||||
panic(errors.New("could not set 'ROLE_ADMIN' property"))
|
||||
}
|
||||
|
||||
if err := o.Set("ROLE_SUPERADMIN", RoleSuperadmin); err != nil {
|
||||
panic(errors.New("could not set 'ROLE_SUPERADMIN' property"))
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
func getAuthMount(auth *appSpec.Auth, keySet jwk.Set) (auth.MountFunc, error) {
|
||||
switch {
|
||||
case auth.Local != nil:
|
||||
var rawKey any = auth.Local.Key
|
||||
if strKey, ok := rawKey.(string); ok {
|
||||
rawKey = []byte(strKey)
|
||||
}
|
||||
|
||||
key, err := jwk.FromRaw(rawKey)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
cookieDuration := defaultCookieDuration
|
||||
if auth.Local.CookieDuration != "" {
|
||||
cookieDuration, err = time.ParseDuration(auth.Local.CookieDuration)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
}
|
||||
|
||||
return authModule.Mount(
|
||||
authHTTP.NewLocalHandler(
|
||||
key,
|
||||
jwa.HS256,
|
||||
authHTTP.WithRoutePrefix("/auth"),
|
||||
authHTTP.WithAccounts(auth.Local.Accounts...),
|
||||
authHTTP.WithCookieOptions(getCookieDomain, cookieDuration),
|
||||
),
|
||||
authModule.WithJWT(func() (jwk.Set, error) {
|
||||
return keySet, nil
|
||||
}),
|
||||
), nil
|
||||
|
||||
default:
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
|
||||
func getAnonymousUserMiddleware(auth *appSpec.Auth) (func(http.Handler) http.Handler, error) {
|
||||
anonymousUserSigningKey, err := getAnonymousUserSigningKey(auth)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not get anonymous user signing key")
|
||||
}
|
||||
|
||||
cookieDuration := defaultCookieDuration
|
||||
if auth.Local.CookieDuration != "" {
|
||||
cookieDuration, err = time.ParseDuration(auth.Local.CookieDuration)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
}
|
||||
|
||||
middleware := authModuleMiddleware.AnonymousUser(
|
||||
anonymousUserSigningKey,
|
||||
auth.Local.SigningAlgorithm,
|
||||
authModuleMiddleware.WithCookieOptions(getCookieDomain, cookieDuration),
|
||||
)
|
||||
|
||||
return middleware, nil
|
||||
}
|
||||
|
||||
func getAnonymousUserSigningKey(auth *appSpec.Auth) (jwk.Key, error) {
|
||||
var (
|
||||
key jwk.Key
|
||||
err error
|
||||
)
|
||||
|
||||
generateNewKey := func() (jwk.Key, error) {
|
||||
key, err := jwk.Generate(2048)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return key, nil
|
||||
}
|
||||
|
||||
switch {
|
||||
default:
|
||||
fallthrough
|
||||
case auth == nil:
|
||||
key, err = generateNewKey()
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not generate anonymous user signing key")
|
||||
}
|
||||
|
||||
return key, nil
|
||||
|
||||
case auth.Local != nil:
|
||||
switch typedKey := auth.Local.Key.(type) {
|
||||
case string:
|
||||
key, err = jwk.FromRaw([]byte(typedKey))
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not parse local auth key")
|
||||
}
|
||||
|
||||
if err := key.Set(jwk.AlgorithmKey, jwa.HS256); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
default:
|
||||
return nil, errors.Errorf("unexpected key type '%T'", auth.Local.Key)
|
||||
}
|
||||
}
|
||||
|
||||
return key, nil
|
||||
}
|
@ -9,6 +9,7 @@ import (
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/controller/app/spec"
|
||||
"forge.cadoles.com/arcad/edge/pkg/app"
|
||||
"forge.cadoles.com/arcad/edge/pkg/bundle"
|
||||
"github.com/mitchellh/hashstructure/v2"
|
||||
"github.com/pkg/errors"
|
||||
@ -65,10 +66,11 @@ func (c *Controller) stopAllApps(ctx context.Context, spec *spec.Spec) {
|
||||
logger.Info(ctx, "stopping app", logger.F("appID", appID))
|
||||
|
||||
if err := entry.Server.Stop(); err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "error while stopping app",
|
||||
logger.F("appID", appID),
|
||||
logger.E(errors.WithStack(err)),
|
||||
logger.CapturedE(err),
|
||||
)
|
||||
|
||||
delete(c.servers, appID)
|
||||
@ -86,55 +88,65 @@ func (c *Controller) updateApps(ctx context.Context, specs *spec.Spec) {
|
||||
logger.Info(ctx, "stopping app", logger.F("appKey", appKey))
|
||||
|
||||
if err := server.Server.Stop(); err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "error while stopping app",
|
||||
logger.F("appKey", appKey),
|
||||
logger.E(errors.WithStack(err)),
|
||||
logger.CapturedE(err),
|
||||
)
|
||||
|
||||
delete(c.servers, appKey)
|
||||
}
|
||||
}
|
||||
|
||||
c.updateAppRepository(ctx, specs)
|
||||
if err := c.updateAppRepository(ctx, specs); err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "could not update app repository",
|
||||
logger.CapturedE(err),
|
||||
)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// (Re)start apps if necessary
|
||||
for appKey := range specs.Apps {
|
||||
appCtx := logger.With(ctx, logger.F("appKey", appKey))
|
||||
|
||||
if err := c.updateApp(ctx, specs, appKey); err != nil {
|
||||
logger.Error(appCtx, "could not update app", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(appCtx, "could not update app", logger.CapturedE(err))
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Controller) updateAppRepository(ctx context.Context, specs *spec.Spec) {
|
||||
func (c *Controller) updateAppRepository(ctx context.Context, specs *spec.Spec) error {
|
||||
bundles := make([]string, 0, len(specs.Apps))
|
||||
for appKey, app := range specs.Apps {
|
||||
path := c.getAppBundlePath(appKey, app.Format)
|
||||
bundles = append(bundles, path)
|
||||
}
|
||||
|
||||
getURL := createGetAppURL(specs)
|
||||
resolveAppURL, err := createResolveAppURL(specs)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
c.appRepository.Update(getURL, bundles)
|
||||
c.appRepository.Update(resolveAppURL, bundles)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Controller) updateApp(ctx context.Context, specs *spec.Spec, appKey string) (err error) {
|
||||
appEntry := specs.Apps[appKey]
|
||||
|
||||
var auth *spec.Auth
|
||||
if specs.Config != nil {
|
||||
auth = specs.Config.Auth
|
||||
}
|
||||
|
||||
appDef := struct {
|
||||
App spec.AppEntry
|
||||
Auth *spec.Auth
|
||||
App spec.AppEntry
|
||||
Config *spec.Config
|
||||
}{
|
||||
App: appEntry,
|
||||
Auth: auth,
|
||||
App: appEntry,
|
||||
Config: specs.Config,
|
||||
}
|
||||
|
||||
newAppDefHash, err := hashstructure.Hash(appDef, hashstructure.FormatV2, nil)
|
||||
@ -164,41 +176,54 @@ func (c *Controller) updateApp(ctx context.Context, specs *spec.Spec, appKey str
|
||||
server = nil
|
||||
}
|
||||
|
||||
if server == nil {
|
||||
newServerEntry := func() (*serverEntry, error) {
|
||||
options, err := c.getHandlerOptions(ctx, appKey, specs)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "could not create handler options")
|
||||
}
|
||||
|
||||
var auth *spec.Auth
|
||||
if specs.Config != nil {
|
||||
auth = specs.Config.Auth
|
||||
return nil, errors.Wrap(err, "could not create handler options")
|
||||
}
|
||||
|
||||
server = &serverEntry{
|
||||
Server: NewServer(bundle, auth, options...),
|
||||
Server: NewServer(bundle, specs.Config, options...),
|
||||
AppDefHash: 0,
|
||||
}
|
||||
|
||||
c.servers[appKey] = server
|
||||
return server, nil
|
||||
}
|
||||
|
||||
if server == nil {
|
||||
serverEntry, err := newServerEntry()
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
c.servers[appKey] = serverEntry
|
||||
}
|
||||
|
||||
defChanged := newAppDefHash != server.AppDefHash
|
||||
|
||||
if server.Server.Running() && !defChanged {
|
||||
return nil
|
||||
}
|
||||
|
||||
ctx = logger.With(ctx,
|
||||
logger.F("appKey", appKey),
|
||||
logger.F("address", appEntry.Address),
|
||||
)
|
||||
|
||||
if defChanged && server.AppDefHash != 0 {
|
||||
logger.Info(
|
||||
ctx, "restarting app",
|
||||
logger.F("address", appEntry.Address),
|
||||
)
|
||||
logger.Info(ctx, "restarting app")
|
||||
|
||||
if err := server.Server.Stop(); err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
serverEntry, err := newServerEntry()
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
c.servers[appKey] = serverEntry
|
||||
} else {
|
||||
logger.Info(
|
||||
ctx, "starting app",
|
||||
logger.F("address", appEntry.Address),
|
||||
)
|
||||
logger.Info(ctx, "starting app")
|
||||
}
|
||||
|
||||
if err := server.Server.Start(ctx, appEntry.Address); err != nil {
|
||||
@ -255,7 +280,21 @@ func (c *Controller) ensureAppBundle(ctx context.Context, appID string, spec spe
|
||||
return nil, "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
return bdle, "", nil
|
||||
manifest, err := app.LoadManifest(bdle)
|
||||
if err != nil {
|
||||
return nil, "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
valid, err := validateManifest(manifest)
|
||||
if err != nil {
|
||||
return nil, "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
if !valid {
|
||||
return nil, "", errors.New("bundle's manifest is invalid")
|
||||
}
|
||||
|
||||
return bdle, spec.SHA256Sum, nil
|
||||
}
|
||||
|
||||
func (c *Controller) downloadFile(url string, sha256sum string, dest string) error {
|
||||
|
19
internal/agent/controller/app/manifest.go
Normal file
19
internal/agent/controller/app/manifest.go
Normal file
@ -0,0 +1,19 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"forge.cadoles.com/arcad/edge/pkg/app"
|
||||
"forge.cadoles.com/arcad/edge/pkg/app/metadata"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func validateManifest(manifest *app.Manifest) (bool, error) {
|
||||
valid, err := manifest.Validate(
|
||||
metadata.WithMinimumRoleValidator(RoleVisitor, RoleUser, RoleSuperuser, RoleAdmin, RoleSuperadmin),
|
||||
metadata.WithNamedPathsValidator(metadata.NamedPathAdmin, metadata.NamedPathIcon),
|
||||
)
|
||||
if err != nil {
|
||||
return false, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return valid, nil
|
||||
}
|
@ -2,23 +2,20 @@ package app
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
"net/http"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/controller/app/spec"
|
||||
appSpec "forge.cadoles.com/Cadoles/emissary/internal/agent/controller/app/spec"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/proxy/wildcard"
|
||||
edgeHTTP "forge.cadoles.com/arcad/edge/pkg/http"
|
||||
authHTTP "forge.cadoles.com/arcad/edge/pkg/module/auth/http"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
|
||||
"forge.cadoles.com/arcad/edge/pkg/bundle"
|
||||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/lestrrat-go/jwx/v2/jwa"
|
||||
"github.com/lestrrat-go/jwx/v2/jwk"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
_ "forge.cadoles.com/Cadoles/emissary/internal/imports/passwd"
|
||||
@ -31,7 +28,7 @@ type Server struct {
|
||||
handlerOptions []edgeHTTP.HandlerOptionFunc
|
||||
server *http.Server
|
||||
serverMutex sync.RWMutex
|
||||
auth *appSpec.Auth
|
||||
config *appSpec.Config
|
||||
}
|
||||
|
||||
func (s *Server) Start(ctx context.Context, addr string) (err error) {
|
||||
@ -46,15 +43,22 @@ func (s *Server) Start(ctx context.Context, addr string) (err error) {
|
||||
|
||||
router := chi.NewRouter()
|
||||
|
||||
router.Use(middleware.RealIP)
|
||||
router.Use(middleware.Logger)
|
||||
router.Use(middleware.Compress(5))
|
||||
|
||||
handler := edgeHTTP.NewHandler(s.handlerOptions...)
|
||||
if err := handler.Load(s.bundle); err != nil {
|
||||
if err := handler.Load(ctx, s.bundle); err != nil {
|
||||
return errors.Wrap(err, "could not load app bundle")
|
||||
}
|
||||
|
||||
if err := s.configureAuth(router, s.auth); err != nil {
|
||||
return errors.WithStack(err)
|
||||
if s.config != nil {
|
||||
if s.config.UnexpectedHostRedirect != nil {
|
||||
router.Use(unexpectedHostRedirect(
|
||||
s.config.UnexpectedHostRedirect.HostTarget,
|
||||
s.config.UnexpectedHostRedirect.AcceptedHostPatterns...,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
router.Handle("/*", handler)
|
||||
@ -68,7 +72,8 @@ func (s *Server) Start(ctx context.Context, addr string) (err error) {
|
||||
defer func() {
|
||||
if recovered := recover(); recovered != nil {
|
||||
if err, ok := recovered.(error); ok {
|
||||
logger.Error(ctx, err.Error(), logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, err.Error(), logger.CapturedE(err))
|
||||
|
||||
return
|
||||
}
|
||||
@ -123,72 +128,54 @@ func (s *Server) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Server) configureAuth(router chi.Router, auth *spec.Auth) error {
|
||||
if auth == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
switch {
|
||||
case auth.Local != nil:
|
||||
var rawKey any = s.auth.Local.Key
|
||||
if strKey, ok := rawKey.(string); ok {
|
||||
rawKey = []byte(strKey)
|
||||
}
|
||||
|
||||
key, err := jwk.FromRaw(rawKey)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
cookieDuration := defaultCookieDuration
|
||||
if s.auth.Local.CookieDuration != "" {
|
||||
cookieDuration, err = time.ParseDuration(s.auth.Local.CookieDuration)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
}
|
||||
|
||||
if s.auth.Local.CookieDomain != "" {
|
||||
router.Use(invalidCookieDomainRedirect(s.auth.Local.CookieDomain))
|
||||
}
|
||||
|
||||
router.Handle("/auth/*", authHTTP.NewLocalHandler(
|
||||
jwa.HS256, key,
|
||||
authHTTP.WithRoutePrefix("/auth"),
|
||||
authHTTP.WithAccounts(s.auth.Local.Accounts...),
|
||||
authHTTP.WithCookieOptions(s.auth.Local.CookieDomain, cookieDuration),
|
||||
))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewServer(bundle bundle.Bundle, auth *appSpec.Auth, handlerOptions ...edgeHTTP.HandlerOptionFunc) *Server {
|
||||
func NewServer(bundle bundle.Bundle, config *appSpec.Config, handlerOptions ...edgeHTTP.HandlerOptionFunc) *Server {
|
||||
return &Server{
|
||||
bundle: bundle,
|
||||
auth: auth,
|
||||
config: config,
|
||||
handlerOptions: handlerOptions,
|
||||
}
|
||||
}
|
||||
|
||||
func invalidCookieDomainRedirect(cookieDomain string) func(http.Handler) http.Handler {
|
||||
domain := strings.TrimPrefix(cookieDomain, ".")
|
||||
hostPattern := "*" + domain
|
||||
func getCookieDomain(r *http.Request) (string, error) {
|
||||
host, _, err := net.SplitHostPort(r.Host)
|
||||
if err != nil {
|
||||
host = r.Host
|
||||
}
|
||||
|
||||
// If host is an IP address
|
||||
if ip := net.ParseIP(host); ip != nil {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// If host is an domain, return top level domain
|
||||
domainParts := strings.Split(host, ".")
|
||||
if len(domainParts) >= 2 {
|
||||
topLevelDomain := strings.Join(domainParts[len(domainParts)-2:], ".")
|
||||
return topLevelDomain, nil
|
||||
}
|
||||
|
||||
// By default, return host
|
||||
return host, nil
|
||||
}
|
||||
|
||||
func unexpectedHostRedirect(hostTarget string, acceptedHostPatterns ...string) func(http.Handler) http.Handler {
|
||||
return func(h http.Handler) http.Handler {
|
||||
fn := func(w http.ResponseWriter, r *http.Request) {
|
||||
hostParts := strings.SplitN(r.Host, ":", 2)
|
||||
host, port, err := net.SplitHostPort(r.Host)
|
||||
if err != nil {
|
||||
host = r.Host
|
||||
}
|
||||
|
||||
if !wildcard.Match(hostParts[0], hostPattern) {
|
||||
matched := wildcard.MatchAny(host, acceptedHostPatterns...)
|
||||
|
||||
if !matched {
|
||||
url := r.URL
|
||||
|
||||
newHost := domain
|
||||
if len(hostParts) > 1 {
|
||||
newHost += ":" + hostParts[1]
|
||||
url.Host = hostTarget
|
||||
if port != "" {
|
||||
url.Host += ":" + port
|
||||
}
|
||||
|
||||
url.Host = newHost
|
||||
|
||||
http.Redirect(w, r, url.String(), http.StatusTemporaryRedirect)
|
||||
|
||||
return
|
||||
|
@ -24,71 +24,134 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"zip",
|
||||
"tar.gz"
|
||||
"tar.gz",
|
||||
"zim"
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blobStoreDsn": {
|
||||
"type": "string"
|
||||
},
|
||||
"documentStoreDsn": {
|
||||
"type": "string"
|
||||
},
|
||||
"shareStoreDsn": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"blobStoreDsn",
|
||||
"documentStoreDsn",
|
||||
"shareStoreDsn"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"url",
|
||||
"sha256sum",
|
||||
"address",
|
||||
"format"
|
||||
"format",
|
||||
"storage"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"local": {
|
||||
"appUrlResolving": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": ["object", "string"]
|
||||
},
|
||||
"accounts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"username": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"algo": {
|
||||
"type": "string"
|
||||
},
|
||||
"claims": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"username",
|
||||
"password",
|
||||
"algo"
|
||||
]
|
||||
"ifaceMappings": {
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
".*": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cookieDomain": {
|
||||
"type": "string"
|
||||
},
|
||||
"cookieDuration": {
|
||||
"defaultUrlTemplate": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"key"
|
||||
]
|
||||
"required": ["defaultUrlTemplate"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"unexpectedHostRedirect": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"acceptedHostPatterns": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"hostTarget": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["acceptedHostPatterns", "hostTarget"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"auth": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"local": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": ["object", "string"]
|
||||
},
|
||||
"signingAlgorithm": {
|
||||
"type": "string"
|
||||
},
|
||||
"accounts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"username": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"algo": {
|
||||
"type": "string"
|
||||
},
|
||||
"claims": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"username",
|
||||
"password",
|
||||
"algo"
|
||||
]
|
||||
}
|
||||
},
|
||||
"cookieDomain": {
|
||||
"type": "string"
|
||||
},
|
||||
"cookieDuration": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"key",
|
||||
"signingAlgorithm"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"appUrlTemplate": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
@ -3,6 +3,7 @@ package spec
|
||||
import (
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/spec"
|
||||
edgeAuth "forge.cadoles.com/arcad/edge/pkg/module/auth/http"
|
||||
"github.com/lestrrat-go/jwx/v2/jwa"
|
||||
)
|
||||
|
||||
const Name spec.Name = "app.emissary.cadoles.com"
|
||||
@ -14,10 +15,17 @@ type Spec struct {
|
||||
}
|
||||
|
||||
type AppEntry struct {
|
||||
URL string `json:"url"`
|
||||
SHA256Sum string `json:"sha256sum"`
|
||||
Address string `json:"address"`
|
||||
Format string `json:"format"`
|
||||
URL string `json:"url"`
|
||||
SHA256Sum string `json:"sha256sum"`
|
||||
Address string `json:"address"`
|
||||
Format string `json:"format"`
|
||||
Storage *AppStorage `json:"storage"`
|
||||
}
|
||||
|
||||
type AppStorage struct {
|
||||
ShareStoreDSN string `json:"shareStoreDsn"`
|
||||
DocumentStoreDSN string `json:"documentStoreDsn"`
|
||||
BlobStoreDSN string `json:"blobStoreDsn"`
|
||||
}
|
||||
|
||||
type Auth struct {
|
||||
@ -25,15 +33,27 @@ type Auth struct {
|
||||
}
|
||||
|
||||
type LocalAuth struct {
|
||||
Key any `json:"key"`
|
||||
Accounts []edgeAuth.LocalAccount `json:"accounts"`
|
||||
CookieDomain string `json:"cookieDomain"`
|
||||
CookieDuration string `json:"cookieDuration"`
|
||||
Key any `json:"key"`
|
||||
SigningAlgorithm jwa.SignatureAlgorithm `json:"signingAlgorithm"`
|
||||
Accounts []edgeAuth.LocalAccount `json:"accounts"`
|
||||
CookieDomain string `json:"cookieDomain"`
|
||||
CookieDuration string `json:"cookieDuration"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Auth *Auth `json:"auth"`
|
||||
AppURLTemplate string `json:"appUrlTemplate"`
|
||||
Auth *Auth `json:"auth"`
|
||||
UnexpectedHostRedirect *UnexpectedHostRedirect `json:"unexpectedHostRedirect"`
|
||||
AppURLResolving *AppURLResolving `json:"appUrlResolving"`
|
||||
}
|
||||
|
||||
type UnexpectedHostRedirect struct {
|
||||
AcceptedHostPatterns []string `json:"acceptedHostPatterns"`
|
||||
HostTarget string `json:"hostTarget"`
|
||||
}
|
||||
|
||||
type AppURLResolving struct {
|
||||
IfaceMappings map[string]string `json:"ifaceMappings"`
|
||||
DefaultURLTemplate string `json:"defaultUrlTemplate"`
|
||||
}
|
||||
|
||||
func (s *Spec) SpecName() spec.Name {
|
||||
|
@ -6,35 +6,53 @@
|
||||
"url": "http://example.com/edge.sdk.client.test_0.0.0.zip",
|
||||
"sha256sum": "58019192dacdae17755707719707db007e26dac856102280583fbd18427dd352",
|
||||
"address": ":8081",
|
||||
"format": "zip"
|
||||
"format": "zip",
|
||||
"storage": {
|
||||
"blobStoreDsn": "sqlite://apps/data/edge.sdk.client.test/blobstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"shareStoreDsn": "sqlite://apps/data/sharestore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"documentStoreDsn": "sqlite://apps/data/edge.sdk.client.test/documentstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000"
|
||||
}
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"local": {
|
||||
"key": {
|
||||
"d": "YOre0WZefGfUGFvDg42oL5Oad5Zsb1N_hqPyLVM5ajpTZzcHpB3wT6In9tFO_VshB6lxVtPA9ckPkpMTFY7ygt1Yomc1HkoOKRtmIaqdr4VgNQifU-4yiLiJkSbdYSeMV-KkkN8mGR1keJpJeS34W1X0W6CkU2nw7F5VueBCJfWJA0funRfuWdI68MTUgT9kRZFp-SfvptvRL6jVYHV_5hqxzHCvgEdBSF6QKwx4M6P6QBMt7ft6uMLmFx9abKFw2V51hX3PkxiSepVB3w5CYg4HtS3AHX6bILL4m0R2pdTIkap7i3tkH_xAOuKWt8D6JhadI8X1rEAwXmCS5KrRgQ",
|
||||
"dp": "U0HfvBC6hk-SCpuotGIv3vbHCVt1aF3SHK0y32EYCOe8e_9G6YCEILfcvEJ5fiOCc2kvx6TasHQu4qj1uWRKenZlK1sJ6KDybGCkZL1D3jYnbeLZYBuWBL__YbZiST3ewbxzj_EDMWiZ8sUltahza_1weSgg8auSzTHS2LJBHIE",
|
||||
"dq": "hVom4ScDxgqhCsQNVpZlN7M3v0tgWjl_gTOHjOyzKCHQJeC0QmJJaMKkQZPWJ8jjLqy7VwVpqC2nZU7QDuX1Cq5eJDQcXi9XtaAfIBico9WcYDre6mDyhL588YHpekyRke8HnZ810iesr0G3gU1h0QvZVVuW-pXTJOXhZTt6nFc",
|
||||
"e": "AQAB",
|
||||
"kty": "RSA",
|
||||
"n": "vPnpkE3-HfNgJSru_K40LstkjiG2Bq_Tt-m0d_yUBBSbirFxF3qH4EXi7WrtZdeDahg2iV2BvpbVVj9GlmGo9OLol6jc7AP2yvZrkbABiiJhCbuPdkYbNpx6B7Itl8RT_bUSYAMZhmux5lpsn4weQ01fzjICi1rA-bIJpOfotdOjP4_lol-LxGZOGJQv9kndP8bgmssJb3Y_2s4gPtkmXySLrhpr5So-_6dVksyuBD9aLcnsMLDbywusjEMCdhqzQbvOjryomnmEXwyz_Ewb5HFK2PfgFtoHkdjqDz-mrEs3tw5g4TdYhCftzJxgbyNAEq4aEiOQrAncYyrXlotP_w",
|
||||
"p": "8TNMF0WUe7CEeNVUTsuEcBAAXRguNtpvVifIjlwzFRGOYVGIpKuHsqQPKlZL07I9gPr9LifQnyQus3oEmTOrVs6LB9sfbukbg43ZRKoGVM40JYF5Xjs7R3mEZhgU0WaYOVe3iLtBGMfXNWFwlbfQP-zEb-dPCBX1jWT3LdgNBcE",
|
||||
"q": "yJJLNc9w6O4y2icME8k99FugV9E7ObwUxF3v5JN3y1cmAT0h2njyE3iAGqaDZwcY1_jGCisjwoqX6i5E8xqhxX3Gcy3J7SmUAf8fhY8wU3zv9DK7skg2IdvanDb8Y1OM6GchbYZAOVPEg2IvVio8zI-Ih3DDwDk8Df0ufzoHRb8",
|
||||
"qi": "zOE-4R3cjPesm3MX-4PdwmsaF9QZLUVRUvvHJ08pKs6kAXP18hzjctAoOjhQDxlTYqNYNePfKzKwost3OJoPgRIc9w9qwUCK1gNOS4Z_xozCIaXgMddNFhkoAfZ4JaKjNCiinzjGfqG99Lf-yzmmREuuhRv7SdS3ST4VQjiJQew"
|
||||
},
|
||||
"accounts": [
|
||||
{
|
||||
"username": "foo",
|
||||
"algo": "plain",
|
||||
"password": "bar",
|
||||
"claims": {
|
||||
"arcad_role": "user",
|
||||
"arcad_tenant": "dev.cli",
|
||||
"preferred_username": "Foo",
|
||||
"sub": "foo"
|
||||
"config": {
|
||||
"auth": {
|
||||
"local": {
|
||||
"key": {
|
||||
"d": "YOre0WZefGfUGFvDg42oL5Oad5Zsb1N_hqPyLVM5ajpTZzcHpB3wT6In9tFO_VshB6lxVtPA9ckPkpMTFY7ygt1Yomc1HkoOKRtmIaqdr4VgNQifU-4yiLiJkSbdYSeMV-KkkN8mGR1keJpJeS34W1X0W6CkU2nw7F5VueBCJfWJA0funRfuWdI68MTUgT9kRZFp-SfvptvRL6jVYHV_5hqxzHCvgEdBSF6QKwx4M6P6QBMt7ft6uMLmFx9abKFw2V51hX3PkxiSepVB3w5CYg4HtS3AHX6bILL4m0R2pdTIkap7i3tkH_xAOuKWt8D6JhadI8X1rEAwXmCS5KrRgQ",
|
||||
"dp": "U0HfvBC6hk-SCpuotGIv3vbHCVt1aF3SHK0y32EYCOe8e_9G6YCEILfcvEJ5fiOCc2kvx6TasHQu4qj1uWRKenZlK1sJ6KDybGCkZL1D3jYnbeLZYBuWBL__YbZiST3ewbxzj_EDMWiZ8sUltahza_1weSgg8auSzTHS2LJBHIE",
|
||||
"dq": "hVom4ScDxgqhCsQNVpZlN7M3v0tgWjl_gTOHjOyzKCHQJeC0QmJJaMKkQZPWJ8jjLqy7VwVpqC2nZU7QDuX1Cq5eJDQcXi9XtaAfIBico9WcYDre6mDyhL588YHpekyRke8HnZ810iesr0G3gU1h0QvZVVuW-pXTJOXhZTt6nFc",
|
||||
"e": "AQAB",
|
||||
"kty": "RSA",
|
||||
"n": "vPnpkE3-HfNgJSru_K40LstkjiG2Bq_Tt-m0d_yUBBSbirFxF3qH4EXi7WrtZdeDahg2iV2BvpbVVj9GlmGo9OLol6jc7AP2yvZrkbABiiJhCbuPdkYbNpx6B7Itl8RT_bUSYAMZhmux5lpsn4weQ01fzjICi1rA-bIJpOfotdOjP4_lol-LxGZOGJQv9kndP8bgmssJb3Y_2s4gPtkmXySLrhpr5So-_6dVksyuBD9aLcnsMLDbywusjEMCdhqzQbvOjryomnmEXwyz_Ewb5HFK2PfgFtoHkdjqDz-mrEs3tw5g4TdYhCftzJxgbyNAEq4aEiOQrAncYyrXlotP_w",
|
||||
"p": "8TNMF0WUe7CEeNVUTsuEcBAAXRguNtpvVifIjlwzFRGOYVGIpKuHsqQPKlZL07I9gPr9LifQnyQus3oEmTOrVs6LB9sfbukbg43ZRKoGVM40JYF5Xjs7R3mEZhgU0WaYOVe3iLtBGMfXNWFwlbfQP-zEb-dPCBX1jWT3LdgNBcE",
|
||||
"q": "yJJLNc9w6O4y2icME8k99FugV9E7ObwUxF3v5JN3y1cmAT0h2njyE3iAGqaDZwcY1_jGCisjwoqX6i5E8xqhxX3Gcy3J7SmUAf8fhY8wU3zv9DK7skg2IdvanDb8Y1OM6GchbYZAOVPEg2IvVio8zI-Ih3DDwDk8Df0ufzoHRb8",
|
||||
"qi": "zOE-4R3cjPesm3MX-4PdwmsaF9QZLUVRUvvHJ08pKs6kAXP18hzjctAoOjhQDxlTYqNYNePfKzKwost3OJoPgRIc9w9qwUCK1gNOS4Z_xozCIaXgMddNFhkoAfZ4JaKjNCiinzjGfqG99Lf-yzmmREuuhRv7SdS3ST4VQjiJQew"
|
||||
},
|
||||
"signingAlgorithm": "RS256",
|
||||
"accounts": [
|
||||
{
|
||||
"username": "foo",
|
||||
"algo": "plain",
|
||||
"password": "bar",
|
||||
"claims": {
|
||||
"arcad_role": "user",
|
||||
"arcad_tenant": "dev.cli",
|
||||
"preferred_username": "Foo",
|
||||
"sub": "foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"unexpectedHostRedirect": {
|
||||
"acceptedHostPatterns": ["arcad.local", "*.arcad.local", "arcad-*.local", "*.*.*.*"],
|
||||
"hostTarget": "arcad.local"
|
||||
},
|
||||
"appUrlResolving": {
|
||||
"ifaceMappings": {
|
||||
"eth0": "http://{{ .DeviceIP }}:{{ .AppHost }}"
|
||||
},
|
||||
"defaultUrlTemplate": "http://{{ last ( splitList \".\" ( toString .Manifest.ID ) ) }}.arcad.local"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -117,7 +117,8 @@ func (c *Controller) updateResponder(ctx context.Context, spec *mdns.Spec) error
|
||||
|
||||
service, err := dnssd.NewService(config)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not create mdns service", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not create mdns service", logger.CapturedE(err))
|
||||
|
||||
continue
|
||||
}
|
||||
@ -132,7 +133,8 @@ func (c *Controller) updateResponder(ctx context.Context, spec *mdns.Spec) error
|
||||
|
||||
for _, service := range services {
|
||||
if _, err := responder.Add(service); err != nil {
|
||||
logger.Error(ctx, "could not add mdns service", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not add mdns service", logger.CapturedE(err))
|
||||
|
||||
continue
|
||||
}
|
||||
@ -148,7 +150,8 @@ func (c *Controller) updateResponder(ctx context.Context, spec *mdns.Spec) error
|
||||
defer c.stopResponder(ctx)
|
||||
|
||||
if err := responder.Respond(ctx); err != nil && !errors.Is(err, context.Canceled) {
|
||||
logger.Error(ctx, "could not respond to mdns queries", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not respond to mdns queries", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -64,9 +64,10 @@ func (c *SysUpgradeController) Reconcile(ctx context.Context, state *agent.State
|
||||
|
||||
defer func() {
|
||||
if err := os.RemoveAll(downloadDir); err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "could not remove download direction",
|
||||
logger.E(errors.WithStack(err)),
|
||||
logger.CapturedE(err),
|
||||
logger.F("downloadDir", downloadDir),
|
||||
)
|
||||
}
|
||||
|
@ -46,7 +46,8 @@ func (c *UCIController) Reconcile(ctx context.Context, state *agent.State) error
|
||||
}
|
||||
|
||||
if err := c.updateConfiguration(ctx, uciSpec); err != nil {
|
||||
logger.Error(ctx, "could not update configuration", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not update configuration", logger.CapturedE(err))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -145,7 +145,8 @@ func (c *Controller) writeState(ctx context.Context, state *agent.State) error {
|
||||
return
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not remove temporary file", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not remove temporary file", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
@ -155,7 +156,8 @@ func (c *Controller) writeState(ctx context.Context, state *agent.State) error {
|
||||
return
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not close temporary file", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not close temporary file", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -58,10 +58,11 @@ func (c *Controller) stopAllProxies(ctx context.Context) {
|
||||
logger.Info(ctx, "stopping proxy", logger.F("proxyID", proxyID))
|
||||
|
||||
if err := entry.Proxy.Stop(); err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "error while stopping proxy",
|
||||
logger.F("proxyID", proxyID),
|
||||
logger.E(errors.WithStack(err)),
|
||||
logger.CapturedE(err),
|
||||
)
|
||||
|
||||
delete(c.proxies, proxyID)
|
||||
@ -79,10 +80,11 @@ func (c *Controller) updateProxies(ctx context.Context, spec *spec.Spec) {
|
||||
logger.Info(ctx, "stopping proxy", logger.F("proxyID", proxyID))
|
||||
|
||||
if err := entry.Proxy.Stop(); err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "error while stopping proxy",
|
||||
logger.F("proxyID", proxyID),
|
||||
logger.E(errors.WithStack(err)),
|
||||
logger.CapturedE(err),
|
||||
)
|
||||
|
||||
delete(c.proxies, proxyID)
|
||||
@ -94,7 +96,8 @@ func (c *Controller) updateProxies(ctx context.Context, spec *spec.Spec) {
|
||||
proxyCtx := logger.With(ctx, logger.F("proxyID", proxyID))
|
||||
|
||||
if err := c.updateProxy(ctx, proxyID, proxySpec); err != nil {
|
||||
logger.Error(proxyCtx, "could not update proxy", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(proxyCtx, "could not update proxy", logger.CapturedE(err))
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
@ -38,12 +38,14 @@ func (p *ReverseProxy) Start(ctx context.Context, addr string, funcs ...proxy.Op
|
||||
go func() {
|
||||
defer func() {
|
||||
if err := p.Stop(); err != nil {
|
||||
logger.Error(ctx, "error while stopping gateway", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "error while stopping gateway", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
if err := server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
|
||||
logger.Error(ctx, "error while listening", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "error while listening", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
)
|
||||
@ -40,14 +40,15 @@ func (c *Controller) reconcileAgent(ctx context.Context, client *client.Client,
|
||||
ctx = logger.With(ctx, logger.F("agentID", agent.ID))
|
||||
|
||||
if agent.Status != datastore.AgentStatusAccepted {
|
||||
logger.Error(ctx, "unexpected agent status", logger.F("status", agent.Status))
|
||||
logger.Warn(ctx, "unexpected agent status", logger.F("status", agent.Status))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
specs, err := client.GetAgentSpecs(ctx, agent.ID)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not retrieve agent specs", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not retrieve agent specs", logger.CapturedE(err))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"time"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/metadata"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
|
@ -11,7 +11,6 @@ import (
|
||||
"github.com/lestrrat-go/jwx/v2/jws"
|
||||
"github.com/lestrrat-go/jwx/v2/jwt"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
)
|
||||
|
||||
const DefaultAcceptableSkew = 5 * time.Minute
|
||||
@ -23,8 +22,6 @@ type Authenticator struct {
|
||||
|
||||
// Authenticate implements auth.Authenticator.
|
||||
func (a *Authenticator) Authenticate(ctx context.Context, r *http.Request) (auth.User, error) {
|
||||
ctx = logger.With(r.Context(), logger.F("remoteAddr", r.RemoteAddr))
|
||||
|
||||
authorization := r.Header.Get("Authorization")
|
||||
if authorization == "" {
|
||||
return nil, errors.WithStack(auth.ErrUnauthenticated)
|
||||
|
39
internal/auth/thirdparty/authenticator.go
vendored
39
internal/auth/thirdparty/authenticator.go
vendored
@ -8,22 +8,25 @@ import (
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/auth"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"github.com/lestrrat-go/jwx/v2/jwt"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
)
|
||||
|
||||
const DefaultAcceptableSkew = 5 * time.Minute
|
||||
|
||||
type (
|
||||
GetKeySet func(context.Context) (jwk.Set, error)
|
||||
GetTokenRole func(context.Context, jwt.Token) (string, error)
|
||||
)
|
||||
|
||||
type Authenticator struct {
|
||||
keys jwk.Set
|
||||
issuer string
|
||||
getKeySet GetKeySet
|
||||
getTokenRole GetTokenRole
|
||||
acceptableSkew time.Duration
|
||||
}
|
||||
|
||||
// Authenticate implements auth.Authenticator.
|
||||
func (a *Authenticator) Authenticate(ctx context.Context, r *http.Request) (auth.User, error) {
|
||||
ctx = logger.With(r.Context(), logger.F("remoteAddr", r.RemoteAddr))
|
||||
|
||||
authorization := r.Header.Get("Authorization")
|
||||
if authorization == "" {
|
||||
return nil, errors.WithStack(auth.ErrUnauthenticated)
|
||||
@ -34,37 +37,37 @@ func (a *Authenticator) Authenticate(ctx context.Context, r *http.Request) (auth
|
||||
return nil, errors.WithStack(auth.ErrUnauthenticated)
|
||||
}
|
||||
|
||||
token, err := parseToken(ctx, a.keys, a.issuer, rawToken, a.acceptableSkew)
|
||||
keys, err := a.getKeySet(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
rawRole, exists := token.Get(keyRole)
|
||||
if !exists {
|
||||
return nil, errors.New("could not find 'thumbprint' claim")
|
||||
token, err := parseToken(ctx, keys, rawToken, a.acceptableSkew)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
role, ok := rawRole.(string)
|
||||
if !ok {
|
||||
return nil, errors.Errorf("unexpected '%s' claim value: '%v'", keyRole, rawRole)
|
||||
rawRole, err := a.getTokenRole(ctx, token)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
if !isValidRole(role) {
|
||||
return nil, errors.Errorf("invalid role '%s'", role)
|
||||
if !isValidRole(rawRole) {
|
||||
return nil, errors.Errorf("invalid role '%s'", rawRole)
|
||||
}
|
||||
|
||||
user := &User{
|
||||
subject: token.Subject(),
|
||||
role: Role(role),
|
||||
role: Role(rawRole),
|
||||
}
|
||||
|
||||
return user, nil
|
||||
}
|
||||
|
||||
func NewAuthenticator(keys jwk.Set, issuer string, acceptableSkew time.Duration) *Authenticator {
|
||||
func NewAuthenticator(getKeySet GetKeySet, getTokenRole GetTokenRole, acceptableSkew time.Duration) *Authenticator {
|
||||
return &Authenticator{
|
||||
keys: keys,
|
||||
issuer: issuer,
|
||||
getTokenRole: getTokenRole,
|
||||
getKeySet: getKeySet,
|
||||
acceptableSkew: acceptableSkew,
|
||||
}
|
||||
}
|
||||
|
16
internal/auth/thirdparty/jwt.go
vendored
16
internal/auth/thirdparty/jwt.go
vendored
@ -11,15 +11,13 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
const keyRole = "role"
|
||||
|
||||
func parseToken(ctx context.Context, keys jwk.Set, issuer string, rawToken string, acceptableSkew time.Duration) (jwt.Token, error) {
|
||||
func parseToken(ctx context.Context, keys jwk.Set, rawToken string, acceptableSkew time.Duration) (jwt.Token, error) {
|
||||
token, err := jwt.Parse(
|
||||
[]byte(rawToken),
|
||||
jwt.WithKeySet(keys, jws.WithRequireKid(false)),
|
||||
jwt.WithIssuer(issuer),
|
||||
jwt.WithValidate(true),
|
||||
jwt.WithAcceptableSkew(acceptableSkew),
|
||||
jwt.WithContext(ctx),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
@ -28,18 +26,16 @@ func parseToken(ctx context.Context, keys jwk.Set, issuer string, rawToken strin
|
||||
return token, nil
|
||||
}
|
||||
|
||||
func GenerateToken(ctx context.Context, key jwk.Key, issuer, subject string, role Role) (string, error) {
|
||||
const DefaultRoleKey string = "role"
|
||||
|
||||
func GenerateToken(ctx context.Context, key jwk.Key, subject string, role Role) (string, error) {
|
||||
token := jwt.New()
|
||||
|
||||
if err := token.Set(jwt.SubjectKey, subject); err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
if err := token.Set(jwt.IssuerKey, issuer); err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
if err := token.Set(keyRole, role); err != nil {
|
||||
if err := token.Set(DefaultRoleKey, role); err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
|
@ -3,10 +3,10 @@ package agent
|
||||
import (
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
@ -3,12 +3,12 @@ package agent
|
||||
import (
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
agentFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/agent/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
@ -3,11 +3,11 @@ package agent
|
||||
import (
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
agentFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/agent/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
@ -3,11 +3,11 @@ package agent
|
||||
import (
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
@ -3,12 +3,12 @@ package spec
|
||||
import (
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
agentFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/agent/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/spec"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
@ -3,11 +3,11 @@ package spec
|
||||
import (
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
agentFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/agent/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
@ -4,12 +4,12 @@ import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
agentFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/agent/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/spec"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
jsonpatch "github.com/evanphx/json-patch/v5"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
@ -3,11 +3,11 @@ package agent
|
||||
import (
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/client"
|
||||
agentFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/agent/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/apierr"
|
||||
clientFlag "forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/format"
|
||||
"forge.cadoles.com/Cadoles/emissary/pkg/client"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
@ -2,7 +2,6 @@ package flag
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@ -12,6 +11,11 @@ import (
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
const (
|
||||
AuthTokenDefaultHomePath = "$HOME/.config/emissary/auth-token"
|
||||
AuthTokenDefaultLocalPath = ".emissary-token"
|
||||
)
|
||||
|
||||
func ComposeFlags(flags ...cli.Flag) []cli.Flag {
|
||||
baseFlags := []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
@ -37,10 +41,10 @@ func ComposeFlags(flags ...cli.Flag) []cli.Flag {
|
||||
Aliases: []string{"t"},
|
||||
Usage: "use `TOKEN` as authentication token",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
&cli.StringSliceFlag{
|
||||
Name: "token-file",
|
||||
Usage: "use `TOKEN_FILE` as file containing the authentication token",
|
||||
Value: ".emissary-token",
|
||||
Value: cli.NewStringSlice(AuthTokenDefaultLocalPath, AuthTokenDefaultHomePath),
|
||||
TakesFile: true,
|
||||
},
|
||||
}
|
||||
@ -55,14 +59,14 @@ type BaseFlags struct {
|
||||
Format format.Format
|
||||
OutputMode format.OutputMode
|
||||
Token string
|
||||
TokenFile string
|
||||
TokenFiles []string
|
||||
}
|
||||
|
||||
func GetBaseFlags(ctx *cli.Context) *BaseFlags {
|
||||
serverURL := ctx.String("server")
|
||||
rawFormat := ctx.String("format")
|
||||
rawOutputMode := ctx.String("output-mode")
|
||||
tokenFile := ctx.String("token-file")
|
||||
tokenFiles := ctx.StringSlice("token-file")
|
||||
token := ctx.String("token")
|
||||
|
||||
return &BaseFlags{
|
||||
@ -70,7 +74,7 @@ func GetBaseFlags(ctx *cli.Context) *BaseFlags {
|
||||
Format: format.Format(rawFormat),
|
||||
OutputMode: format.OutputMode(rawOutputMode),
|
||||
Token: token,
|
||||
TokenFile: tokenFile,
|
||||
TokenFiles: tokenFiles,
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,18 +83,20 @@ func GetToken(flags *BaseFlags) (string, error) {
|
||||
return flags.Token, nil
|
||||
}
|
||||
|
||||
if flags.TokenFile == "" {
|
||||
return "", nil
|
||||
for _, tokenFile := range flags.TokenFiles {
|
||||
tokenFile = os.ExpandEnv(tokenFile)
|
||||
|
||||
rawToken, err := os.ReadFile(tokenFile)
|
||||
if err != nil && !errors.Is(err, os.ErrNotExist) {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
if rawToken == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
return strings.TrimSpace(string(rawToken)), nil
|
||||
}
|
||||
|
||||
rawToken, err := ioutil.ReadFile(flags.TokenFile)
|
||||
if err != nil && !errors.Is(err, os.ErrNotExist) {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
if rawToken == nil {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
return strings.TrimSpace(string(rawToken)), nil
|
||||
return "", nil
|
||||
}
|
||||
|
@ -7,8 +7,11 @@ import (
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/common"
|
||||
"github.com/getsentry/sentry-go"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli/v2"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
)
|
||||
|
||||
func Main(buildDate, projectVersion, gitRef, defaultConfigPath string, commands ...*cli.Command) {
|
||||
@ -46,6 +49,27 @@ func Main(buildDate, projectVersion, gitRef, defaultConfigPath string, commands
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
conf, err := common.LoadConfig(ctx)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Could not load configuration")
|
||||
}
|
||||
|
||||
if conf.Sentry.DSN != "" {
|
||||
err = sentry.Init(sentry.ClientOptions{
|
||||
Dsn: string(conf.Sentry.DSN),
|
||||
Debug: ctx.Bool("debug"),
|
||||
AttachStacktrace: true,
|
||||
Environment: string(conf.Sentry.Environment),
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error(ctx.Context, "could not initialize sentry", logger.E(errors.WithStack(err)))
|
||||
}
|
||||
|
||||
logger.SetCaptureFunc(func(err error) {
|
||||
sentry.CaptureException(err)
|
||||
})
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
@ -84,11 +108,15 @@ func Main(buildDate, projectVersion, gitRef, defaultConfigPath string, commands
|
||||
},
|
||||
}
|
||||
|
||||
defer sentry.Flush(2 * time.Second)
|
||||
|
||||
app.ExitErrHandler = func(ctx *cli.Context, err error) {
|
||||
if err == nil {
|
||||
return
|
||||
}
|
||||
|
||||
sentry.CaptureException(err)
|
||||
|
||||
debug := ctx.Bool("debug")
|
||||
|
||||
if !debug {
|
||||
|
@ -2,8 +2,11 @@ package auth
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/auth/thirdparty"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/api/flag"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/command/common"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"github.com/lithammer/shortuuid/v4"
|
||||
@ -26,6 +29,13 @@ func CreateTokenCommand() *cli.Command {
|
||||
Usage: "associate `SUBJECT` to the token",
|
||||
Value: fmt.Sprintf("user-%s", shortuuid.New()),
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "output",
|
||||
Aliases: []string{"o"},
|
||||
TakesFile: true,
|
||||
Usage: "output token to `OUTPUT` (or '-' to print to stdout)",
|
||||
Value: flag.AuthTokenDefaultHomePath,
|
||||
},
|
||||
},
|
||||
Action: func(ctx *cli.Context) error {
|
||||
conf, err := common.LoadConfig(ctx)
|
||||
@ -35,18 +45,40 @@ func CreateTokenCommand() *cli.Command {
|
||||
|
||||
subject := ctx.String("subject")
|
||||
role := ctx.String("role")
|
||||
output := ctx.String("output")
|
||||
|
||||
key, err := jwk.LoadOrGenerate(string(conf.Server.PrivateKeyPath), jwk.DefaultKeySize)
|
||||
localAuth := conf.Server.Auth.Local
|
||||
if localAuth == nil {
|
||||
return errors.New("local auth is disabled")
|
||||
}
|
||||
|
||||
key, err := jwk.LoadOrGenerate(string(localAuth.PrivateKeyPath), jwk.DefaultKeySize)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
token, err := thirdparty.GenerateToken(ctx.Context, key, string(conf.Server.Issuer), subject, thirdparty.Role(role))
|
||||
token, err := thirdparty.GenerateToken(ctx.Context, key, subject, thirdparty.Role(role))
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
fmt.Println(token)
|
||||
output = os.ExpandEnv(output)
|
||||
|
||||
if output == "-" {
|
||||
fmt.Println(token)
|
||||
} else {
|
||||
outputDirectory := filepath.Dir(output)
|
||||
|
||||
if err := os.MkdirAll(outputDirectory, os.FileMode(0o700)); err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
if err := os.WriteFile(output, []byte(token), os.FileMode(0o600)); err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
fmt.Printf("Token written to '%s'.\n", output)
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
@ -32,7 +32,8 @@ func PingCommand() *cli.Command {
|
||||
|
||||
defer func() {
|
||||
if err := db.Close(); err != nil {
|
||||
logger.Error(ctx.Context, "error while closing database connection", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx.Context, "error while closing database connection", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -11,6 +11,7 @@ import (
|
||||
// Config definition
|
||||
type Config struct {
|
||||
Logger LoggerConfig `yaml:"logger"`
|
||||
Sentry SentryConfig `yaml:"sentry"`
|
||||
Server ServerConfig `yaml:"server"`
|
||||
Agent AgentConfig `yaml:"agent"`
|
||||
}
|
||||
@ -44,6 +45,7 @@ func NewDefault() *Config {
|
||||
Logger: NewDefaultLoggerConfig(),
|
||||
Agent: NewDefaultAgentConfig(),
|
||||
Server: NewDefaultServerConfig(),
|
||||
Sentry: NewDefaultSentryConfig(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,6 @@ type DatabaseConfig struct {
|
||||
func NewDefaultDatabaseConfig() DatabaseConfig {
|
||||
return DatabaseConfig{
|
||||
Driver: "sqlite",
|
||||
DSN: "sqlite://emissary.sqlite?_pragma=foreign_keys(1)&_pragma=journal_mode(WAL)&_txlock=immediate",
|
||||
DSN: "sqlite://emissary.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=150000&_pragma=journal_mode=WAL",
|
||||
}
|
||||
}
|
||||
|
@ -4,12 +4,47 @@ import (
|
||||
"os"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
var reVar = regexp.MustCompile(`^\${(\w+)}$`)
|
||||
var (
|
||||
interpolationRegExp = regexp.MustCompile(`^\${((?P<varName>\w+)|((?P<varNameWithDefault>\w+):-(?P<defaultValue>[^}]+)))}$`)
|
||||
varNameGroupIndex = interpolationRegExp.SubexpIndex("varName")
|
||||
varNameWithDefaultGroupIndex = interpolationRegExp.SubexpIndex("varNameWithDefault")
|
||||
defaultValueGroupIndex = interpolationRegExp.SubexpIndex("defaultValue")
|
||||
)
|
||||
|
||||
func interpolate(str string, getValueFunc func(name string) string) string {
|
||||
for _, match := range interpolationRegExp.FindAllStringSubmatch(str, -1) {
|
||||
varName := match[varNameWithDefaultGroupIndex]
|
||||
if varName == "" {
|
||||
varName = match[varNameGroupIndex]
|
||||
}
|
||||
|
||||
if varName == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
defaultValue := ""
|
||||
if defaultValueGroupIndex < len(match) {
|
||||
defaultValue = match[defaultValueGroupIndex]
|
||||
}
|
||||
|
||||
str = getValueFunc(varName)
|
||||
if str == "" {
|
||||
str = defaultValue
|
||||
}
|
||||
}
|
||||
|
||||
return str
|
||||
}
|
||||
|
||||
func interpolateEnv(str string) string {
|
||||
return interpolate(str, os.Getenv)
|
||||
}
|
||||
|
||||
type InterpolatedString string
|
||||
|
||||
@ -20,11 +55,7 @@ func (is *InterpolatedString) UnmarshalYAML(value *yaml.Node) error {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
if match := reVar.FindStringSubmatch(str); len(match) > 0 {
|
||||
*is = InterpolatedString(os.Getenv(match[1]))
|
||||
} else {
|
||||
*is = InterpolatedString(str)
|
||||
}
|
||||
*is = InterpolatedString(interpolateEnv(str))
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -38,9 +69,7 @@ func (ii *InterpolatedInt) UnmarshalYAML(value *yaml.Node) error {
|
||||
return errors.Wrapf(err, "could not decode value '%v' (line '%d') into string", value.Value, value.Line)
|
||||
}
|
||||
|
||||
if match := reVar.FindStringSubmatch(str); len(match) > 0 {
|
||||
str = os.Getenv(match[1])
|
||||
}
|
||||
str = interpolateEnv(str)
|
||||
|
||||
intVal, err := strconv.ParseInt(str, 10, 32)
|
||||
if err != nil {
|
||||
@ -61,9 +90,7 @@ func (ib *InterpolatedBool) UnmarshalYAML(value *yaml.Node) error {
|
||||
return errors.Wrapf(err, "could not decode value '%v' (line '%d') into string", value.Value, value.Line)
|
||||
}
|
||||
|
||||
if match := reVar.FindStringSubmatch(str); len(match) > 0 {
|
||||
str = os.Getenv(match[1])
|
||||
}
|
||||
str = interpolateEnv(str)
|
||||
|
||||
boolVal, err := strconv.ParseBool(str)
|
||||
if err != nil {
|
||||
@ -90,9 +117,7 @@ func (im *InterpolatedMap) UnmarshalYAML(value *yaml.Node) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if match := reVar.FindStringSubmatch(strVal); len(match) > 0 {
|
||||
strVal = os.Getenv(match[1])
|
||||
}
|
||||
strVal = interpolateEnv(strVal)
|
||||
|
||||
data[key] = strVal
|
||||
}
|
||||
@ -112,9 +137,7 @@ func (iss *InterpolatedStringSlice) UnmarshalYAML(value *yaml.Node) error {
|
||||
}
|
||||
|
||||
for index, value := range data {
|
||||
if match := reVar.FindStringSubmatch(value); len(match) > 0 {
|
||||
value = os.Getenv(match[1])
|
||||
}
|
||||
value = interpolateEnv(value)
|
||||
|
||||
data[index] = value
|
||||
}
|
||||
@ -123,3 +146,35 @@ func (iss *InterpolatedStringSlice) UnmarshalYAML(value *yaml.Node) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
type InterpolatedDuration time.Duration
|
||||
|
||||
func (id *InterpolatedDuration) UnmarshalYAML(value *yaml.Node) error {
|
||||
var str string
|
||||
|
||||
if err := value.Decode(&str); err != nil {
|
||||
return errors.Wrapf(err, "could not decode value '%v' (line '%d') into string", value.Value, value.Line)
|
||||
}
|
||||
|
||||
str = interpolateEnv(str)
|
||||
|
||||
duration, err := time.ParseDuration(str)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "could not parse duration '%v', line '%d'", str, value.Line)
|
||||
}
|
||||
|
||||
*id = InterpolatedDuration(duration)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (id *InterpolatedDuration) MarshalYAML() (interface{}, error) {
|
||||
duration := time.Duration(*id)
|
||||
|
||||
return duration.String(), nil
|
||||
}
|
||||
|
||||
func NewInterpolatedDuration(d time.Duration) *InterpolatedDuration {
|
||||
id := InterpolatedDuration(d)
|
||||
return &id
|
||||
}
|
||||
|
63
internal/config/environment_test.go
Normal file
63
internal/config/environment_test.go
Normal file
@ -0,0 +1,63 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type interpolateTestCase struct {
|
||||
String string
|
||||
Data map[string]string
|
||||
Expected string
|
||||
}
|
||||
|
||||
var interpolateTestCases = []interpolateTestCase{
|
||||
{
|
||||
String: "${foo}",
|
||||
Data: map[string]string{
|
||||
"foo": "bar",
|
||||
},
|
||||
Expected: "bar",
|
||||
},
|
||||
{
|
||||
String: "${hello:-world}",
|
||||
Data: map[string]string{},
|
||||
Expected: "world",
|
||||
},
|
||||
{
|
||||
String: "${hello:-}",
|
||||
Data: map[string]string{},
|
||||
Expected: "${hello:-}",
|
||||
},
|
||||
{
|
||||
String: "foo",
|
||||
Data: map[string]string{},
|
||||
Expected: "foo",
|
||||
},
|
||||
{
|
||||
String: "",
|
||||
Data: map[string]string{},
|
||||
Expected: "",
|
||||
},
|
||||
}
|
||||
|
||||
func TestInterpolate(t *testing.T) {
|
||||
for idx, tc := range interpolateTestCases {
|
||||
func(idx int, tc interpolateTestCase) {
|
||||
t.Run(fmt.Sprintf("Case_%d", idx), func(t *testing.T) {
|
||||
result := interpolate(tc.String, func(name string) string {
|
||||
value, exists := tc.Data[name]
|
||||
if !exists {
|
||||
return ""
|
||||
}
|
||||
|
||||
return value
|
||||
})
|
||||
|
||||
if e, g := tc.Expected, result; e != g {
|
||||
t.Errorf("result: expected '%v', got '%v'", tc.Expected, result)
|
||||
}
|
||||
})
|
||||
}(idx, tc)
|
||||
}
|
||||
}
|
18
internal/config/sentry.go
Normal file
18
internal/config/sentry.go
Normal file
@ -0,0 +1,18 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
type SentryConfig struct {
|
||||
DSN InterpolatedString `yaml:"dsn"`
|
||||
Environment InterpolatedString `yaml:"environment"`
|
||||
}
|
||||
|
||||
func NewDefaultSentryConfig() SentryConfig {
|
||||
hostname, _ := os.Hostname()
|
||||
return SentryConfig{
|
||||
DSN: "",
|
||||
Environment: InterpolatedString(hostname),
|
||||
}
|
||||
}
|
@ -1,19 +1,50 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/auth/thirdparty"
|
||||
)
|
||||
|
||||
type ServerConfig struct {
|
||||
PrivateKeyPath InterpolatedString `yaml:"privateKeyPath"`
|
||||
Issuer InterpolatedString `yaml:"issuer"`
|
||||
HTTP HTTPConfig `yaml:"http"`
|
||||
Database DatabaseConfig `yaml:"database"`
|
||||
CORS CORSConfig `yaml:"cors"`
|
||||
HTTP HTTPConfig `yaml:"http"`
|
||||
Database DatabaseConfig `yaml:"database"`
|
||||
CORS CORSConfig `yaml:"cors"`
|
||||
Auth AuthConfig `yaml:"auth"`
|
||||
}
|
||||
|
||||
func NewDefaultServerConfig() ServerConfig {
|
||||
return ServerConfig{
|
||||
PrivateKeyPath: "server-key.json",
|
||||
Issuer: "http://127.0.0.1:3000",
|
||||
HTTP: NewDefaultHTTPConfig(),
|
||||
Database: NewDefaultDatabaseConfig(),
|
||||
CORS: NewDefaultCORSConfig(),
|
||||
HTTP: NewDefaultHTTPConfig(),
|
||||
Database: NewDefaultDatabaseConfig(),
|
||||
CORS: NewDefaultCORSConfig(),
|
||||
Auth: NewDefaultAuthConfig(),
|
||||
}
|
||||
}
|
||||
|
||||
type AuthConfig struct {
|
||||
Local *LocalAuthConfig `yaml:"local"`
|
||||
Remote *RemoteAuthConfig `yaml:"remote"`
|
||||
RoleExtractionRules []string `yaml:"roleExtractionRules"`
|
||||
}
|
||||
|
||||
func NewDefaultAuthConfig() AuthConfig {
|
||||
return AuthConfig{
|
||||
Local: &LocalAuthConfig{
|
||||
PrivateKeyPath: "server-key.json",
|
||||
},
|
||||
Remote: nil,
|
||||
RoleExtractionRules: []string{
|
||||
fmt.Sprintf("jwt.%s != nil ? str(jwt.%s) : ''", thirdparty.DefaultRoleKey, thirdparty.DefaultRoleKey),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
type LocalAuthConfig struct {
|
||||
PrivateKeyPath InterpolatedString `yaml:"privateKeyPath"`
|
||||
}
|
||||
|
||||
type RemoteAuthConfig struct {
|
||||
JsonWebKeySetURL InterpolatedString `yaml:"jwksUrl"`
|
||||
RefreshInterval *InterpolatedDuration `yaml:"refreshInterval"`
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
@ -15,14 +16,30 @@ import (
|
||||
)
|
||||
|
||||
type AgentRepository struct {
|
||||
db *sql.DB
|
||||
db *sql.DB
|
||||
sqliteBusyRetryMaxAttempts int
|
||||
}
|
||||
|
||||
// DeleteSpec implements datastore.AgentRepository.
|
||||
func (r *AgentRepository) DeleteSpec(ctx context.Context, agentID datastore.AgentID, name string) error {
|
||||
query := `DELETE FROM specs WHERE agent_id = $1 AND name = $2`
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
exists, err := r.agentExists(ctx, tx, agentID)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
_, err := r.db.ExecContext(ctx, query, agentID, name)
|
||||
if !exists {
|
||||
return errors.WithStack(datastore.ErrNotFound)
|
||||
}
|
||||
|
||||
query := `DELETE FROM specs WHERE agent_id = $1 AND name = $2`
|
||||
|
||||
if _, err = tx.ExecContext(ctx, query, agentID, name); err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
@ -34,41 +51,58 @@ func (r *AgentRepository) DeleteSpec(ctx context.Context, agentID datastore.Agen
|
||||
func (r *AgentRepository) GetSpecs(ctx context.Context, agentID datastore.AgentID) ([]*datastore.Spec, error) {
|
||||
specs := make([]*datastore.Spec, 0)
|
||||
|
||||
query := `
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
exists, err := r.agentExists(ctx, tx, agentID)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
if !exists {
|
||||
return errors.WithStack(datastore.ErrNotFound)
|
||||
}
|
||||
|
||||
query := `
|
||||
SELECT id, name, revision, data, created_at, updated_at
|
||||
FROM specs
|
||||
WHERE agent_id = $1
|
||||
`
|
||||
`
|
||||
|
||||
rows, err := r.db.QueryContext(ctx, query, agentID)
|
||||
rows, err := tx.QueryContext(ctx, query, agentID)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := rows.Close(); err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not close rows", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
for rows.Next() {
|
||||
spec := &datastore.Spec{}
|
||||
|
||||
data := JSONMap{}
|
||||
|
||||
if err := rows.Scan(&spec.ID, &spec.Name, &spec.Revision, &data, &spec.CreatedAt, &spec.UpdatedAt); err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
spec.Data = data
|
||||
|
||||
specs = append(specs, spec)
|
||||
}
|
||||
|
||||
if err := rows.Err(); err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := rows.Close(); err != nil {
|
||||
logger.Error(ctx, "could not close rows", logger.E(errors.WithStack(err)))
|
||||
}
|
||||
}()
|
||||
|
||||
for rows.Next() {
|
||||
spec := &datastore.Spec{}
|
||||
|
||||
data := JSONMap{}
|
||||
|
||||
if err := rows.Scan(&spec.ID, &spec.Name, &spec.Revision, &data, &spec.CreatedAt, &spec.UpdatedAt); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
spec.Data = data
|
||||
|
||||
specs = append(specs, spec)
|
||||
}
|
||||
|
||||
if err := rows.Err(); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return specs, nil
|
||||
}
|
||||
|
||||
@ -76,7 +110,16 @@ func (r *AgentRepository) GetSpecs(ctx context.Context, agentID datastore.AgentI
|
||||
func (r *AgentRepository) UpdateSpec(ctx context.Context, agentID datastore.AgentID, name string, revision int, data map[string]any) (*datastore.Spec, error) {
|
||||
spec := &datastore.Spec{}
|
||||
|
||||
err := r.withTx(ctx, func(tx *sql.Tx) error {
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
exists, err := r.agentExists(ctx, tx, agentID)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
if !exists {
|
||||
return errors.WithStack(datastore.ErrNotFound)
|
||||
}
|
||||
|
||||
now := time.Now().UTC()
|
||||
|
||||
query := `
|
||||
@ -96,7 +139,7 @@ func (r *AgentRepository) UpdateSpec(ctx context.Context, agentID datastore.Agen
|
||||
|
||||
data := JSONMap{}
|
||||
|
||||
err := row.Scan(&spec.ID, &spec.Name, &spec.Revision, &data, &spec.CreatedAt, &spec.UpdatedAt)
|
||||
err = row.Scan(&spec.ID, &spec.Name, &spec.Revision, &data, &spec.CreatedAt, &spec.UpdatedAt)
|
||||
if err != nil {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return errors.WithStack(datastore.ErrUnexpectedRevision)
|
||||
@ -126,7 +169,7 @@ func (r *AgentRepository) Query(ctx context.Context, opts ...datastore.AgentQuer
|
||||
agents := make([]*datastore.Agent, 0)
|
||||
count := 0
|
||||
|
||||
err := r.withTx(ctx, func(tx *sql.Tx) error {
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
query := `SELECT id, label, thumbprint, status, contacted_at, created_at, updated_at FROM agents`
|
||||
|
||||
limit := 10
|
||||
@ -179,14 +222,15 @@ func (r *AgentRepository) Query(ctx context.Context, opts ...datastore.AgentQuer
|
||||
|
||||
logger.Debug(ctx, "executing query", logger.F("query", query), logger.F("args", args))
|
||||
|
||||
rows, err := r.db.QueryContext(ctx, query, args...)
|
||||
rows, err := tx.QueryContext(ctx, query, args...)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := rows.Close(); err != nil {
|
||||
logger.Error(ctx, "could not close rows", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not close rows", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
@ -230,7 +274,7 @@ func (r *AgentRepository) Query(ctx context.Context, opts ...datastore.AgentQuer
|
||||
func (r *AgentRepository) Create(ctx context.Context, thumbprint string, keySet jwk.Set, metadata map[string]any) (*datastore.Agent, error) {
|
||||
agent := &datastore.Agent{}
|
||||
|
||||
err := r.withTx(ctx, func(tx *sql.Tx) error {
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
query := `SELECT count(id) FROM agents WHERE thumbprint = $1`
|
||||
row := tx.QueryRowContext(ctx, query, thumbprint)
|
||||
|
||||
@ -289,15 +333,15 @@ func (r *AgentRepository) Create(ctx context.Context, thumbprint string, keySet
|
||||
|
||||
// Delete implements datastore.AgentRepository
|
||||
func (r *AgentRepository) Delete(ctx context.Context, id datastore.AgentID) error {
|
||||
err := r.withTx(ctx, func(tx *sql.Tx) error {
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
query := `DELETE FROM agents WHERE id = $1`
|
||||
_, err := r.db.ExecContext(ctx, query, id)
|
||||
_, err := tx.ExecContext(ctx, query, id)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
query = `DELETE FROM specs WHERE agent_id = $1`
|
||||
_, err = r.db.ExecContext(ctx, query, id)
|
||||
_, err = tx.ExecContext(ctx, query, id)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
@ -317,14 +361,14 @@ func (r *AgentRepository) Get(ctx context.Context, id datastore.AgentID) (*datas
|
||||
ID: id,
|
||||
}
|
||||
|
||||
err := r.withTx(ctx, func(tx *sql.Tx) error {
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
query := `
|
||||
SELECT "id", "label", "thumbprint", "keyset", "metadata", "status", "contacted_at", "created_at", "updated_at"
|
||||
FROM agents
|
||||
WHERE id = $1
|
||||
`
|
||||
|
||||
row := r.db.QueryRowContext(ctx, query, id)
|
||||
row := tx.QueryRowContext(ctx, query, id)
|
||||
|
||||
metadata := JSONMap{}
|
||||
contactedAt := sql.NullTime{}
|
||||
@ -368,7 +412,7 @@ func (r *AgentRepository) Update(ctx context.Context, id datastore.AgentID, opts
|
||||
|
||||
agent := &datastore.Agent{}
|
||||
|
||||
err := r.withTx(ctx, func(tx *sql.Tx) error {
|
||||
err := r.withTxRetry(ctx, func(tx *sql.Tx) error {
|
||||
query := `
|
||||
UPDATE agents SET id = $1
|
||||
`
|
||||
@ -472,8 +516,81 @@ func (r *AgentRepository) Update(ctx context.Context, id datastore.AgentID, opts
|
||||
return agent, nil
|
||||
}
|
||||
|
||||
func (r *AgentRepository) agentExists(ctx context.Context, tx *sql.Tx, agentID datastore.AgentID) (bool, error) {
|
||||
row := tx.QueryRowContext(ctx, `SELECT count(id) FROM agents WHERE id = $1`, agentID)
|
||||
|
||||
var count int
|
||||
|
||||
if err := row.Scan(&count); err != nil {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return false, errors.WithStack(datastore.ErrNotFound)
|
||||
}
|
||||
|
||||
return false, errors.WithStack(err)
|
||||
}
|
||||
|
||||
if count == 0 {
|
||||
return false, errors.WithStack(datastore.ErrNotFound)
|
||||
}
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
func (r *AgentRepository) withTxRetry(ctx context.Context, fn func(*sql.Tx) error) error {
|
||||
attempts := 0
|
||||
max := r.sqliteBusyRetryMaxAttempts
|
||||
|
||||
ctx = logger.With(ctx, logger.F("max", max))
|
||||
|
||||
var err error
|
||||
for {
|
||||
ctx = logger.With(ctx)
|
||||
|
||||
if attempts >= max {
|
||||
logger.Debug(ctx, "transaction retrying failed", logger.F("attempts", attempts))
|
||||
|
||||
return errors.Wrapf(err, "transaction failed after %d attempts", max)
|
||||
}
|
||||
|
||||
err = r.withTx(ctx, fn)
|
||||
if err != nil {
|
||||
if !strings.Contains(err.Error(), "(5) (SQLITE_BUSY)") {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
err = errors.WithStack(err)
|
||||
|
||||
logger.Warn(ctx, "database is busy", logger.E(err))
|
||||
|
||||
wait := time.Duration(8<<(attempts+1)) * time.Millisecond
|
||||
|
||||
logger.Debug(
|
||||
ctx, "database is busy, waiting before retrying transaction",
|
||||
logger.F("wait", wait.String()),
|
||||
logger.F("attempts", attempts),
|
||||
)
|
||||
|
||||
timer := time.NewTimer(wait)
|
||||
select {
|
||||
case <-timer.C:
|
||||
attempts++
|
||||
continue
|
||||
|
||||
case <-ctx.Done():
|
||||
if err := ctx.Err(); err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func (r *AgentRepository) withTx(ctx context.Context, fn func(*sql.Tx) error) error {
|
||||
tx, err := r.db.Begin()
|
||||
tx, err := r.db.BeginTx(ctx, nil)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
@ -484,7 +601,8 @@ func (r *AgentRepository) withTx(ctx context.Context, fn func(*sql.Tx) error) er
|
||||
return
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not rollback transaction", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not rollback transaction", logger.CapturedE(err))
|
||||
}
|
||||
}()
|
||||
|
||||
@ -499,8 +617,8 @@ func (r *AgentRepository) withTx(ctx context.Context, fn func(*sql.Tx) error) er
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewAgentRepository(db *sql.DB) *AgentRepository {
|
||||
return &AgentRepository{db}
|
||||
func NewAgentRepository(db *sql.DB, sqliteBusyRetryMaxAttempts int) *AgentRepository {
|
||||
return &AgentRepository{db, sqliteBusyRetryMaxAttempts}
|
||||
}
|
||||
|
||||
var _ datastore.AgentRepository = &AgentRepository{}
|
||||
|
46
internal/datastore/sqlite/agent_repository_test.go
Normal file
46
internal/datastore/sqlite/agent_repository_test.go
Normal file
@ -0,0 +1,46 @@
|
||||
package sqlite
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore/testsuite"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/migrate"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
func TestSQLiteAgentRepository(t *testing.T) {
|
||||
logger.SetLevel(logger.LevelDebug)
|
||||
|
||||
file := "testdata/agent_repository_test.sqlite"
|
||||
|
||||
if err := os.Remove(file); err != nil && !errors.Is(err, os.ErrNotExist) {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
dsn := fmt.Sprintf("%s?_pragma=foreign_keys(1)&_pragma=busy_timeout=%d", file, (60 * time.Second).Milliseconds())
|
||||
|
||||
migr, err := migrate.New("../../../migrations", "sqlite", "sqlite://"+dsn)
|
||||
if err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
if err := migr.Up(); err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
db, err := sql.Open("sqlite", dsn)
|
||||
if err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
repo := NewAgentRepository(db, 5)
|
||||
|
||||
testsuite.TestAgentRepository(t, repo)
|
||||
}
|
1
internal/datastore/sqlite/testdata/.gitignore
vendored
Normal file
1
internal/datastore/sqlite/testdata/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.sqlite*
|
14
internal/datastore/testsuite/agent_repository.go
Normal file
14
internal/datastore/testsuite/agent_repository.go
Normal file
@ -0,0 +1,14 @@
|
||||
package testsuite
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
)
|
||||
|
||||
func TestAgentRepository(t *testing.T, repo datastore.AgentRepository) {
|
||||
t.Run("Cases", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
runAgentRepositoryTests(t, repo)
|
||||
})
|
||||
}
|
129
internal/datastore/testsuite/agent_repository_cases.go
Normal file
129
internal/datastore/testsuite/agent_repository_cases.go
Normal file
@ -0,0 +1,129 @@
|
||||
package testsuite
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/controller/mdns/spec"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
type agentRepositoryTestCase struct {
|
||||
Name string
|
||||
Skip bool
|
||||
Run func(ctx context.Context, repo datastore.AgentRepository) error
|
||||
}
|
||||
|
||||
var agentRepositoryTestCases = []agentRepositoryTestCase{
|
||||
{
|
||||
Name: "Create a new agent",
|
||||
Run: func(ctx context.Context, repo datastore.AgentRepository) error {
|
||||
thumbprint := "foo"
|
||||
keySet := jwk.NewSet()
|
||||
var metadata map[string]any
|
||||
|
||||
agent, err := repo.Create(ctx, thumbprint, keySet, metadata)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
if agent.CreatedAt.IsZero() {
|
||||
return errors.Errorf("agent.CreatedAt should not be zero time")
|
||||
}
|
||||
|
||||
if agent.UpdatedAt.IsZero() {
|
||||
return errors.Errorf("agent.UpdatedAt should not be zero time")
|
||||
}
|
||||
|
||||
if e, g := datastore.AgentStatusPending, agent.Status; e != g {
|
||||
return errors.Errorf("agent.Status: expected '%v', got '%v'", e, g)
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "Try to update spec for an unexistant agent",
|
||||
Run: func(ctx context.Context, repo datastore.AgentRepository) error {
|
||||
var unexistantAgentID datastore.AgentID = 9999
|
||||
var specData map[string]any
|
||||
|
||||
agent, err := repo.UpdateSpec(ctx, unexistantAgentID, string(spec.Name), 0, specData)
|
||||
if err == nil {
|
||||
return errors.New("error should not be nil")
|
||||
}
|
||||
|
||||
if !errors.Is(err, datastore.ErrNotFound) {
|
||||
return errors.Errorf("error should be datastore.ErrNotFound, got '%+v'", err)
|
||||
}
|
||||
|
||||
if agent != nil {
|
||||
return errors.New("agent should be nil")
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "Try to delete spec of an unexistant agent",
|
||||
Run: func(ctx context.Context, repo datastore.AgentRepository) error {
|
||||
var unexistantAgentID datastore.AgentID = 9999
|
||||
|
||||
err := repo.DeleteSpec(ctx, unexistantAgentID, string(spec.Name))
|
||||
if err == nil {
|
||||
return errors.New("error should not be nil")
|
||||
}
|
||||
|
||||
if !errors.Is(err, datastore.ErrNotFound) {
|
||||
return errors.Errorf("error should be datastore.ErrNotFound, got '%+v'", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "Try to get specs of an unexistant agent",
|
||||
Run: func(ctx context.Context, repo datastore.AgentRepository) error {
|
||||
var unexistantAgentID datastore.AgentID = 9999
|
||||
|
||||
specs, err := repo.GetSpecs(ctx, unexistantAgentID)
|
||||
if err == nil {
|
||||
return errors.New("error should not be nil")
|
||||
}
|
||||
|
||||
if !errors.Is(err, datastore.ErrNotFound) {
|
||||
return errors.Errorf("error should be datastore.ErrNotFound, got '%+v'", err)
|
||||
}
|
||||
|
||||
if specs != nil {
|
||||
return errors.Errorf("specs should be nil, got '%+v'", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func runAgentRepositoryTests(t *testing.T, repo datastore.AgentRepository) {
|
||||
for _, tc := range agentRepositoryTestCases {
|
||||
func(tc agentRepositoryTestCase) {
|
||||
t.Run(tc.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
if tc.Skip {
|
||||
t.SkipNow()
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
if err := tc.Run(ctx, repo); err != nil {
|
||||
t.Errorf("%+v", errors.WithStack(err))
|
||||
}
|
||||
})
|
||||
}(tc)
|
||||
}
|
||||
}
|
@ -1,11 +1,13 @@
|
||||
package jwk
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcd/btcutil/base58"
|
||||
"github.com/lestrrat-go/jwx/v2/jwa"
|
||||
@ -34,7 +36,7 @@ func Parse(src []byte, options ...jwk.ParseOption) (Set, error) {
|
||||
return jwk.Parse(src, options...)
|
||||
}
|
||||
|
||||
func PublicKeySet(keys ...jwk.Key) (jwk.Set, error) {
|
||||
func RS256PublicKeySet(keys ...jwk.Key) (jwk.Set, error) {
|
||||
set := jwk.NewSet()
|
||||
|
||||
for _, k := range keys {
|
||||
@ -85,6 +87,27 @@ func LoadOrGenerate(path string, size int) (jwk.Key, error) {
|
||||
return key, nil
|
||||
}
|
||||
|
||||
func CreateCachedRemoteKeySet(ctx context.Context, url string, refreshInterval time.Duration) (func(context.Context) (jwk.Set, error), error) {
|
||||
cache := jwk.NewCache(ctx)
|
||||
|
||||
if err := cache.Register(url, jwk.WithMinRefreshInterval(refreshInterval)); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
if _, err := cache.Refresh(ctx, url); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return func(ctx context.Context) (jwk.Set, error) {
|
||||
keySet, err := cache.Get(ctx, url)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return keySet, nil
|
||||
}, nil
|
||||
}
|
||||
|
||||
func Generate(size int) (jwk.Key, error) {
|
||||
privKey, err := rsa.GenerateKey(rand.Reader, size)
|
||||
if err != nil {
|
||||
|
@ -12,7 +12,7 @@ func TestJWK(t *testing.T) {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
||||
keySet, err := PublicKeySet(privateKey)
|
||||
keySet, err := RS256PublicKeySet(privateKey)
|
||||
if err != nil {
|
||||
t.Fatalf("%+v", errors.WithStack(err))
|
||||
}
|
||||
|
@ -2,7 +2,6 @@ package migrate
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/golang-migrate/migrate/v4"
|
||||
_ "github.com/golang-migrate/migrate/v4/database/postgres"
|
||||
@ -23,8 +22,6 @@ func New(migrationDir, driver, dsn string) (*migrate.Migrate, error) {
|
||||
fmt.Sprintf("file://%s/%s", migrationDir, driver),
|
||||
dsn,
|
||||
)
|
||||
|
||||
log.Println(migrationDir, driver, dsn)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/metadata"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/api"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
@ -39,7 +39,8 @@ func (s *Server) registerAgent(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
keySet, err := jwk.Parse(registerAgentReq.KeySet)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not parse key set", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not parse key set", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -51,14 +52,15 @@ func (s *Server) registerAgent(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
validSignature, err := jwk.Verify(keySet, registerAgentReq.Signature, registerAgentReq.Thumbprint, registerAgentReq.Metadata)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not validate signature", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not validate signature", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if !validSignature {
|
||||
logger.Error(ctx, "conflicting signature", logger.F("signature", registerAgentReq.Signature))
|
||||
logger.Warn(ctx, "conflicting signature", logger.F("signature", registerAgentReq.Signature))
|
||||
api.ErrorResponse(w, http.StatusConflict, ErrCodeConflict, nil)
|
||||
|
||||
return
|
||||
@ -74,7 +76,8 @@ func (s *Server) registerAgent(w http.ResponseWriter, r *http.Request) {
|
||||
)
|
||||
if err != nil {
|
||||
if !errors.Is(err, datastore.ErrAlreadyExist) {
|
||||
logger.Error(ctx, "could not create agent", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not create agent", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -86,15 +89,16 @@ func (s *Server) registerAgent(w http.ResponseWriter, r *http.Request) {
|
||||
datastore.WithAgentQueryLimit(1),
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not retrieve agents", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not retrieve agents", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if len(agents) == 0 {
|
||||
logger.Error(ctx, "could not retrieve matching agent", logger.E(errors.WithStack(err)))
|
||||
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not retrieve matching agent", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeNotFound, nil)
|
||||
|
||||
return
|
||||
@ -104,10 +108,12 @@ func (s *Server) registerAgent(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
agent, err = s.agentRepo.Get(ctx, agentID)
|
||||
if err != nil {
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(
|
||||
ctx, "could not retrieve agent",
|
||||
logger.E(errors.WithStack(err)), logger.F("agentID", agentID),
|
||||
logger.CapturedE(err), logger.F("agentID", agentID),
|
||||
)
|
||||
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -115,7 +121,8 @@ func (s *Server) registerAgent(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
validSignature, err = jwk.Verify(agent.KeySet.Set, registerAgentReq.Signature, registerAgentReq.Thumbprint, registerAgentReq.Metadata)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not validate signature using previous keyset", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not validate signature using previous keyset", logger.CapturedE(err))
|
||||
|
||||
api.ErrorResponse(w, http.StatusConflict, ErrCodeConflict, nil)
|
||||
|
||||
@ -129,7 +136,9 @@ func (s *Server) registerAgent(w http.ResponseWriter, r *http.Request) {
|
||||
datastore.WithAgentUpdateThumbprint(registerAgentReq.Thumbprint),
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not update agent", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not update agent", logger.CapturedE(err))
|
||||
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -177,7 +186,8 @@ func (s *Server) updateAgent(w http.ResponseWriter, r *http.Request) {
|
||||
options...,
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not update agent", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not update agent", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -258,7 +268,8 @@ func (s *Server) queryAgents(w http.ResponseWriter, r *http.Request) {
|
||||
options...,
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not list agents", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not list agents", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -292,7 +303,8 @@ func (s *Server) deleteAgent(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not delete agent", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not delete agent", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -324,7 +336,8 @@ func (s *Server) getAgent(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not get agent", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not get agent", logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -342,7 +355,7 @@ func getAgentID(w http.ResponseWriter, r *http.Request) (datastore.AgentID, bool
|
||||
|
||||
agentID, err := strconv.ParseInt(rawAgentID, 10, 64)
|
||||
if err != nil {
|
||||
logger.Error(r.Context(), "could not parse agent id", logger.E(errors.WithStack(err)))
|
||||
logger.Error(r.Context(), "could not parse agent id", logger.CapturedE(errors.WithStack(err)))
|
||||
api.ErrorResponse(w, http.StatusBadRequest, api.ErrCodeMalformedRequest, nil)
|
||||
|
||||
return 0, false
|
||||
@ -356,7 +369,8 @@ func getIntQueryParam(w http.ResponseWriter, r *http.Request, param string, defa
|
||||
if rawValue != "" {
|
||||
value, err := strconv.ParseInt(rawValue, 10, 64)
|
||||
if err != nil {
|
||||
logger.Error(r.Context(), "could not parse int param", logger.F("param", param), logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(r.Context(), "could not parse int param", logger.F("param", param), logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusBadRequest, api.ErrCodeMalformedRequest, nil)
|
||||
|
||||
return 0, false
|
||||
@ -389,7 +403,8 @@ func getIntSliceValues(w http.ResponseWriter, r *http.Request, param string, def
|
||||
for _, rv := range rawValues {
|
||||
value, err := strconv.ParseInt(rv, 10, 64)
|
||||
if err != nil {
|
||||
logger.Error(r.Context(), "could not parse int slice param", logger.F("param", param), logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(r.Context(), "could not parse int slice param", logger.F("param", param), logger.CapturedE(err))
|
||||
api.ErrorResponse(w, http.StatusBadRequest, api.ErrCodeMalformedRequest, nil)
|
||||
|
||||
return nil, false
|
||||
|
@ -124,7 +124,8 @@ func assertRequestUser(w http.ResponseWriter, r *http.Request) (auth.User, bool)
|
||||
ctx := r.Context()
|
||||
user, err := auth.CtxUser(ctx)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not retrieve user", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not retrieve user", logger.CapturedE(err))
|
||||
|
||||
forbidden(w, r)
|
||||
|
||||
@ -147,7 +148,7 @@ func forbidden(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func logUnexpectedUserType(ctx context.Context, user auth.User) {
|
||||
logger.Error(
|
||||
logger.Warn(
|
||||
ctx, "unexpected user type",
|
||||
logger.F("subject", user.Subject()),
|
||||
logger.F("type", fmt.Sprintf("%T", user)),
|
||||
|
@ -6,6 +6,9 @@ import (
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"reflect"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/auth"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/auth/agent"
|
||||
@ -13,9 +16,13 @@ import (
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/config"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/antonmedv/expr"
|
||||
"github.com/antonmedv/expr/vm"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/go-chi/cors"
|
||||
"github.com/lestrrat-go/jwx/v2/jwa"
|
||||
"github.com/lestrrat-go/jwx/v2/jwt"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
)
|
||||
@ -72,20 +79,6 @@ func (s *Server) run(parentCtx context.Context, addrs chan net.Addr, errs chan e
|
||||
}
|
||||
}()
|
||||
|
||||
key, err := jwk.LoadOrGenerate(string(s.conf.PrivateKeyPath), jwk.DefaultKeySize)
|
||||
if err != nil {
|
||||
errs <- errors.WithStack(err)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
keys, err := jwk.PublicKeySet(key)
|
||||
if err != nil {
|
||||
errs <- errors.WithStack(err)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
router := chi.NewRouter()
|
||||
|
||||
router.Use(middleware.Logger)
|
||||
@ -100,12 +93,19 @@ func (s *Server) run(parentCtx context.Context, addrs chan net.Addr, errs chan e
|
||||
|
||||
router.Use(corsMiddleware.Handler)
|
||||
|
||||
thirdPartyAuth, err := s.getThirdPartyAuthenticator()
|
||||
if err != nil {
|
||||
errs <- errors.WithStack(err)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
router.Route("/api/v1", func(r chi.Router) {
|
||||
r.Post("/register", s.registerAgent)
|
||||
|
||||
r.Group(func(r chi.Router) {
|
||||
r.Use(auth.Middleware(
|
||||
thirdparty.NewAuthenticator(keys, string(s.conf.Issuer), thirdparty.DefaultAcceptableSkew),
|
||||
thirdPartyAuth,
|
||||
agent.NewAuthenticator(s.agentRepo, agent.DefaultAcceptableSkew),
|
||||
))
|
||||
|
||||
@ -131,6 +131,151 @@ func (s *Server) run(parentCtx context.Context, addrs chan net.Addr, errs chan e
|
||||
logger.Info(ctx, "http server exiting")
|
||||
}
|
||||
|
||||
func (s *Server) getThirdPartyAuthenticator() (*thirdparty.Authenticator, error) {
|
||||
var localPublicKey jwk.Key
|
||||
|
||||
localAuth := s.conf.Auth.Local
|
||||
if localAuth != nil {
|
||||
key, err := jwk.LoadOrGenerate(string(localAuth.PrivateKeyPath), jwk.DefaultKeySize)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
publicKey, err := key.PublicKey()
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
if err := publicKey.Set(jwk.AlgorithmKey, jwa.RS256); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
localPublicKey = publicKey
|
||||
}
|
||||
|
||||
var getRemoteKeySet thirdparty.GetKeySet
|
||||
|
||||
remoteAuth := s.conf.Auth.Remote
|
||||
if remoteAuth != nil {
|
||||
refreshInterval := time.Minute * 15
|
||||
if remoteAuth.RefreshInterval != nil {
|
||||
refreshInterval = time.Duration(*remoteAuth.RefreshInterval)
|
||||
}
|
||||
|
||||
fn, err := jwk.CreateCachedRemoteKeySet(context.Background(), string(remoteAuth.JsonWebKeySetURL), refreshInterval)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
getRemoteKeySet = fn
|
||||
}
|
||||
|
||||
getKeySet := func(ctx context.Context) (jwk.Set, error) {
|
||||
keySet := jwk.NewSet()
|
||||
|
||||
if localPublicKey != nil {
|
||||
if err := keySet.AddKey(localPublicKey); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
}
|
||||
|
||||
if getRemoteKeySet != nil {
|
||||
remoteKeySet, err := getRemoteKeySet(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
for idx := 0; idx < remoteKeySet.Len(); idx++ {
|
||||
key, ok := remoteKeySet.Key(idx)
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
|
||||
if err := keySet.AddKey(key); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return keySet, nil
|
||||
}
|
||||
|
||||
getTokenRole, err := s.createGetTokenRoleFunc()
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return thirdparty.NewAuthenticator(getKeySet, getTokenRole, thirdparty.DefaultAcceptableSkew), nil
|
||||
}
|
||||
|
||||
func (s *Server) createGetTokenRoleFunc() (func(ctx context.Context, token jwt.Token) (string, error), error) {
|
||||
rawRules := s.conf.Auth.RoleExtractionRules
|
||||
rules := make([]*vm.Program, 0, len(rawRules))
|
||||
|
||||
type Env struct {
|
||||
JWT map[string]any `expr:"jwt"`
|
||||
}
|
||||
|
||||
strFunc := expr.Function(
|
||||
"str",
|
||||
func(params ...any) (any, error) {
|
||||
var builder strings.Builder
|
||||
|
||||
for _, p := range params {
|
||||
if _, err := builder.WriteString(fmt.Sprintf("%v", p)); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
}
|
||||
|
||||
return builder.String(), nil
|
||||
},
|
||||
new(func(any) string),
|
||||
)
|
||||
|
||||
for _, rr := range rawRules {
|
||||
r, err := expr.Compile(rr,
|
||||
expr.Env(Env{}),
|
||||
expr.AsKind(reflect.String),
|
||||
strFunc,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "could not compile role extraction rule '%s'", rr)
|
||||
}
|
||||
|
||||
rules = append(rules, r)
|
||||
}
|
||||
|
||||
return func(ctx context.Context, token jwt.Token) (string, error) {
|
||||
jwt, err := token.AsMap(ctx)
|
||||
if err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
vm := vm.VM{}
|
||||
|
||||
for _, r := range rules {
|
||||
result, err := vm.Run(r, Env{
|
||||
JWT: jwt,
|
||||
})
|
||||
if err != nil {
|
||||
return "", errors.WithStack(err)
|
||||
}
|
||||
|
||||
role, ok := result.(string)
|
||||
if !ok {
|
||||
logger.Debug(ctx, "ignoring unexpected role extraction result", logger.F("result", result))
|
||||
continue
|
||||
}
|
||||
|
||||
if role != "" {
|
||||
return role, nil
|
||||
}
|
||||
}
|
||||
|
||||
return "", errors.New("could not extract role from token")
|
||||
}, nil
|
||||
}
|
||||
|
||||
func New(funcs ...OptionFunc) *Server {
|
||||
opt := defaultOption()
|
||||
for _, fn := range funcs {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/spec"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/api"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
@ -44,7 +44,9 @@ func (s *Server) updateSpec(w http.ResponseWriter, r *http.Request) {
|
||||
data.Message = validationErr.Error()
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not validate spec", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not validate spec", logger.CapturedE(err))
|
||||
|
||||
api.ErrorResponse(w, http.StatusBadRequest, api.ErrCodeInvalidRequest, data)
|
||||
|
||||
return
|
||||
@ -58,13 +60,21 @@ func (s *Server) updateSpec(w http.ResponseWriter, r *http.Request) {
|
||||
updateSpecReq.SpecData(),
|
||||
)
|
||||
if err != nil {
|
||||
if errors.Is(err, datastore.ErrNotFound) {
|
||||
api.ErrorResponse(w, http.StatusNotFound, ErrCodeNotFound, nil)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if errors.Is(err, datastore.ErrUnexpectedRevision) {
|
||||
api.ErrorResponse(w, http.StatusConflict, ErrCodeUnexpectedRevision, nil)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not update spec", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not update spec", logger.CapturedE(err))
|
||||
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -87,7 +97,15 @@ func (s *Server) getAgentSpecs(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
specs, err := s.agentRepo.GetSpecs(ctx, agentID)
|
||||
if err != nil {
|
||||
logger.Error(ctx, "could not list specs", logger.E(errors.WithStack(err)))
|
||||
if errors.Is(err, datastore.ErrNotFound) {
|
||||
api.ErrorResponse(w, http.StatusNotFound, ErrCodeNotFound, nil)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not list specs", logger.CapturedE(err))
|
||||
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -129,7 +147,9 @@ func (s *Server) deleteSpec(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
logger.Error(ctx, "could not delete spec", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(ctx, "could not delete spec", logger.CapturedE(err))
|
||||
|
||||
api.ErrorResponse(w, http.StatusInternalServerError, ErrCodeUnknownError, nil)
|
||||
|
||||
return
|
||||
@ -147,7 +167,9 @@ func getSpecID(w http.ResponseWriter, r *http.Request) (datastore.SpecID, bool)
|
||||
|
||||
specID, err := strconv.ParseInt(rawSpecID, 10, 64)
|
||||
if err != nil {
|
||||
logger.Error(r.Context(), "could not parse spec id", logger.E(errors.WithStack(err)))
|
||||
err = errors.WithStack(err)
|
||||
logger.Error(r.Context(), "could not parse spec id", logger.CapturedE(err))
|
||||
|
||||
api.ErrorResponse(w, http.StatusBadRequest, api.ErrCodeMalformedRequest, nil)
|
||||
|
||||
return 0, false
|
||||
|
@ -59,7 +59,7 @@ func NewAgentRepository(ctx context.Context, conf config.DatabaseConfig) (datast
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
agentRepository = sqlite.NewAgentRepository(db)
|
||||
agentRepository = sqlite.NewAgentRepository(db, 5)
|
||||
|
||||
default:
|
||||
return nil, errors.Errorf("unsupported database driver '%s'", driver)
|
||||
|
858
misc/casts/emissary.cast
Normal file
858
misc/casts/emissary.cast
Normal file
@ -0,0 +1,858 @@
|
||||
{"version": 2, "width": 240, "height": 82, "timestamp": 1687535780, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}, "title": "Emissary in action"}
|
||||
[1.096253, "o", "Identity added: /home/pcaseiro/.ssh/id_rsa (/home/pcaseiro/.ssh/id_rsa)\r\n"]
|
||||
[1.099418, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
|
||||
[1.214747, "o", "\u001b]0;cadoles/emissary\u0007"]
|
||||
[1.319126, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[J\u001b[m\u001b[1mpcaseiro@numenor\u001b[0m\u001b[1m:~/code/cadoles/emissary\u001b[0m (pts/25 \u001b[4m/bin/zsh 5.9\u001b[24m UltimaThule) \u001b[1m17:56:22 \u001b[0m\u001b[35m(\u001b[39mgit\u001b[35m)\u001b[39m \u001b[35m[\u001b[39m\u001b[32mmaster\u001b[39m\u001b[35m|\u001b[39m\u001b[32m\u001b[39m\u001b[0m\u001b[31m\u001b[39m\u001b[0m\u001b[33m+1\u001b[39m\u001b[0m…3\u001b[32m\u001b[39m\u001b[0m\u001b[33m\u001b[39m\u001b[0m\u001b[35m]\u001b[39m\r\n\u001b[7m!429 Z1 ?0 L3\u001b[27m \u001b[1m~/code/cadoles/emissary →\u001b[0m \u001b[K\u001b[194C 100%\u001b[199D\u001b[?1h\u001b=\u001b[?2004h"]
|
||||
[3.647795, "o", "\u001b[32mt\u001b[39m"]
|
||||
[3.719657, "o", "\b\u001b[1m\u001b[31mt\u001b[1m\u001b[31mm\u001b[0m\u001b[39m"]
|
||||
[3.830544, "o", "\b\b\u001b[1m\u001b[31mt\u001b[1m\u001b[31mm\u001b[1m\u001b[31mu\u001b[0m\u001b[39m"]
|
||||
[4.003306, "o", "\b\b\b\u001b[0m\u001b[32mt\u001b[0m\u001b[32mm\u001b[0m\u001b[32mu\u001b[32mx\u001b[39m\u001b[1m \u001b[0m"]
|
||||
[4.382336, "o", "\b\u001b[0m \b\u001b[?1l\u001b>\u001b[?2004l\u001b[K\r\r\n"]
|
||||
[4.38264, "o", "\u001b]0;tmux\u0007"]
|
||||
[4.39146, "o", "\u001b[?1h\u001b=\u001b[H\u001b[2J\u001b[?12l\u001b[?25h\u001b[?1000l\u001b[?1002l\u001b[?1003l\u001b[?1006l\u001b[?1005l\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[?1006l\u001b[?1000l\u001b[?1002l\u001b[?1003l\u001b[?2004l\u001b[1;1H\u001b[1;82r\u001b[>c\u001b[>q\u001b[1;1H"]
|
||||
[4.391933, "o", "\u001b[?25l\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\u001b[37m\u001b[40m\r\n‘\u001b[32mnumenor’\u001b[37m0:zsh* \"numenor\" 17:56 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[1;1H"]
|
||||
[4.392315, "o", "\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[?1006l\u001b[?1000l\u001b[?1002l\u001b[?1003l\u001b[?2004l\u001b[1;1H\u001b[1;82r\u001b[1;1H\u001b[?7727h\u001b[?7727h"]
|
||||
[4.392677, "o", "\u001b[?25l\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\r\n\u001b[K\u001b[37m\u001b[40m\r\n‘\u001b[32mnumenor’\u001b[37m0:zsh* \"numenor\" 17:56 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[1;1H"]
|
||||
[5.392151, "o", "\u001b[?25l\u001b[120C│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[1;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1"]
|
||||
[5.392363, "o", "K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[1;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[37m\u001b[40m\r\n‘\u001b[32mnumenor’\u001b[37m0:zsh* \"numenor\" 17:56 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[1;122H"]
|
||||
[5.528654, "o", "\u001b[HIdentity added: /home/pcaseiro/.ssh/id_rsa (/home/pcaseiro/.ssh/id_rsa)\u001b[50C"]
|
||||
[5.531563, "o", "\r\n \u001b[1;122H"]
|
||||
[5.749901, "o", "\u001b[1;81r\u001b[3;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[2d\u001b[1K\r\u001b[36mtmux \u001b[39m\u001b[1mpcaseiro@numenor:~/code/cadoles/emissary\u001b(B\u001b[m (pts/26 \u001b[4m-zsh 5.9\u001b(B\u001b[m UltimaThule) \u001b[1m17:56:26 \u001b(B\u001b[m\u001b[35m(\u001b[39mgit\u001b[35m)\u001b[39m \u001b[35m[\u001b[32mmaster\u001b[35m|\u001b[33m+1\u001b[39m…3\u001b[35m]\r\n\u001b[39m\u001b[7m!430 Z1 ?0 L2\u001b(B\u001b[m \u001b[1m~/code/cadoles/emissary →\u001b(B\u001b[m \u001b[74X\u001b[74C 100%\u001b[1X\u001b[1;82r\u001b[1;122H"]
|
||||
[6.471831, "o", "Identity added: /home/pcaseiro/.ssh/id_rsa (/home/pcaseiro/.ssh/id_rsa)\u001b[2;122H"]
|
||||
[6.474732, "o", " \u001b[2;122H"]
|
||||
[6.565444, "o", "\u001b[?25l\u001b[1;121H\u001b[32m│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[39m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[3;41H\u001b[?2004h"]
|
||||
[6.686474, "o", "\u001b[1;81r\u001b[3;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[2d\u001b[K\u001b[36mtmux \u001b[39m\u001b[1mpcaseiro@numenor:~/code/cadoles/emissary\u001b(B\u001b[m (pts/27 \u001b[4m-zsh 5.9\u001b(B\u001b[m UltimaThule) \u001b[1m17:56:27 \u001b(B\u001b[m\u001b[35m(\u001b[39mgit\u001b[35m)\u001b[39m \u001b[35m[\u001b[32mmaster\u001b[35m|\u001b[33m+1\u001b[39m…3\u001b[35m]\u001b[3;122H\u001b[39m\u001b[7m!430 Z1 ?0 L2\u001b(B\u001b[m \u001b[1m~/code/cadoles/emissary →\u001b(B\u001b[m \u001b[73X\u001b[73C 100%\u001b[K\u001b[1;82r\u001b[3;41H"]
|
||||
[7.461303, "o", "\r\nbck-i-search: _\u001b[105X\u001b[3;41H"]
|
||||
[7.748982, "o", "asciinema rec --cols 240 -t \"Emissary in action\" casts/emissary.ca\u001b[4ms\u001b(B\u001b[mt\u001b[4;15Hs_\u001b[3;107H"]
|
||||
[7.900863, "o", "\u001b[8D\u001b[4mss\u001b[6C\u001b(B\u001b[ms\u001b[4;16Hs_\u001b[3;99H"]
|
||||
[8.02899, "o", "\u001b[41G\u001b[4mssh\u001b(B\u001b[m openwrt \u001b[4;17Hh_\u001b[3;41H"]
|
||||
[10.029326, "o", "\u001b[4Cemissary-server\u001b[19D"]
|
||||
[10.55251, "o", "\u001b[32mssh\u001b[39m\u001b[16C\u001b[61X\u001b[4;120H\u001b[1K\r\u001b[?2004l"]
|
||||
[10.903301, "o", "Welcome to Alpine!\u001b[6;1HThe Alpine Wiki contains a large amount of how-to guides and general\r\ninformation about administrating Alpine systems.\r\nSee <https://wiki.alpinelinux.org/>.\u001b[10;1HYou can setup the system with the command: setup-alpine\u001b[12;1HYou may change this message by editing /etc/motd.\u001b[14;1Hemissary:~# "]
|
||||
[11.269977, "o", "\u001b[?25l\u001b[1;121H\u001b[32m│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[39m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[37m\u001b[40m\r\n‘\u001b[32mnumenor’\u001b[37m0:ss"]
|
||||
[11.27011, "o", "h* \"numenor\" 17:56 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[14;13H"]
|
||||
[11.374342, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[3;162H\u001b[?2004h"]
|
||||
[11.734148, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[37m\u001b[40m\r\n‘\u001b[32mnumenor’\u001b[37m0:zsh* "]
|
||||
[11.734179, "o", " \"numenor\" 17:56 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[3;162H"]
|
||||
[11.737856, "o", "\u001b[31m\u001b[1ms\u001b(B\u001b[m"]
|
||||
[11.918625, "o", "\b\u001b[32mss\u001b(B\u001b[m"]
|
||||
[12.1028, "o", "\b\b\u001b[32mssh\u001b(B\u001b[m"]
|
||||
[12.272136, "o", " "]
|
||||
[12.768316, "o", "o"]
|
||||
[12.880351, "o", "p"]
|
||||
[12.999971, "o", "e"]
|
||||
[13.168165, "o", "n"]
|
||||
[13.383201, "o", "w"]
|
||||
[13.551917, "o", "r"]
|
||||
[13.719397, "o", "t"]
|
||||
[14.318327, "o", "\u001b[K\u001b[4;122H\u001b[?2004l"]
|
||||
[14.449636, "o", "\u001b[2BBusyBox v1.35.0 (2023-03-27 07:03:24 UTC) built-in shell (ash)\u001b[8;122H"]
|
||||
[14.451825, "o", " _______ ________ __\u001b[9;122H | |.-----.-----.-----.| | | |.----.| |_\u001b[10;122H | - || _ | -__| || | | || _|| _|\u001b[11;122H |_______|| __|_____|__|__||________||__| |____|\u001b[12;122H |__| W I R E L E S S F R E E D O M\u001b[13;122H -----------------------------------------------------\u001b[14;122H OpenWrt 22.03.2, r19803-9a599fee93\u001b[15;122H -----------------------------------------------------\u001b[16;122H"]
|
||||
[14.463042, "o", "=== WARNING! =====================================\u001b[17;122HThere is no root password defined on this device!\u001b[18;122HUse the \"passwd\" command to set up a new password\u001b[19;122Hin order to prevent unauthorized SSH logins.\u001b[20;122H--------------------------------------------------\u001b[21;122H"]
|
||||
[14.463903, "o", "root@OpenWrt:~# "]
|
||||
[14.791692, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[37m\u001b[40m\r\n‘\u001b[32mnumenor’\u001b[37m0:ssh* "]
|
||||
[14.791733, "o", " \"numenor\" 17:56 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[21;138H"]
|
||||
[15.6169, "o", "\u001b[1;81r\u001b[2;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[1d\u001b[Kroot@OpenWrt:~# \u001b[2;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[1;138H\u001b[K\u001b[1;82r\u001b[1;138H"]
|
||||
[16.197477, "o", "\u001b[?25l\u001b[17D\u001b[32m│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[39m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[14;13H"]
|
||||
[16.712675, "o", "\u001b[1;81r\u001b[2;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[1d\u001b[1K\u001b[Hemissary:~# \u001b[2;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[1;13H\u001b[108X\u001b[1;82r\u001b[1;13H"]
|
||||
[20.46497, "o", "e"]
|
||||
[20.64927, "o", "c"]
|
||||
[20.760832, "o", "h"]
|
||||
[20.840642, "o", "o"]
|
||||
[20.944446, "o", " "]
|
||||
[21.05675, "o", "\""]
|
||||
[21.409471, "o", "T"]
|
||||
[21.536293, "o", "h"]
|
||||
[21.62476, "o", "e"]
|
||||
[21.776569, "o", " "]
|
||||
[21.88008, "o", "s"]
|
||||
[21.9763, "o", "e"]
|
||||
[22.048532, "o", "r"]
|
||||
[22.200914, "o", "v"]
|
||||
[22.272281, "o", "e"]
|
||||
[22.384782, "o", "r"]
|
||||
[22.584381, "o", "\""]
|
||||
[24.224157, "o", "\r\nThe server\r\nemissary:~# "]
|
||||
[24.97398, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[1;138H"]
|
||||
[25.66414, "o", "e"]
|
||||
[25.863716, "o", "c"]
|
||||
[25.94348, "o", "h"]
|
||||
[26.04007, "o", "o"]
|
||||
[26.127871, "o", " "]
|
||||
[26.512402, "o", "\""]
|
||||
[26.808562, "o", "T"]
|
||||
[26.992072, "o", "h"]
|
||||
[27.079539, "o", "e"]
|
||||
[27.464842, "o", " "]
|
||||
[27.560029, "o", "c"]
|
||||
[27.639923, "o", "l"]
|
||||
[27.767737, "o", "i"]
|
||||
[27.800173, "o", "e"]
|
||||
[28.456016, "o", "n"]
|
||||
[28.567718, "o", "t"]
|
||||
[28.752508, "o", "\""]
|
||||
[29.056597, "o", "\u001b[2;122HThe client\u001b[3;122Hroot@OpenWrt:~# "]
|
||||
[29.878218, "o", "\u001b[?25l\u001b[1;121H\u001b[32m│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[39m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[3;13H"]
|
||||
[34.220106, "o", "emissary api agent query\r\n"]
|
||||
[34.239871, "o", "+----+-------+------------+--------+-------------+-----------+\r\n| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT |\r\n+----+-------+------------+--------+-------------+-----------+\r\n+----+-------+------------+--------+-------------+-----------+\r\n"]
|
||||
[34.240119, "o", "emissary:~# "]
|
||||
[41.285104, "o", "\u001b[?25l\u001b[37m\u001b[40m\u001b[82;1H‘\u001b[32mnumenor’\u001b[37m0:ssh* \"numenor\" 17:57 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[8;13H"]
|
||||
[41.430426, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[3;138H"]
|
||||
[41.847638, "o", "u"]
|
||||
[42.008691, "o", "c"]
|
||||
[42.128767, "o", "i"]
|
||||
[42.265178, "o", "\u001b[19Droot@OpenWrt:~# uci \u001b[1;81r\u001b[4;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[3;142H\u001b[K\u001b[1;82r\u001b[3;142H"]
|
||||
[43.528431, "o", "s"]
|
||||
[43.624275, "o", "e"]
|
||||
[43.704262, "o", "t"]
|
||||
[43.832626, "o", " "]
|
||||
[44.064036, "o", "e"]
|
||||
[44.184356, "o", "m"]
|
||||
[44.344144, "o", "i"]
|
||||
[44.488508, "o", "s"]
|
||||
[44.671926, "o", "s"]
|
||||
[44.856414, "o", "a"]
|
||||
[45.008191, "o", "r"]
|
||||
[45.152474, "o", "y"]
|
||||
[46.496924, "o", "."]
|
||||
[46.760587, "o", "a"]
|
||||
[46.896795, "o", "g"]
|
||||
[46.984154, "o", "e"]
|
||||
[47.064542, "o", "n"]
|
||||
[47.192499, "o", "t"]
|
||||
[47.376814, "o", "."]
|
||||
[47.520459, "o", "s"]
|
||||
[47.616461, "o", "e"]
|
||||
[47.696447, "o", "r"]
|
||||
[47.856801, "o", "v"]
|
||||
[47.927634, "o", "e"]
|
||||
[48.056252, "o", "r"]
|
||||
[48.720662, "o", "."]
|
||||
[49.569159, "o", "\u001b[1;81r\u001b[4;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[3;167H\u001b[K\u001b[1;82r\u001b[3;167H"]
|
||||
[49.768382, "o", "_"]
|
||||
[50.023726, "o", "u"]
|
||||
[50.142999, "o", "r"]
|
||||
[50.223839, "o", "l"]
|
||||
[50.520493, "o", "="]
|
||||
[50.88052, "o", "\""]
|
||||
[51.232583, "o", "h"]
|
||||
[51.32012, "o", "t"]
|
||||
[51.472428, "o", "t"]
|
||||
[51.568167, "o", "p"]
|
||||
[51.784203, "o", ":"]
|
||||
[52.007861, "o", "/"]
|
||||
[52.832643, "o", "/"]
|
||||
[53.504824, "o", "1"]
|
||||
[53.71259, "o", "9"]
|
||||
[53.800503, "o", "2"]
|
||||
[53.952258, "o", "."]
|
||||
[54.056515, "o", "1"]
|
||||
[54.760124, "o", "6"]
|
||||
[54.95909, "o", "8"]
|
||||
[55.199962, "o", "."]
|
||||
[56.128917, "o", "3"]
|
||||
[56.232664, "o", "0"]
|
||||
[56.448551, "o", "."]
|
||||
[56.648562, "o", "2"]
|
||||
[56.839948, "o", "0"]
|
||||
[56.968233, "o", "0"]
|
||||
[57.184279, "o", ":"]
|
||||
[58.167802, "o", "3"]
|
||||
[58.416307, "o", "0"]
|
||||
[58.559587, "o", "0"]
|
||||
[58.695934, "o", "0"]
|
||||
[58.88815, "o", "\""]
|
||||
[60.416273, "o", "\u001b[4;122H"]
|
||||
[60.418825, "o", "root@OpenWrt:~# "]
|
||||
[65.007294, "o", "u"]
|
||||
[65.15203, "o", "c"]
|
||||
[65.247617, "o", "i"]
|
||||
[65.376629, "o", " "]
|
||||
[65.520236, "o", "c"]
|
||||
[65.576313, "o", "o"]
|
||||
[65.632476, "o", "m"]
|
||||
[65.783985, "o", "m"]
|
||||
[65.87259, "o", "i"]
|
||||
[65.95938, "o", "t"]
|
||||
[66.432359, "o", "\u001b[5;122H"]
|
||||
[66.477194, "o", "root@OpenWrt:~# "]
|
||||
[67.992659, "o", "r"]
|
||||
[68.047986, "o", "e"]
|
||||
[68.184009, "o", "l"]
|
||||
[68.352416, "o", "o"]
|
||||
[68.375924, "o", "a"]
|
||||
[68.488309, "o", "d"]
|
||||
[68.648621, "o", "_"]
|
||||
[68.824006, "o", "c"]
|
||||
[68.903873, "o", "o"]
|
||||
[68.951758, "o", "n"]
|
||||
[69.023743, "o", "f"]
|
||||
[69.14403, "o", "i"]
|
||||
[69.24805, "o", "g"]
|
||||
[69.640712, "o", "\u001b[6;122H"]
|
||||
[69.674411, "o", "root@OpenWrt:~# "]
|
||||
[71.305363, "o", "l"]
|
||||
[71.472546, "o", "o"]
|
||||
[72.031131, "o", "g"]
|
||||
[72.312714, "o", "r"]
|
||||
[72.512058, "o", "e"]
|
||||
[72.873856, "o", "\u001b[21Droot@OpenWrt:~# logread \u001b[1;81r\u001b[7;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[6;146H\u001b[K\u001b[1;82r\u001b[6;146H"]
|
||||
[73.375291, "o", "f"]
|
||||
[73.752486, "o", "\u001b[1;81r\u001b[7;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[6;146H\u001b[K\u001b[1;82r\u001b[6;146H"]
|
||||
[73.959425, "o", "-"]
|
||||
[74.055612, "o", "f"]
|
||||
[74.519013, "o", "\u001b[7;122H"]
|
||||
[76.806035, "o", "\u001b[?25l\u001b[1;121H\u001b[32m│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[39m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[8;13H"]
|
||||
[78.441454, "o", "\remissary:~# emissary api agent query\u001b[1;81r\u001b[9;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[8;37H\u001b[84X\u001b[1;82r\u001b[8;37H"]
|
||||
[79.408341, "o", "\r\n"]
|
||||
[79.423951, "o", "+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\r\n----------+\r\n| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT \r\n |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\r\n----------+\r\n| 1 | | 23ZQ4yoK869AFHJ6ryA8EpnAz8ZESr... | 0 | 2023-06-23 15:57:32.068805967 ... | \"2023-06-23T15:57:31.807\r\n03548Z... |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\r\n----------+\r\n"]
|
||||
[79.424215, "o", "emissary:~# "]
|
||||
[83.713006, "o", "\r(reverse-i-search)'': \u001b[1;81r\u001b[20;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[19;23H\u001b[98X\u001b[1;82r\u001b[19;23H"]
|
||||
[90.209796, "o", "\r(reverse-i-search)'e': emissary api agent query\u001b[1;81r\u001b[20;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[19;48H\u001b[73X\u001b[1;82r\u001b[19;24H"]
|
||||
[90.457633, "o", "\r(reverse-i-search)'em': emissary api agent query\u001b[1;81r\u001b[20;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[19;49H\u001b[72X\u001b[1;82r\u001b[19;25H"]
|
||||
[91.032749, "o", "\remissary:~# emissary api agent query\u001b[1;81r\u001b[20;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[19;37H\u001b[84X\u001b[13G^C\u001b[21;1Hemissary:~# \u001b[1;82r\u001b[21;13H"]
|
||||
[91.568147, "o", "e"]
|
||||
[91.688802, "o", "m"]
|
||||
[91.792506, "o", "i"]
|
||||
[91.88046, "o", "s"]
|
||||
[92.048302, "o", "s"]
|
||||
[92.169954, "o", "\remissary:~# emissary \u001b[1;81r\u001b[22;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[21;22H\u001b[99X\u001b[1;82r\u001b[21;22H"]
|
||||
[93.128744, "o", "a"]
|
||||
[93.280615, "o", "p"]
|
||||
[93.391802, "o", "i"]
|
||||
[93.7609, "o", "\u001b[1;81r\u001b[22;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[21;24H\u001b[97X\u001b[1;82r\u001b[21;24H"]
|
||||
[94.07231, "o", "\u001b[1;81r\u001b[22;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[21;23H\u001b[98X\u001b[1;82r\u001b[21;23H"]
|
||||
[94.728386, "o", "p"]
|
||||
[94.871923, "o", "i"]
|
||||
[95.014665, "o", " "]
|
||||
[95.199348, "o", "a"]
|
||||
[95.352379, "o", "g"]
|
||||
[95.424111, "o", "e"]
|
||||
[95.519963, "o", "n"]
|
||||
[95.624473, "o", "t"]
|
||||
[95.808593, "o", " "]
|
||||
[95.975659, "o", "u"]
|
||||
[96.072053, "o", "p"]
|
||||
[96.119892, "o", "d"]
|
||||
[96.160294, "o", "a"]
|
||||
[96.255722, "o", "t"]
|
||||
[96.3603, "o", "e"]
|
||||
[99.497311, "o", " "]
|
||||
[99.920521, "o", "-"]
|
||||
[100.079886, "o", "-"]
|
||||
[100.448167, "o", "a"]
|
||||
[100.6005, "o", "g"]
|
||||
[100.68773, "o", "e"]
|
||||
[100.768361, "o", "n"]
|
||||
[100.855628, "o", "t"]
|
||||
[101.112387, "o", "-"]
|
||||
[101.248498, "o", "i"]
|
||||
[101.367919, "o", "d"]
|
||||
[101.488491, "o", " "]
|
||||
[102.008363, "o", "1"]
|
||||
[102.616774, "o", " "]
|
||||
[103.080221, "o", "-"]
|
||||
[103.224243, "o", "-"]
|
||||
[103.368202, "o", "s"]
|
||||
[103.448563, "o", "t"]
|
||||
[103.512568, "o", "a"]
|
||||
[103.60873, "o", "t"]
|
||||
[103.688521, "o", "u"]
|
||||
[103.808492, "o", "s"]
|
||||
[103.872428, "o", " "]
|
||||
[104.120393, "o", "1"]
|
||||
[104.449135, "o", "\r\n"]
|
||||
[104.749948, "o", "+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\r\n----------+\r\n| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT \r\n |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\r\n----------+\r\n| 1 | | 23ZQ4yoK869AFHJ6ryA8EpnAz8ZESr... | 1 | 2023-06-23 15:57:32.068805967 ... | \"2023-06-23T15:58:05.165\r\n446799... |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\r\n----------+\r\n"]
|
||||
[104.751768, "o", "emissary:~# "]
|
||||
[109.395515, "o", "\u001b[?25l\u001b[37m\u001b[40m\u001b[82;1H‘\u001b[32mnumenor’\u001b[37m0:ssh* \"numenor\" 17:58 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[32;13H"]
|
||||
[117.160555, "o", "c"]
|
||||
[117.248149, "o", "a"]
|
||||
[117.360084, "o", "t"]
|
||||
[117.656612, "o", " "]
|
||||
[117.800299, "o", "c"]
|
||||
[117.880754, "o", "o"]
|
||||
[117.936245, "o", "n"]
|
||||
[118.008473, "o", "f"]
|
||||
[118.096709, "o", "\remissary:~# cat config/\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;24H\u001b[97X\u001b[1;82r\u001b[32;24H"]
|
||||
[119.464482, "o", "m"]
|
||||
[119.64143, "o", "y"]
|
||||
[119.784378, "o", "\remissary:~# cat config/my-\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;27H\u001b[94X\u0007\u001b[1;82r\u001b[32;27H"]
|
||||
[120.632281, "o", "u"]
|
||||
[120.721236, "o", "\remissary:~# cat config/my-uci-spec.json \u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;41H\u001b[80X\u001b[1;82r\u001b[32;41H"]
|
||||
[123.304407, "o", "|"]
|
||||
[123.74422, "o", " "]
|
||||
[124.128128, "o", "e"]
|
||||
[124.263941, "o", "m"]
|
||||
[124.424373, "o", "s"]
|
||||
[124.680564, "o", "s"]
|
||||
[124.882004, "o", "\u0007"]
|
||||
[125.279809, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;46H\u001b[75X\u001b[1;82r\u001b[32;46H"]
|
||||
[125.40824, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;45H\u001b[76X\u001b[1;82r\u001b[32;45H"]
|
||||
[125.584136, "o", "i"]
|
||||
[125.67197, "o", "s"]
|
||||
[125.801892, "o", "\remissary:~# cat config/my-uci-spec.json | emissary \u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;52H\u001b[69X\u001b[1;82r\u001b[32;52H"]
|
||||
[127.264396, "o", "a"]
|
||||
[127.368578, "o", "p"]
|
||||
[127.496614, "o", "i"]
|
||||
[127.640492, "o", " "]
|
||||
[127.784315, "o", "a"]
|
||||
[127.967952, "o", "g"]
|
||||
[128.080574, "o", "e"]
|
||||
[128.192217, "o", "n"]
|
||||
[128.336294, "o", "t"]
|
||||
[129.383797, "o", " "]
|
||||
[129.928473, "o", "s"]
|
||||
[130.046847, "o", "p"]
|
||||
[130.128637, "o", "e"]
|
||||
[130.31167, "o", "c"]
|
||||
[130.391636, "o", " "]
|
||||
[130.504311, "o", "u"]
|
||||
[130.599886, "o", "p"]
|
||||
[130.664288, "o", "d"]
|
||||
[130.704209, "o", "a"]
|
||||
[130.800609, "o", "t"]
|
||||
[130.904428, "o", "e"]
|
||||
[130.944592, "o", " "]
|
||||
[131.152072, "o", "-"]
|
||||
[131.271984, "o", "a"]
|
||||
[131.378654, "o", "\u001b[7;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.225 [INFO]\u001b[5C<./internal/agent/controller/pe\u001b[8;122Hrsistence/controller.go:58>\u001b[5C(*Controller).Reconcile\u001b[Cno changes detected, doing nothing\u001b[6C{\"controller\": \"persist\u001b[9;122Hence-controller\"}\u001b[32;76H"]
|
||||
[131.809911, "o", "\u001b[10;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5C<./internal/agent/controller/pr\u001b[11;122Hoxy/controller.go:35>\u001b[3C(*Controller).Reconcile\u001b[Ccould not find proxy spec\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[12;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5C<./internal/agent/controller/op\u001b[13;122Henwrt/uci_controller.go:32>\u001b[5C(*UCIController).Reconcile\u001b[6Ccould not find uci spec, doing nothing\u001b[2C{\"controller\": \u001b[14;122H\"uci-controller\"}\u001b[15;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5C<./internal/agent/controller/ap\u001b[16;122Hp/controller.go:42>\u001b[5C(*Controller).Reconcile\u001b[Ccould not find app spec\u001b[C{\"controller\": \"app-controller\"}\u001b[17;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5C<./internal/agent/controller/op\u001b[18;122Henwrt/sysupgrade_controller.go:36>\u001b[6C(*SysUpgradeController).Reconcile\u001b[7Ccould not find sysupgrade spec, doing n\u001b"]
|
||||
[131.810072, "o", "[19;122Hothing\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[32;76H"]
|
||||
[131.86396, "o", " "]
|
||||
[132.592293, "o", "1"]
|
||||
[134.37625, "o", " "]
|
||||
[134.672641, "o", "-"]
|
||||
[134.831325, "o", "-"]
|
||||
[135.512804, "o", "n"]
|
||||
[135.680765, "o", "o"]
|
||||
[135.895838, "o", "-"]
|
||||
[136.088186, "o", "p"]
|
||||
[136.183895, "o", "a"]
|
||||
[136.264002, "o", "t"]
|
||||
[136.688423, "o", "c"]
|
||||
[136.800043, "o", "h"]
|
||||
[137.368326, "o", " "]
|
||||
[138.096691, "o", "-"]
|
||||
[138.248192, "o", "-"]
|
||||
[138.376434, "o", "p"]
|
||||
[138.480395, "o", "s"]
|
||||
[138.576492, "o", "e"]
|
||||
[138.992883, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;94H\u001b[27X\u001b[1;82r\u001b[32;94H"]
|
||||
[139.152606, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;93H\u001b[28X\u001b[1;82r\u001b[32;93H"]
|
||||
[139.632082, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;92H\u001b[29X\u001b[1;82r\u001b[32;92H"]
|
||||
[139.768562, "o", "s"]
|
||||
[139.864029, "o", "p"]
|
||||
[139.968671, "o", "e"]
|
||||
[140.192028, "o", "c"]
|
||||
[141.313515, "o", "-"]
|
||||
[141.544495, "o", "d"]
|
||||
[141.616185, "o", "a"]
|
||||
[141.712432, "o", "t"]
|
||||
[141.80823, "o", "a"]
|
||||
[148.097053, "o", " "]
|
||||
[149.008624, "o", "-"]
|
||||
[149.217313, "o", " "]
|
||||
[149.744995, "o", "-"]
|
||||
[149.872177, "o", "-"]
|
||||
[150.008948, "o", "p"]
|
||||
[150.127181, "o", "s"]
|
||||
[150.521487, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;107H\u001b[14X\u001b[1;82r\u001b[32;107H"]
|
||||
[150.74489, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;106H\u001b[15X\u001b[1;82r\u001b[32;106H"]
|
||||
[150.936482, "o", "s"]
|
||||
[151.368788, "o", "p"]
|
||||
[151.472664, "o", "e"]
|
||||
[151.648574, "o", "c"]
|
||||
[153.10513, "o", " "]
|
||||
[153.497267, "o", "\u001b[1;81r\u001b[33;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[32;110H\u001b[11X\u001b[1;82r\u001b[32;110H"]
|
||||
[153.728312, "o", "-"]
|
||||
[153.928423, "o", "n"]
|
||||
[154.032525, "o", "a"]
|
||||
[154.13689, "o", "m"]
|
||||
[154.256425, "o", "e"]
|
||||
[154.383972, "o", " "]
|
||||
[154.975936, "o", "u"]
|
||||
[155.192467, "o", "c"]
|
||||
[155.272635, "o", "i"]
|
||||
[155.60074, "o", "."]
|
||||
[157.335898, "o", "e\r\n"]
|
||||
[157.432746, "o", "m"]
|
||||
[157.55987, "o", "i"]
|
||||
[157.688586, "o", "s"]
|
||||
[157.848415, "o", "s"]
|
||||
[157.904094, "o", "a"]
|
||||
[158.064258, "o", "r"]
|
||||
[158.168433, "o", "y"]
|
||||
[158.448669, "o", "."]
|
||||
[158.592486, "o", "c"]
|
||||
[158.66391, "o", "a"]
|
||||
[158.776459, "o", "d"]
|
||||
[158.872514, "o", "o"]
|
||||
[159.016117, "o", "l"]
|
||||
[159.088205, "o", "e"]
|
||||
[159.160836, "o", "s"]
|
||||
[159.29661, "o", "."]
|
||||
[159.384514, "o", "c"]
|
||||
[159.520686, "o", "o"]
|
||||
[159.5924, "o", "m"]
|
||||
[160.217903, "o", "\r\n"]
|
||||
[160.491787, "o", "+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n| ID | NAME | DATA | REVISION | CREATEDAT | UPD\r\nATEDAT |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n| 1 | uci.emissary.cadoles.com | {\"config\":{\"packages\":[{\"confi... | 0 | \"2023-06-23T15:59:00.937205005... | \"20\r\n23-06-23T15:59:00.937205005... |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n"]
|
||||
[160.492898, "o", "emissary:~# "]
|
||||
[167.752531, "o", "c"]
|
||||
[167.824121, "o", "a"]
|
||||
[167.936812, "o", "t"]
|
||||
[168.120152, "o", " "]
|
||||
[168.248404, "o", "c"]
|
||||
[168.328154, "o", "o"]
|
||||
[168.38465, "o", "n"]
|
||||
[168.456121, "o", "f"]
|
||||
[168.544836, "o", "\remissary:~# cat config/\u001b[1;81r\u001b[45;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[44;24H\u001b[97X\u001b[1;82r\u001b[44;24H"]
|
||||
[169.398711, "o", "\u001b[?25l\u001b[37m\u001b[40m\u001b[82;1H‘\u001b[32mnumenor’\u001b[37m0:ssh* \"numenor\" 17:59 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[44;24H"]
|
||||
[170.048353, "o", "a"]
|
||||
[170.143951, "o", "p"]
|
||||
[170.31291, "o", "p"]
|
||||
[170.50528, "o", "\remissary:~# cat config/app.emissary.cadoles.com.json \u001b[1;81r\u001b[45;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[44;54H\u001b[67X\u001b[1;82r\u001b[44;54H"]
|
||||
[172.896918, "o", "|"]
|
||||
[173.184616, "o", " "]
|
||||
[173.512251, "o", "e"]
|
||||
[173.632645, "o", "m"]
|
||||
[173.992759, "o", "i"]
|
||||
[174.080153, "o", "s"]
|
||||
[174.248666, "o", "s"]
|
||||
[174.354212, "o", "\remissary:~# cat config/app.emissary.cadoles.com.json | emissary \u001b[1;81r\u001b[45;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[44;65H\u001b[56X\u001b[1;82r\u001b[44;65H"]
|
||||
[175.856833, "o", "a"]
|
||||
[175.944762, "o", "p"]
|
||||
[176.072667, "o", "i"]
|
||||
[176.176415, "o", " "]
|
||||
[176.280326, "o", "a"]
|
||||
[176.416098, "o", "g"]
|
||||
[176.504283, "o", "e"]
|
||||
[176.600052, "o", "n"]
|
||||
[177.056578, "o", "t"]
|
||||
[177.160676, "o", " "]
|
||||
[178.336251, "o", "s"]
|
||||
[178.440892, "o", "p"]
|
||||
[178.560014, "o", "e"]
|
||||
[178.928922, "o", "c"]
|
||||
[179.792395, "o", " "]
|
||||
[180.78425, "o", "u"]
|
||||
[180.896636, "o", "p"]
|
||||
[180.944444, "o", "d"]
|
||||
[181.000584, "o", "a"]
|
||||
[181.120239, "o", "t"]
|
||||
[181.184768, "o", "e"]
|
||||
[181.240728, "o", " "]
|
||||
[181.368838, "o", "-"]
|
||||
[181.496538, "o", "a"]
|
||||
[181.633077, "o", " "]
|
||||
[181.992822, "o", "1"]
|
||||
[182.272325, "o", " "]
|
||||
[183.752904, "o", "-"]
|
||||
[183.920789, "o", "-"]
|
||||
[184.560267, "o", "n"]
|
||||
[184.695618, "o", "o"]
|
||||
[184.895732, "o", "-"]
|
||||
[185.064886, "o", "p"]
|
||||
[185.144271, "o", "a"]
|
||||
[185.224775, "o", "t"]
|
||||
[185.625037, "o", "c"]
|
||||
[185.777507, "o", "h"]
|
||||
[186.200872, "o", " "]
|
||||
[186.824121, "o", "-"]
|
||||
[186.952816, "o", "-"]
|
||||
[187.112502, "o", "s"]
|
||||
[187.232069, "o", "p"]
|
||||
[187.992605, "o", "e"]
|
||||
[188.17644, "o", "c"]
|
||||
[188.384273, "o", "-"]
|
||||
[188.488801, "o", "d"]
|
||||
[188.616825, "o", "a"]
|
||||
[188.656927, "o", "t"]
|
||||
[188.784603, "o", "a"]
|
||||
[191.372274, "o", "\u001b[20;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5C<./internal/agent/controller/pe\u001b[21;122Hrsistence/controller.go:58>\u001b[5C(*Controller).Reconcile\u001b[Cno changes detected, doing nothing\u001b[6C{\"controller\": \"persist\u001b[22;122Hence-controller\"}\u001b[44;114H"]
|
||||
[191.624997, "o", " "]
|
||||
[191.752374, "o", "\u001b[23;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5C<./internal/agent/controller/pr\u001b[24;122Hoxy/controller.go:35>\u001b[3C(*Controller).Reconcile\u001b[Ccould not find proxy spec\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[44;115H"]
|
||||
[191.757907, "o", "\u001b[25;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5C<./internal/agent/controller/op\u001b[26;122Henwrt/uci_controller.go:40>\u001b[5C(*UCIController).Reconcile\u001b[6Cretrieved spec\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[27;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[44;115H"]
|
||||
[191.758357, "o", "\u001b[28;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5C<./internal/agent/controller/op\u001b[29;122Henwrt/uci_controller.go:61>\u001b[5C(*UCIController).updateConfiguration\u001b[4Cimporting uci config\u001b[4C{\"controller\": \"uci-con\u001b[30;122Htroller\"}\u001b[44;115H"]
|
||||
[191.936718, "o", "-"]
|
||||
[192.119847, "o", " "]
|
||||
[192.279354, "o", "\u001b[31;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5C<./internal/agent/controller/op\u001b[32;122Henwrt/uci_controller.go:55>\u001b[5C(*UCIController).Reconcile\u001b[6Cupdating current spec revision\u001b[2C{\"controller\": \"uci-con\u001b[33;122Htroller\", \"revision\": 0}\u001b[34;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5C<./internal/agent/controller/ap\u001b[35;122Hp/controller.go:42>\u001b[5C(*Controller).Reconcile\u001b[Ccould not find app spec\u001b[C{\"controller\": \"app-controller\"}\u001b[36;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5C<./internal/agent/controller/op\u001b[37;122Henwrt/sysupgrade_controller.go:36>\u001b[6C(*SysUpgradeController).Reconcile\u001b[7Ccould not find sysupgrade spec, doing n\u001b[38;122Hothing\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[44;117H"]
|
||||
[192.617006, "o", "-"]
|
||||
[192.744737, "o", "-"]
|
||||
[193.360547, "o", "s"]
|
||||
[193.464729, "o", "p\r\n"]
|
||||
[193.482541, "o", "\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[45;1H"]
|
||||
[193.53542, "o", "\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[43;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locall"]
|
||||
[193.535452, "o", "y-known addresses for invalid\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[45;1H\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[56;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[57;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[58;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[59;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-know"]
|
||||
[193.535471, "o", "n addresses for bind\u001b[45;1H\u001b[60;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[61;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[62;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[45;1H"]
|
||||
[193.568717, "o", "e"]
|
||||
[193.694113, "o", "\u001b[63;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[64;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[45;2H"]
|
||||
[193.752914, "o", "c"]
|
||||
[199.320776, "o", "-"]
|
||||
[199.537004, "o", "n"]
|
||||
[199.648409, "o", "a"]
|
||||
[199.744294, "o", "m"]
|
||||
[199.848727, "o", "e"]
|
||||
[201.264275, "o", " "]
|
||||
[201.440715, "o", "a"]
|
||||
[201.576086, "o", "p"]
|
||||
[201.72881, "o", "p"]
|
||||
[202.04052, "o", "."]
|
||||
[202.328931, "o", "e"]
|
||||
[202.496948, "o", "m"]
|
||||
[202.809086, "o", "i"]
|
||||
[203.025228, "o", "s"]
|
||||
[203.193087, "o", "s"]
|
||||
[203.833397, "o", "a"]
|
||||
[203.977048, "o", "r"]
|
||||
[204.169049, "o", "y"]
|
||||
[204.465105, "o", "."]
|
||||
[204.608648, "o", "c"]
|
||||
[204.657042, "o", "a"]
|
||||
[204.809386, "o", "d"]
|
||||
[204.90468, "o", "o"]
|
||||
[205.056543, "o", "l"]
|
||||
[205.104671, "o", "e"]
|
||||
[205.192272, "o", "s"]
|
||||
[205.328423, "o", "."]
|
||||
[205.415944, "o", "c"]
|
||||
[205.56821, "o", "o"]
|
||||
[205.62499, "o", "m"]
|
||||
[209.419737, "o", "\r\n"]
|
||||
[209.738094, "o", "+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n| ID | NAME | DATA | REVISION | CREATEDAT | UPD\r\nATEDAT |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n| 2 | app.emissary.cadoles.com | {\"apps\":{\"app.arcad.edge.hextr... | 0 | \"2023-06-23T15:59:50.133065468... | \"20\r\n23-06-23T15:59:50.133065468... |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n"]
|
||||
[209.739666, "o", "emissary:~# "]
|
||||
[217.662358, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[16A"]
|
||||
[226.097445, "o", "\n"]
|
||||
[226.761446, "o", "\n"]
|
||||
[227.264713, "o", "^C"]
|
||||
[227.265531, "o", "root@ArcadAgent:~# "]
|
||||
[227.464954, "o", "^C\u001b[68;122Hroot@ArcadAgent:~# "]
|
||||
[229.40574, "o", "\u001b[?25l\u001b[37m\u001b[40m\u001b[82;1H‘\u001b[32mnumenor’\u001b[37m0:ssh* \"numenor\" 18:00 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[68;141H"]
|
||||
[230.560042, "o", "e"]
|
||||
[230.744966, "o", "c"]
|
||||
[230.857095, "o", "h"]
|
||||
[230.952641, "o", "o"]
|
||||
[231.056796, "o", " "]
|
||||
[231.290282, "o", "$"]
|
||||
[231.592817, "o", "H"]
|
||||
[231.704742, "o", "O"]
|
||||
[232.080914, "o", "\u001b[1;81r\u001b[69;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[68;148H\u001b[K\u001b[1;82r\u001b[68;148H"]
|
||||
[232.224793, "o", "\u001b[1;81r\u001b[69;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[68;147H\u001b[K\u001b[1;82r\u001b[68;147H"]
|
||||
[232.377174, "o", "\u001b[1;81r\u001b[69;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[68;146H\u001b[K\u001b[1;82r\u001b[68;146H"]
|
||||
[232.537685, "o", "\u001b[1;81r\u001b[69;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[68;145H\u001b[K\u001b[1;82r\u001b[68;145H"]
|
||||
[233.025066, "o", " "]
|
||||
[233.152175, "o", "\""]
|
||||
[233.472597, "o", "M"]
|
||||
[233.632988, "o", "y"]
|
||||
[233.728784, "o", " "]
|
||||
[234.112825, "o", "h"]
|
||||
[234.248615, "o", "o"]
|
||||
[234.328623, "o", "s"]
|
||||
[234.425096, "o", "t"]
|
||||
[234.496488, "o", "n"]
|
||||
[234.62482, "o", "a"]
|
||||
[234.720164, "o", "m"]
|
||||
[234.848289, "o", "e"]
|
||||
[234.960521, "o", " "]
|
||||
[235.128432, "o", "i"]
|
||||
[235.191759, "o", "s"]
|
||||
[235.287951, "o", " "]
|
||||
[235.400033, "o", "n"]
|
||||
[235.536368, "o", "o"]
|
||||
[235.632548, "o", "w"]
|
||||
[235.808347, "o", " "]
|
||||
[236.496617, "o", "\""]
|
||||
[236.993007, "o", "A"]
|
||||
[237.936908, "o", "\u001b[1;81r\u001b[69;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[68;167H\u001b[K\u001b[1;82r\u001b[68;167H"]
|
||||
[238.864878, "o", "A"]
|
||||
[239.288996, "o", "r"]
|
||||
[239.488633, "o", "c"]
|
||||
[239.616511, "o", "a"]
|
||||
[239.744604, "o", "d"]
|
||||
[240.079979, "o", "e"]
|
||||
[241.344966, "o", "A"]
|
||||
[241.568869, "o", "g"]
|
||||
[241.616463, "o", "e"]
|
||||
[241.776587, "o", "n"]
|
||||
[241.880659, "o", "t"]
|
||||
[242.13686, "o", "\""]
|
||||
[243.712726, "o", "\""]
|
||||
[244.176404, "o", "\u001b[69;122HMy hostname is now ArcadeAgent\u001b[70;122Hroot@ArcadAgent:~# "]
|
||||
[254.221043, "o", "netstat -tlnup"]
|
||||
[255.105911, "o", "\u001b[71;122H"]
|
||||
[255.12124, "o", "Active Internet connections (only servers)\u001b[72;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[73;122H"]
|
||||
[255.121572, "o", "tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[74;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[75;122H"]
|
||||
[255.121909, "o", "tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[76;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[77;122H"]
|
||||
[255.122264, "o", "tcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[78;122H"]
|
||||
[255.122781, "o", "tcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[79;122H"]
|
||||
[255.123088, "o", "tcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[80;122H"]
|
||||
[255.123334, "o", "tcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[81;122H"]
|
||||
[255.123777, "o", "\u001b[?25l\u001b[1dThe client\u001b[K\u001b[2;122Hroot@OpenWrt:~# uci set emissary.agent.server_url=\"http://192.168.30.200:3000\"\u001b[K\u001b[3;122Hroot@OpenWrt:~# uci commit\u001b[K\u001b[4;122Hroot@OpenWrt:~# reload_config\u001b[K\u001b[5;122Hroot@OpenWrt:~# logread -f\u001b[K\u001b[6;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.225 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[7;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[8;122Hence-controller\"}\u001b[K\u001b[9;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[10;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[11;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[12;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, "]
|
||||
[255.123796, "o", "doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[13;122H\"uci-controller\"}\u001b[K\u001b[14;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[15;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[16;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[17;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[18;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[19;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[20;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[21;122Hence-controller\"}\u001b[K\u001b[22;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-2"]
|
||||
[255.123939, "o", "3 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[23;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[24;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[25;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[26;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[27;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[28;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[29;122Htroller\"}\u001b[K\u001b[30;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[31;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6C"]
|
||||
[255.123955, "o", "updating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[32;122Htroller\", \"revision\": 0}\u001b[K\u001b[33;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[34;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[35;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[36;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[37;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1"]
|
||||
[255.124085, "o", "]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[42;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addre"]
|
||||
[255.124181, "o", "sses for lan\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[56;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[57;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[58;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[59;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[60;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts -"]
|
||||
[255.124204, "o", " 4 addresses\u001b[K\u001b[61;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[62;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[63;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[64;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[67;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[68;122HMy hostname is now ArcadeAgent\u001b[K\u001b[69;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[70;122HActive Internet connections (only servers)\u001b[K\u001b[71;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[72;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[73;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[74;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[75;122Htcp 0 0 0"]
|
||||
[255.124358, "o", ".0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[76;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[77;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[78;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[79;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[80;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h\u001b[?25l\u001b[1droot@OpenWrt:~# uci set emissary.agent.server_url=\"http://192.168.30.200:3000\"\u001b[K\u001b[2;122Hroot@OpenWrt:~# uci commit\u001b[K\u001b[3;122Hroot@OpenWrt:~# reload_config\u001b[K\u001b[4;122Hroot@OpenWrt:~# logread -f\u001b[K\u001b[5;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.225 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[6;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1"]
|
||||
[255.124375, "o", "X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[7;122Hence-controller\"}\u001b[K\u001b[8;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[9;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[10;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[11;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[12;122H\"uci-controller\"}\u001b[K\u001b[13;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[14;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[15;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5"]
|
||||
[255.124454, "o", "C<./internal/agent/controller/op\u001b[16;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[17;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[18;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[19;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[20;122Hence-controller\"}\u001b[K\u001b[21;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[22;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[23;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[24;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b"]
|
||||
[255.124511, "o", "[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[25;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[26;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[27;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[28;122Htroller\"}\u001b[K\u001b[29;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[30;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[31;122Htroller\", \"revision\": 0}\u001b[K\u001b[32;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[33;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[34;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-"]
|
||||
[255.124532, "o", "06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[35;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[36;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[41;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[44;122HFri Jun 23 "]
|
||||
[255.124544, "o", "15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[54;"]
|
||||
[255.124557, "o", "122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[56;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[57;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[58;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[59;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[60;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[61;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[62;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[63;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[66;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b"]
|
||||
[255.124582, "o", "[K\u001b[67;122HMy hostname is now ArcadeAgent\u001b[K\u001b[68;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[69;122HActive Internet connections (only servers)\u001b[K\u001b[70;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[71;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[72;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[73;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[74;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[75;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[76;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[77;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[78;122Htcp 0 0 fe80::c0ff"]
|
||||
[255.124709, "o", ":fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[79;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[80;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h\u001b[?25l\u001b[1droot@OpenWrt:~# reload_config\u001b[K\u001b[2;122Hroot@OpenWrt:~# logread -f\u001b[K\u001b[3;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.225 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[4;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[5;122Hence-controller\"}\u001b[K\u001b[6;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[7;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[8;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 "]
|
||||
[255.1248, "o", "[INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[9;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[10;122H\"uci-controller\"}\u001b[K\u001b[11;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[12;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[13;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[14;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[15;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[16;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[17;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detecte"]
|
||||
[255.12484, "o", "d, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[18;122Hence-controller\"}\u001b[K\u001b[19;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[20;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[21;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[22;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[23;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[24;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[25;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[26;122Htroller\"}\u001b[K\u001b[27;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: "]
|
||||
[255.124879, "o", "2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[28;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[29;122Htroller\", \"revision\": 0}\u001b[K\u001b[30;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[31;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[32;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[33;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[34;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[37;"]
|
||||
[255.124911, "o", "122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[39;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info"]
|
||||
[255.124948, "o", " dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[56;122HFri Jun 23 15:59:34 20"]
|
||||
[255.124985, "o", "23 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[57;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[58;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[59;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[60;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[61;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[64;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[65;122HMy hostname is now ArcadeAgent\u001b[K\u001b[66;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[67;122HActive Internet connections (only servers)\u001b[K\u001b[68;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[69;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[70;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 407"]
|
||||
[255.12503, "o", "6/dnsmasq\u001b[K\u001b[71;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[72;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[73;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[74;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[75;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[76;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[77;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[78;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[79;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[80;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* "]
|
||||
[255.125068, "o", " 4076/dnsmasq\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[255.125132, "o", "\u001b[?25l\u001b[1droot@OpenWrt:~# logread -f\u001b[K\u001b[2;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.225 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[3;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[4;122Hence-controller\"}\u001b[K\u001b[5;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[6;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[7;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[8;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[9;122H\"uci-controller\"}\u001b[K\u001b[10;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controll"]
|
||||
[255.125171, "o", "er/ap\u001b[11;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[12;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[13;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[14;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[15;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[16;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[17;122Hence-controller\"}\u001b[K\u001b[18;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[19;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controll"]
|
||||
[255.125209, "o", "er\"}\u001b[K\u001b[20;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[21;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[22;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[23;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[24;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[25;122Htroller\"}\u001b[K\u001b[26;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[27;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[28;122Htroller\", \"revision\": 0}\u001b[K\u001b[29;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b["]
|
||||
[255.125246, "o", "5X\u001b[5C<./internal/agent/controller/ap\u001b[30;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[31;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[32;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[33;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[38;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfi"]
|
||||
[255.125283, "o", "le\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserv"]
|
||||
[255.125325, "o", "er 192.168.5.53#53\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[56;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[57;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[58;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hos"]
|
||||
[255.125362, "o", "ts - 4 addresses\u001b[K\u001b[59;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[60;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[63;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[64;122HMy hostname is now ArcadeAgent\u001b[K\u001b[65;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[66;122HActive Internet connections (only servers)\u001b[K\u001b[67;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[68;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[69;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[70;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[71;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[72;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[73;122Htcp "]
|
||||
[255.125396, "o", " 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[74;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[75;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[76;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[77;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[78;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[79;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[80;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[255.125507, "o", "\u001b[?25l\u001b[1dFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.225 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[2;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[3;122Hence-controller\"}\u001b[K\u001b[4;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[5;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[6;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[7;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[8;122H\"uci-controller\"}\u001b[K\u001b[9;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[10;122Hp/controller.go:42>\u001b[5X\u001b"]
|
||||
[255.12555, "o", "[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[11;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[12;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[13;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[14;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[15;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[16;122Hence-controller\"}\u001b[K\u001b[17;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[18;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[19;122HFri Jun 23 15:59:32 20"]
|
||||
[255.125593, "o", "23 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[20;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[21;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[22;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[23;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[24;122Htroller\"}\u001b[K\u001b[25;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[26;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[27;122Htroller\", \"revision\": 0}\u001b[K\u001b[28;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b"]
|
||||
[255.125628, "o", "[29;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[30;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[31;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[32;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[37;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023"]
|
||||
[255.125669, "o", " daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[48;122HFri Jun "]
|
||||
[255.125704, "o", "23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[56;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[57;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[58;122HFri Jun 23"]
|
||||
[255.125736, "o", " 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[59;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[62;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[63;122HMy hostname is now ArcadeAgent\u001b[K\u001b[64;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[65;122HActive Internet connections (only servers)\u001b[K\u001b[66;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[67;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[68;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[69;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[70;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[71;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[72;122Htcp 0 0 :::8084 "]
|
||||
[255.125767, "o", " :::* LISTEN 3471/emissary\u001b[K\u001b[73;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[74;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[75;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[76;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[77;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[78;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[79;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[80;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25hroot@ArcadAgent:~# "]
|
||||
[258.944464, "o", "e"]
|
||||
[259.128951, "o", "c"]
|
||||
[259.168813, "o", "h"]
|
||||
[259.240703, "o", "o"]
|
||||
[259.312742, "o", " "]
|
||||
[259.456279, "o", "\""]
|
||||
[259.753944, "o", "N"]
|
||||
[259.880553, "o", "e"]
|
||||
[260.039821, "o", "w"]
|
||||
[260.176748, "o", " "]
|
||||
[260.40835, "o", "a"]
|
||||
[260.513141, "o", "p"]
|
||||
[260.664885, "o", "p"]
|
||||
[260.784994, "o", "l"]
|
||||
[260.864747, "o", "i"]
|
||||
[260.967853, "o", "c"]
|
||||
[261.05623, "o", "a"]
|
||||
[261.15203, "o", "t"]
|
||||
[261.208696, "o", "i"]
|
||||
[261.264736, "o", "o"]
|
||||
[261.359858, "o", "n"]
|
||||
[261.520099, "o", "s"]
|
||||
[261.632929, "o", " "]
|
||||
[261.832751, "o", "a"]
|
||||
[262.000749, "o", "r"]
|
||||
[262.072634, "o", "e"]
|
||||
[262.200499, "o", " "]
|
||||
[262.408182, "o", "i"]
|
||||
[262.495155, "o", "n"]
|
||||
[262.608733, "o", "s"]
|
||||
[262.664374, "o", "t"]
|
||||
[262.736198, "o", "a"]
|
||||
[262.85664, "o", "l"]
|
||||
[263.016309, "o", "l"]
|
||||
[263.088305, "o", "e"]
|
||||
[263.271612, "o", "d"]
|
||||
[265.064967, "o", "\""]
|
||||
[265.641216, "o", "\u001b[?25l\u001b[1;122Hence-controller\"}\u001b[K\u001b[2;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[3;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[4;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[5;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[6;122H\"uci-controller\"}\u001b[K\u001b[7;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[8;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[9;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[10;122Henwrt/sysupgrade_controller."]
|
||||
[265.641253, "o", "go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[11;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[12;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[13;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[14;122Hence-controller\"}\u001b[K\u001b[15;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[16;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[17;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[18;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[19;122H: \"uci.emissary.ca"]
|
||||
[265.641268, "o", "doles.com\", \"revision\": 0}\u001b[K\u001b[20;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[21;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[22;122Htroller\"}\u001b[K\u001b[23;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[24;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[25;122Htroller\", \"revision\": 0}\u001b[K\u001b[26;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[27;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[28;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[29;"]
|
||||
[265.641281, "o", "122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[30;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[35;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addres"]
|
||||
[265.641294, "o", "ses for onion\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only local"]
|
||||
[265.641306, "o", "ly-known addresses for localhost\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[56;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[57;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[60;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[61;122HMy hostname is now ArcadeAgent\u001b[K\u001b[62;122Hroot@ArcadAgent:"]
|
||||
[265.641334, "o", "~# netstat -tlnup\u001b[K\u001b[63;122HActive Internet connections (only servers)\u001b[K\u001b[64;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[65;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[66;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[67;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[68;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[69;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[70;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[71;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[72;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[73"]
|
||||
[265.64135, "o", ";122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[74;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[75;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[76;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[77;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[78;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[79;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[80;122HNew applications are installed\u001b[K\u001b[81;122Hroot@ArcadAgent:~# \u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[268.262913, "o", "\u001b[?25l\u001b[1;121H\u001b[32m│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[39m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[56;13H"]
|
||||
[269.081217, "o", "v"]
|
||||
[269.153163, "o", "i"]
|
||||
[269.265339, "o", " "]
|
||||
[269.81128, "o", "c"]
|
||||
[269.872513, "o", "o"]
|
||||
[269.95588, "o", "n"]
|
||||
[270.065954, "o", "\remissary:~# vi config/\u001b[1;81r\u001b[57;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[56;23H\u001b[98X\u001b[1;82r\u001b[56;23H"]
|
||||
[270.313035, "o", "m"]
|
||||
[270.456767, "o", "y"]
|
||||
[270.559559, "o", "\remissary:~# vi config/my-\u001b[1;81r\u001b[57;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[56;26H\u001b[95X\u0007\u001b[1;82r\u001b[56;26H"]
|
||||
[271.297045, "o", "c"]
|
||||
[271.521003, "o", "\u0007"]
|
||||
[272.081294, "o", "\u001b[1;81r\u001b[57;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[56;26H\u001b[95X\u001b[1;82r\u001b[56;26H"]
|
||||
[272.273395, "o", "\remissary:~# vi config/my-\u001b[1;81r\u001b[57;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[56;26H\u001b[95X\u0007\u001b[1;82r\u001b[56;26H"]
|
||||
[272.729045, "o", "\r\nmy-agent-config.json my-uci-spec.json\r\nemissary:~# vi config/my-\u001b[1;81r\u001b[59;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[58;26H\u001b[95X\u001b[1;82r\u001b[58;26H"]
|
||||
[273.545161, "o", "u"]
|
||||
[273.625572, "o", "\remissary:~# vi config/my-uci-spec.json \u001b[1;81r\u001b[59;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[58;40H\u001b[81X\u001b[1;82r\u001b[58;40H"]
|
||||
[274.186674, "o", "\r\n"]
|
||||
[274.189049, "o", "\u001b[?25l\u001b[1;120H\u001b[1K\u001b[H{\u001b[2;120H\u001b[1K\u001b[2G\u001b[1K\u001b[C\"config\": {\u001b[3;120H\u001b[1K\u001b[4G\u001b[1K\u001b[C\"packages\": [\u001b[4;120H\u001b[1K\u001b[6G\u001b[1K\u001b[C{\u001b[5;120H\u001b[1K\u001b[8G\u001b[1K\u001b[C\"name\": \"dhcp\",\u001b[6;120H\u001b[1K\u001b[8G\u001b[1K\u001b[C\"configs\": [\u001b[7;120H\u001b[1K\u001b[10G\u001b[1K\u001b[C{\u001b[8;120H\u001b[1K\u001b[12G\u001b[1K\u001b[C\"name\": \"dnsmasq\",\u001b[9;120H\u001b[1K\u001b[12G\u001b[1K\u001b[C\"options\": [\u001b[10;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[11;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[12;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"domainneeded\",\u001b[13;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"1\"\u001b[14;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[15;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[16;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[17;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"boguspriv\",\u001b[18;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"1\"\u001b[19;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[20;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[21;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[22;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"filterwin2k\",\u001b[23;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"0\"\u001b[24;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[25;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[26;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[27;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"localise_queries\",\u001b[28;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"1\"\u001b[29;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[30;120H\u001b[1"]
|
||||
[274.189076, "o", "K\u001b[14G\u001b[1K\u001b[C{\u001b[31;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[32;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"rebind_localhost\",\u001b[33;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"1\"\u001b[34;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[35;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[36;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[37;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"local\",\u001b[38;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"/lan/\"\u001b[39;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[40;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[41;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[42;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"domain\",\u001b[43;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"lan\"\u001b[44;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[45;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[46;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[47;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"expandhosts\",\u001b[48;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"1\"\u001b[49;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[50;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[51;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[52;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"nonegcache\",\u001b[53;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"0\"\u001b[54;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[55;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[56;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[57;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"authoritative\",\u001b[58;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C"]
|
||||
[274.189089, "o", "\"value\": \"1\"\u001b[59;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[60;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[61;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[62;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"readethers\",\u001b[63;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"1\"\u001b[64;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[65;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[66;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[67;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"leasefile\",\u001b[68;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"/tmp/dhcp.leases\"\u001b[69;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[70;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[71;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[72;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"resolvfile\",\u001b[73;16H\u001b[1K\u001b[C\"value\": \"/tmp/resolv.conf.d/resolv.conf.auto\"\u001b[58X\u001b[74;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[75;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[76;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"type\": \"option\",\u001b[77;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"name\": \"nonwildcard\",\u001b[78;120H\u001b[1K\u001b[16G\u001b[1K\u001b[C\"value\": \"1\"\u001b[79;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C},\u001b[80;120H\u001b[1K\u001b[14G\u001b[1K\u001b[C{\u001b[81;120H\u001b[1K\r- config/my-uci-spec.json 1/1574 0%\u001b[?12l\u001b[?25h\u001b[H"]
|
||||
[276.0343, "o", "\u001b[81d/\u001b[119X\u0007"]
|
||||
[277.681058, "o", "A"]
|
||||
[277.977808, "o", "r"]
|
||||
[278.176983, "o", "c"]
|
||||
[278.304404, "o", "a"]
|
||||
[278.417316, "o", "d"]
|
||||
[278.912726, "o", "A"]
|
||||
[279.096756, "o", "g"]
|
||||
[279.345984, "o", "\u001b[H \"value\": \"30\"\u001b[2;3H }\u001b[3;5H ] \u001b[4;7H },\u001b[5;9H { \u001b[6;9H \"name\": \"login\",\u001b[7;11H \"options\": [\u001b[8;13H { \u001b[9;13H \"type\": \"option\",\u001b[10;15H \"name\": \"username\",\u001b[11;18Hvalue\": \"root\" \u001b[12;15H}, \u001b[13;15H{ \u001b[14;15H \"type\": \"option\",\u001b[15;15H \"name\": \"password\",\u001b[16;18Hvalue\": \"$p$root\"\u001b[17;15H}, \u001b[18;15H{ \u001b[19;15H \"type\": \"list\",\u001b[20;15H \"name\": \"read\",\u001b[21;18Hvalue\": \"*\" \u001b[22;15H}, \u001b[23;15H{ \u001b[24;15H \"type\": \"list\",\u001b[25;15H \"name\": \"write\",\u001b[26;18Hvalue\": \"*\" \u001b[27;15H} \u001b[28;13H] \u001b[29;11H} \u001b[30;9H] \u001b[31;7H}, \u001b[32;7H{ \u001b[33;9H\"name\": \"system\", \u001b[34;9H\"configs\": [\u001b[35;11H{ \u001b[36;13H\"name\": \"system\", \u001b[37;13H\"options\": [ \u001b[38;15H{ \u001b[39;15H \"type\": \"option\",\u001b[40;15H \"name\": \"hostname\",\u001b[41;18Hvalu"]
|
||||
[279.34602, "o", "e\": \"ArcadAgent\"\u001b[42;15H}, \u001b[43;15H{ \u001b[44;15H \"type\": \"option\",\u001b[45;15H \"name\": \"timezone\",\u001b[46;18Hvalue\": \"UTC\" \u001b[47;15H}, \u001b[48;15H{ \u001b[49;15H \"type\": \"option\",\u001b[50;15H \"name\": \"ttylogin\",\u001b[51;18Hvalue\": \"0\" \u001b[52;15H}, \u001b[53;15H{ \u001b[54;15H \"type\": \"option\",\u001b[55;15H \"name\": \"log_size\",\u001b[56;18Hvalue\": \"64\" \u001b[57;15H}, \u001b[58;15H{ \u001b[59;15H \"type\": \"option\",\u001b[60;15H \"name\": \"urandom_seed\",\u001b[61;18Hvalue\": \"0\" \u001b[62;15H} \u001b[63;13H] \u001b[64;11H}, \u001b[65;11H{ \u001b[66;13H\"name\": \"timeserver\u001b[67;13H\"section\": \"ntp\", \u001b[68;13H\"options\": [ \u001b[69;15H{ \u001b[70;15H \"type\": \"option\",\u001b[71;18Hname\": \"enabled\",\u001b[72;18Hvalue\": \"1\" \u001b[73;15H}, \u001b[74;15H{ \u001b[75;15H \"type\": \"option\",\u001b[76;18Hname\": \"enable_server\",\u001b[77;18Hvalue\": \"0\" \u001b[78;15H}, \u001b[79;15H{ \u001b[80;15H \"type"]
|
||||
[279.346032, "o", "\": \"list\",\r\n- config/my-uci-spec.json 1146/1574 72%\u001b[81X\u001b[41;27H"]
|
||||
[281.659897, "o", "\u001b[81;1HI config/my-uci-spec.json 1146/1574 72%\u001b[81X\u0007\u001b[41;27H"]
|
||||
[282.121181, "o", "NArcadAgent\"\u001b[11D"]
|
||||
[282.305551, "o", "eArcadAgent\"\u001b[11D"]
|
||||
[282.450581, "o", "wArcadAgent\"\u001b[11D"]
|
||||
[283.555238, "o", "\u001b[81;1H:\u001b[119X"]
|
||||
[283.624391, "o", "w"]
|
||||
[283.792746, "o", "q"]
|
||||
[284.154207, "o", "\u001b[116C\u001b[1K\r"]
|
||||
[284.154458, "o", "\u001b[?25l\u001b[1;120H\u001b[1K\u001b[Hemissary:~# echo \"The server\"\u001b[2;120H\u001b[1K\rThe server\u001b[3;120H\u001b[1K\remissary:~# emissary api agent query\r\n+----+-------+------------+--------+-------------+-----------+\u001b[58X\r\n| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT |\u001b[58X\r\n+----+-------+------------+--------+-------------+-----------+\u001b[58X\r\n+----+-------+------------+--------+-------------+-----------+\u001b[58X\u001b[8;120H\u001b[1K\remissary:~# emissary api agent query\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\u001b[10;120H\u001b[1K\r----------+\r\n| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT \u001b[12;120H\u001b[1K\r |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\u001b[14;120H\u001b[1K\r----------+\r\n| 1 | | 23ZQ4yoK869AFHJ6ryA8EpnAz8ZESr... | 0 | 2023-06-23 15:57:32.068805967 ... | \"2023-06-23T15:57:31.807\u001b[16;120H\u001b[1K\r"]
|
||||
[284.15451, "o", "03548Z... |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\u001b[18;120H\u001b[1K\r----------+\u001b[19;120H\u001b[1K\remissary:~# ^Cissary api agent query\u001b[20;120H\u001b[1K\r\nemissary:~# emissary api agent update --agent-id 1 --status 1\u001b[59X\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\u001b[23;120H\u001b[1K\r----------+\r\n| ID | LABEL | THUMBPRINT | STATUS | CONTACTEDAT | UPDATEDAT \u001b[25;120H\u001b[1K\r |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\u001b[27;120H\u001b[1K\r----------+\r\n| 1 | | 23ZQ4yoK869AFHJ6ryA8EpnAz8ZESr... | 1 | 2023-06-23 15:57:32.068805967 ... | \"2023-06-23T15:58:05.165\u001b[29;120H\u001b[1K\r446799... |\r\n+----+-------+-----------------------------------+--------+-----------------------------------+-------------------------\u001b[31;120H\u001b[1K\r----------+"]
|
||||
[284.154608, "o", "\r\nemissary:~# cat config/my-uci-spec.json | emissary api agent spec update -a 1 --no-patch --spec-data - --spec-name uci.e\u001b[33;120H\u001b[1K\rmissary.cadoles.com\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\u001b[35;120H\u001b[1K\r-------------------------------+\r\n| ID | NAME | DATA | REVISION | CREATEDAT | UPD\u001b[37;120H\u001b[1K\rATEDAT |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\u001b[39;120H\u001b[1K\r-------------------------------+\r\n| 1 | uci.emissary.cadoles.com | {\"config\":{\"packages\":[{\"confi... | 0 | \"2023-06-23T15:59:00.937205005... | \"20\u001b[41;120H\u001b[1K\r23-06-23T15:59:00.937205005... |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\u001b[43;120H\u001b[1K\r-------------------------------+\r\nemissary:~# cat config/app."]
|
||||
[284.154621, "o", "emissary.cadoles.com.json | emissary api agent spec update -a 1 --no-patch --spec-data - --sp\u001b[45;120H\u001b[1K\rec-name app.emissary.cadoles.com\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\u001b[47;120H\u001b[1K\r-------------------------------+\r\n| ID | NAME | DATA | REVISION | CREATEDAT | UPD\u001b[49;120H\u001b[1K\rATEDAT |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\u001b[51;120H\u001b[1K\r-------------------------------+\r\n| 2 | app.emissary.cadoles.com | {\"apps\":{\"app.arcad.edge.hextr... | 0 | \"2023-06-23T15:59:50.133065468... | \"20\u001b[53;120H\u001b[1K\r23-06-23T15:59:50.133065468... |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\u001b[55;120H\u001b[1K\r-------------------------------+\u001b[56;120H\u001b[1K\remissary:~# vi config/my-\u001b[57;1"]
|
||||
[284.154766, "o", "20H\u001b[1K\rmy-agent-config.json my-uci-spec.json\u001b[58;120H\u001b[1K\remissary:~# vi config/my-uci-spec.json \u001b[59;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[?12l\u001b[?25h\u001b[59;1Hemissary:~# "]
|
||||
[285.288747, "o", "\remissary:~# vi config/my-uci-spec.json \u001b[1;81r\u001b[60;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[59;40H\u001b[81X\u001b[1;82r\u001b[59;40H"]
|
||||
[285.546285, "o", "\remissary:~# cat config/app.emissary.cadoles.com.json | emissary api agent spec update -a 1 --no-patch --spec-data - --sp\r\nec-name app.emissary.cadoles.com\u001b[1;81r\u001b[61;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[60;33H\u001b[88X\u001b[1;82r\u001b[60;33H"]
|
||||
[285.833525, "o", "\u001b[59;1Hemissary:~# cat config/my-uci-spec.json | emissary api agent spec update -a 1 --no-patch --spec-data - --spec-name uci.e\r\nmissary.cadoles.com\u001b[1;81r\u001b[61;120H\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\n\u001b[1K\u001b[60;20H\u001b[101X\u001b[1;82r\u001b[60;20H"]
|
||||
[289.415637, "o", "\u001b[?25l\u001b[37m\u001b[40m\u001b[82;1H‘\u001b[32mnumenor’\u001b[37m0:ssh* \"numenor\" 18:01 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[60;20H"]
|
||||
[289.826581, "o", "\r\n"]
|
||||
[290.081445, "o", "+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n| ID | NAME | DATA | REVISION | CREATEDAT | UPD\r\nATEDAT |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n| 1 | uci.emissary.cadoles.com | {\"config\":{\"packages\":[{\"confi... | 1 | \"2023-06-23T15:59:00.937205005... | \"20\r\n23-06-23T16:01:10.546999379... |\r\n+----+--------------------------+-----------------------------------+----------+-----------------------------------+----\r\n-------------------------------+\r\n"]
|
||||
[290.081594, "o", "emissary:~# "]
|
||||
[291.718595, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[19C"]
|
||||
[295.169644, "o", "l"]
|
||||
[295.352434, "o", "o"]
|
||||
[295.752737, "o", "g"]
|
||||
[296.048604, "o", "r"]
|
||||
[296.505008, "o", "e"]
|
||||
[296.633205, "o", "\u001b[24Droot@ArcadAgent:~# logread \u001b[1;81r\u001b[81;149H\u001b[K\u001b[1;82r\u001b[81;149H"]
|
||||
[297.256572, "o", "-"]
|
||||
[297.368874, "o", "f"]
|
||||
[297.489328, "o", "\u001b[?25l\u001b[1;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[2;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[3;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[4;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[5;122H\"uci-controller\"}\u001b[K\u001b[6;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[7;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[8;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[9;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeCon"]
|
||||
[297.489364, "o", "troller).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[10;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[11;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[12;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[13;122Hence-controller\"}\u001b[K\u001b[14;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[15;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[16;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[17;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[18;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K"]
|
||||
[297.48938, "o", "\u001b[19;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[20;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[21;122Htroller\"}\u001b[K\u001b[22;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[23;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[24;122Htroller\", \"revision\": 0}\u001b[K\u001b[25;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[26;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[27;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[28;122Henwrt/sysupgrade_controll"]
|
||||
[297.489393, "o", "er.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[29;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[34;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[38;122HFri "]
|
||||
[297.489523, "o", "Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localh"]
|
||||
[297.489551, "o", "ost\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[55;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[56;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[59;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[60;122HMy hostname is now ArcadeAgent\u001b[K\u001b[61;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[62;122H"]
|
||||
[297.489566, "o", "Active Internet connections (only servers)\u001b[K\u001b[63;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[64;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[65;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[66;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[67;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[68;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[69;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[70;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[71;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[72;122Htcp 0 0 :::2"]
|
||||
[297.489579, "o", "2 :::* LISTEN 2087/dropbear\u001b[K\u001b[73;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[74;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[75;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[76;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[77;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[78;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[79;122HNew applications are installed\u001b[K\u001b[80;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[309.145484, "o", "\u001b[?25l\u001b[1doxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[2;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[3;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[4;122H\"uci-controller\"}\u001b[K\u001b[5;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[6;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[7;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[8;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[9;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[10;"]
|
||||
[309.145522, "o", "122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[11;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[12;122Hence-controller\"}\u001b[K\u001b[13;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[14;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[15;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[16;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[17;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[18;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[19"]
|
||||
[309.145539, "o", ";122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[20;122Htroller\"}\u001b[K\u001b[21;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[22;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[23;122Htroller\", \"revision\": 0}\u001b[K\u001b[24;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[25;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[26;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[27;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[28;122Hothing\u001b[2X\u001b[2C{\"controller\": "]
|
||||
[309.145694, "o", "\"sysupgrade-controller\"}\u001b[K\u001b[29;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[33;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemo"]
|
||||
[309.145726, "o", "n.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[48;122HFri Jun 23 15:5"]
|
||||
[309.145743, "o", "9:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[54;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[55;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[58;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[59;122HMy hostname is now ArcadeAgent\u001b[K\u001b[60;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[61;122HActive Internet connections (only servers)\u001b[K\u001b[62;122HProto Recv-Q Send-Q Local Address Foreign Address State P"]
|
||||
[309.145863, "o", "ID/Program name \u001b[K\u001b[63;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[64;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[65;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[66;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[67;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[68;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[69;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[70;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[71;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[72;122Htcp 0 0 :::80 :::* "]
|
||||
[309.145928, "o", " LISTEN 1511/uhttpd\u001b[K\u001b[73;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[74;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[75;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[76;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[77;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[78;122HNew applications are installed\u001b[K\u001b[79;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[80;122H\u001b[K\n\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[309.544826, "o", "^Croot@ArcadAgent:~# "]
|
||||
[310.177471, "o", "\u001b[?25l\u001b[1;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[2;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[3;122H\"uci-controller\"}\u001b[K\u001b[4;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[5;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[6;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[7;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[8;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[9;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[10;122"]
|
||||
[310.17751, "o", "Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[11;122Hence-controller\"}\u001b[K\u001b[12;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[13;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[14;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[15;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[16;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[17;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[18;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-co"]
|
||||
[310.177526, "o", "n\u001b[19;122Htroller\"}\u001b[K\u001b[20;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[21;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[22;122Htroller\", \"revision\": 0}\u001b[K\u001b[23;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[24;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[25;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[26;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[27;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[29;122HFri Jun "]
|
||||
[310.17769, "o", "23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[32;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only"]
|
||||
[310.177716, "o", " locally-known addresses for invalid\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsma"]
|
||||
[310.177724, "o", "sq[1]: using only locally-known addresses for bind\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[53;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[54;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[57;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[58;122HMy hostname is now ArcadeAgent\u001b[K\u001b[59;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[60;122HActive Internet connections (only servers)\u001b[K\u001b[61;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[62;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[63;122"]
|
||||
[310.177733, "o", "Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[64;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[65;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[66;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[67;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[68;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[69;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[70;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[71;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[72;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076"]
|
||||
[310.17788, "o", "/dnsmasq\u001b[K\u001b[73;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[74;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[75;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[76;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[77;122HNew applications are installed\u001b[K\u001b[78;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[79;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[81;122Hroot@ArcadAgent:~# \u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[310.36104, "o", "\u001b[?25l\u001b[1;122Henwrt/uci_controller.go:32>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Ccould not find uci spec, doing nothing\u001b[2X\u001b[2C{\"controller\": \u001b[2;122H\"uci-controller\"}\u001b[K\u001b[3;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[4;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[5;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[6;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[7;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[8;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[9;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist"]
|
||||
[310.361085, "o", "\u001b[10;122Hence-controller\"}\u001b[K\u001b[11;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[12;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[13;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[14;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[15;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[16;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[17;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[18;122Htroller\"}\u001b[K\u001b[19;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./intern"]
|
||||
[310.361098, "o", "al/agent/controller/op\u001b[20;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[21;122Htroller\", \"revision\": 0}\u001b[K\u001b[22;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[23;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[24;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[25;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[26;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[29;122HFri Jun 23 15:59:34 2023 daemon.info dnsmas"]
|
||||
[310.361108, "o", "q[1]: DNS service limited to local subnets\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[31;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses"]
|
||||
[310.361117, "o", " for bind\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-k"]
|
||||
[310.361342, "o", "nown addresses for lan\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[51;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[52;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[53;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[56;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[57;122HMy hostname is now ArcadeAgent\u001b[K\u001b[58;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[59;122HActive Internet connections (only servers)\u001b[K\u001b[60;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[61;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[62;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[63;122Htcp 0 0 0.0.0."]
|
||||
[310.361378, "o", "0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[64;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[65;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[66;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[67;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[68;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[69;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[70;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[71;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[72;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[73;122Hudp "]
|
||||
[310.361389, "o", " 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[74;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[75;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[76;122HNew applications are installed\u001b[K\u001b[77;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[78;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[80;122Hroot@ArcadAgent:~# \u001b[K\u001b[81;122Hroot@ArcadAgent:~# \u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[311.633197, "o", "h"]
|
||||
[311.768577, "o", "o"]
|
||||
[311.87281, "o", "s"]
|
||||
[311.969677, "o", "t"]
|
||||
[312.081036, "o", "n"]
|
||||
[312.201739, "o", "\u0007"]
|
||||
[312.784528, "o", "a"]
|
||||
[312.929515, "o", "m"]
|
||||
[313.0326, "o", "e"]
|
||||
[313.594965, "o", "\u001b[?25l\u001b[1;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.657 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[2;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[3;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[4;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[5;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[6;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[7;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[8;122Hence-controller\"}\u001b[K\u001b[9;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[10;122"]
|
||||
[313.595005, "o", "Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[11;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[12;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[13;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[14;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[15;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[16;122Htroller\"}\u001b[K\u001b[17;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[18;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[19;12"]
|
||||
[313.595021, "o", "2Htroller\", \"revision\": 0}\u001b[K\u001b[20;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[21;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[22;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[23;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[24;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[25;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[26;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN"]
|
||||
[313.595034, "o", " DHCP\u001b[29;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq"]
|
||||
[313.595047, "o", "[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq"]
|
||||
[313.595225, "o", "[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[50;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[51;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[54;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[55;122HMy hostname is now ArcadeAgent\u001b[K\u001b[56;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[57;122HActive Internet connections (only servers)\u001b[K\u001b[58;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[59;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[60;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[61;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[62;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhtt"]
|
||||
[313.595259, "o", "pd\u001b[K\u001b[63;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[64;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[65;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[66;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[67;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[68;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[69;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[70;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[71;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[72;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* "]
|
||||
[313.595275, "o", " 4076/dnsmasq\u001b[K\u001b[73;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[74;122HNew applications are installed\u001b[K\u001b[75;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[76;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[78;122Hroot@ArcadAgent:~# \u001b[K\u001b[79;122Hroot@ArcadAgent:~# hostname\u001b[K\u001b[80;122H-ash: hostname: not found\u001b[K\u001b[81;122Hroot@ArcadAgent:~# \u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[315.528948, "o", "\u001b[19Droot@ArcadAgent:~# hostname\u001b[1;81r\u001b[81;149H\u001b[K\u001b[1;82r\u001b[81;149H"]
|
||||
[315.823738, "o", "\u001b[27Droot@ArcadAgent:~# logread -f\u001b[1;81r\u001b[81;151H\u001b[K\u001b[1;82r\u001b[81;151H"]
|
||||
[316.249269, "o", "\u001b[?25l\u001b[1;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[2;122HFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[3;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[4;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[5;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[6;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[7;122Hence-controller\"}\u001b[K\u001b[8;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[9;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b"]
|
||||
[316.249309, "o", "[10;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[11;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[12;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[13;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[14;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[15;122Htroller\"}\u001b[K\u001b[16;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[17;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[18;122Htroller\", \"revision\": 0}\u001b[K\u001b[19;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<."]
|
||||
[316.249324, "o", "/internal/agent/controller/ap\u001b[20;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[21;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[22;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[23;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[24;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[25;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[26;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[28;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[2"]
|
||||
[316.249473, "o", "9;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.1"]
|
||||
[316.249544, "o", "68.5.53#53\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 a"]
|
||||
[316.249653, "o", "ddresses\u001b[K\u001b[49;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[50;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[53;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[54;122HMy hostname is now ArcadeAgent\u001b[K\u001b[55;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[56;122HActive Internet connections (only servers)\u001b[K\u001b[57;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[58;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[59;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[60;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[61;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[62;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[63;122Htcp 0"]
|
||||
[316.249767, "o", " 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[64;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[65;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[66;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[67;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[68;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[69;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[70;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[71;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[72;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[73;122HNew applications are installed\u001b"]
|
||||
[316.249826, "o", "[K\u001b[74;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[75;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[77;122Hroot@ArcadAgent:~# \u001b[K\u001b[78;122Hroot@ArcadAgent:~# hostname\u001b[K\u001b[79;122H-ash: hostname: not found\u001b[K\u001b[80;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[337.313431, "o", "\u001b[?25l\u001b[1dFri Jun 23 15:58:32 2023 daemon.info emissary[3471]: 2023-06-23 15:58:32.658 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[2;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[3;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[4;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[5;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[6;122Hence-controller\"}\u001b[K\u001b[7;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[8;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[9;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[10;"]
|
||||
[337.313792, "o", "122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[11;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[12;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[13;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[14;122Htroller\"}\u001b[K\u001b[15;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[16;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[17;122Htroller\", \"revision\": 0}\u001b[K\u001b[18;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[19;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controll"]
|
||||
[337.313947, "o", "er\": \"app-controller\"}\u001b[K\u001b[20;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[21;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[22;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[23;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[24;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[25;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[26;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[27;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[29;122HFri Jun 23 15:59:34 202"]
|
||||
[337.313974, "o", "3 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[39;122HFri Jun 2"]
|
||||
[337.313991, "o", "3 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[48;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[49;122H\u001b[K\n\u001b[K\n^C"]
|
||||
[337.314052, "o", "root@ArcadAgent:~# ^C\u001b[K\u001b[52;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[53;122HMy hostname is now ArcadeAgent\u001b[K\u001b[54;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[55;122HActive Internet connections (only servers)\u001b[K\u001b[56;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[57;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[58;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[59;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[60;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[61;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[62;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[63;122Htcp 0 0 ::1:53 "]
|
||||
[337.314069, "o", " :::* LISTEN 4076/dnsmasq\u001b[K\u001b[64;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[65;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[66;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[67;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[68;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[69;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[70;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[71;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[72;122HNew applications are installed\u001b[K\u001b[73;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[74;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[76;122Hroot@ArcadAgent:~# \u001b[K\u001b[77;122Hroot@ArcadAgent"]
|
||||
[337.314081, "o", ":~# hostname\u001b[K\u001b[78;122H-ash: hostname: not found\u001b[K\u001b[79;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[80;122H\u001b[K\n\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[337.569106, "o", "\u001b[?25l\u001b[1denwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[2;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[3;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[4;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[5;122Hence-controller\"}\u001b[K\u001b[6;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[7;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[8;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[9;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"sp"]
|
||||
[337.569144, "o", "ec\"\u001b[10;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[11;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[12;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[13;122Htroller\"}\u001b[K\u001b[14;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[15;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[16;122Htroller\", \"revision\": 0}\u001b[K\u001b[17;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[18;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[19;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./int"]
|
||||
[337.569158, "o", "ernal/agent/controller/op\u001b[20;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[21;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[22;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[23;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[24;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[25;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[26;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[29;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: u"]
|
||||
[337.569169, "o", "sing only locally-known addresses for onion\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.inf"]
|
||||
[337.569181, "o", "o dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[47;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[48;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[51;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[52;122HMy hostname is now ArcadeAge"]
|
||||
[337.569193, "o", "nt\u001b[K\u001b[53;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[54;122HActive Internet connections (only servers)\u001b[K\u001b[55;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[56;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[57;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[58;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[59;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[60;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[61;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[62;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[63;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* "]
|
||||
[337.569381, "o", "LISTEN 4076/dnsmasq\u001b[K\u001b[64;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[65;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[66;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[67;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[68;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[69;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[70;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[71;122HNew applications are installed\u001b[K\u001b[72;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[73;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[75;122Hroot@ArcadAgent:~# \u001b[K\u001b[76;122Hroot@ArcadAgent:~# hostname\u001b[K\u001b[77;122H-ash: hostname: not found\u001b[K\u001b[78;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[79;122H\u001b[K\n\u001b[K\n\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[337.738842, "o", "\u001b[?25l\u001b[1dothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[2;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[3;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[4;122Hence-controller\"}\u001b[K\u001b[5;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[6;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[7;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[8;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[9;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[10;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23"]
|
||||
[337.738882, "o", " 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[11;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[12;122Htroller\"}\u001b[K\u001b[13;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[14;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[15;122Htroller\", \"revision\": 0}\u001b[K\u001b[16;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[17;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[18;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[19;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find"]
|
||||
[337.738896, "o", " sysupgrade spec, doing n\u001b[20;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[21;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[22;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[23;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[24;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[25;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[26;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[29;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known ad"]
|
||||
[337.738909, "o", "dresses for localhost\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using on"]
|
||||
[337.73892, "o", "ly locally-known addresses for local\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[46;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[47;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[50;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[51;122HMy hostname is now ArcadeAgent\u001b[K\u001b[52;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[53;122HActive Internet connections (only servers)\u001b[K\u001b[54;122HProto Recv-Q Send-"]
|
||||
[337.738933, "o", "Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[55;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[56;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[57;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[58;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[59;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[60;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[61;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[62;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[63;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K"]
|
||||
[337.738946, "o", "\u001b[64;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[65;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[66;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[67;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[68;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[69;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[70;122HNew applications are installed\u001b[K\u001b[71;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[72;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[74;122Hroot@ArcadAgent:~# \u001b[K\u001b[75;122Hroot@ArcadAgent:~# hostname\u001b[K\u001b[76;122H-ash: hostname: not found\u001b[K\u001b[77;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[78;122H\u001b[K\n\u001b[K\n\u001b[K\n\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[342.433133, "o", "^C"]
|
||||
[342.433766, "o", "root@NewArcadAgent:~# "]
|
||||
[343.272942, "o", "\u001b[?25l\u001b[1;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.218 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pe\u001b[2;122Hrsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[3;122Hence-controller\"}\u001b[K\u001b[4;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[5;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[6;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[7;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[8;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[9;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b["]
|
||||
[343.272981, "o", "10;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[11;122Htroller\"}\u001b[K\u001b[12;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[13;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[14;122Htroller\", \"revision\": 0}\u001b[K\u001b[15;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[16;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[17;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[18;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[19;122Hothing\u001b[2X\u001b[2C{\"controller\""]
|
||||
[343.273006, "o", ": \"sysupgrade-controller\"}\u001b[K\u001b[20;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[21;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[22;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[23;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[24;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[25;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[26;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[29;122HFri Jun 23 15:59:34 2023 dae"]
|
||||
[343.273163, "o", "mon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[39;122HFri Jun 23 15"]
|
||||
[343.2732, "o", ":59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[45;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[46;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[49;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[50;122HMy hostname is now ArcadeAgent\u001b[K\u001b[51;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[52;122HActive Internet connections (only servers)\u001b[K\u001b[53;122HProto Recv-Q Send-Q Local Address Foreign Address State "]
|
||||
[343.273211, "o", " PID/Program name \u001b[K\u001b[54;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[55;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[56;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[57;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[58;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[59;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[60;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[61;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[62;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[63;122Htcp 0 0 :::80 :::* "]
|
||||
[343.273309, "o", " LISTEN 1511/uhttpd\u001b[K\u001b[64;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[65;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[66;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[67;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[68;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[69;122HNew applications are installed\u001b[K\u001b[70;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[71;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[73;122Hroot@ArcadAgent:~# \u001b[K\u001b[74;122Hroot@ArcadAgent:~# hostname\u001b[K\u001b[75;122H-ash: hostname: not found\u001b[K\u001b[76;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[77;122H\u001b[K\n\u001b[K\n\u001b[K\n^Croot@NewArcadAgent:~# \u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[343.273698, "o", "\u001b[?25l\u001b[1drsistence/controller.go:58>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Cno changes detected, doing nothing\u001b[6X\u001b[6C{\"controller\": \"persist\u001b[2;122Hence-controller\"}\u001b[K\u001b[3;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[4;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[5;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[6;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[7;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[8;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[9;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-c"]
|
||||
[343.273726, "o", "on\u001b[10;122Htroller\"}\u001b[K\u001b[11;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[12;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[13;122Htroller\", \"revision\": 0}\u001b[K\u001b[14;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[15;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[16;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[17;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[18;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[19;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[20;122HFri Jun"]
|
||||
[343.273741, "o", " 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[21;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets\u001b[K\u001b[22;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[23;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[24;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[25;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[26;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[29;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using onl"]
|
||||
[343.273755, "o", "y locally-known addresses for invalid\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsm"]
|
||||
[343.27388, "o", "asq[1]: using only locally-known addresses for bind\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[44;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[45;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[48;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[49;122HMy hostname is now ArcadeAgent\u001b[K\u001b[50;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[51;122HActive Internet connections (only servers)\u001b[K\u001b[52;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[53;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[54;12"]
|
||||
[343.27391, "o", "2Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[55;122Htcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[56;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[57;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[58;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[59;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[60;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[61;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[62;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[63;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076"]
|
||||
[343.273926, "o", "/dnsmasq\u001b[K\u001b[64;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[65;122Hudp 0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[66;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[67;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[68;122HNew applications are installed\u001b[K\u001b[69;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[70;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[72;122Hroot@ArcadAgent:~# \u001b[K\u001b[73;122Hroot@ArcadAgent:~# hostname\u001b[K\u001b[74;122H-ash: hostname: not found\u001b[K\u001b[75;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[76;122H\u001b[K\n\u001b[K\n\u001b[K\n^Croot@NewArcadAgent:~# \u001b[K\u001b[80;122HConnection to 192.168.10.230 closed.\u001b[K\u001b[81;122H\u001b[K\u001b[?12l\u001b[?25h"]
|
||||
[343.274131, "o", " \u001b[81;122H"]
|
||||
[343.41012, "o", "\u001b[1;81r\u001b[81;122H\u001b[K\u001b[36mtmux \u001b[39m\u001b[1mpcaseiro@numenor:~/code/cadoles/emissary\u001b(B\u001b[m (pts/27 \u001b[4m-zsh 5.9\u001b(B\u001b[m UltimaThule) \u001b[1m18:02:04 \u001b(B\u001b[m\u001b[35m(\u001b[39mgit\u001b[35m)\u001b[39m \u001b[35m[\u001b[32mmaster\u001b[35m|\u001b[33m+1\u001b[39m…\u001b[1;82r\u001b[81;162H"]
|
||||
[343.410399, "o", "\u001b[?25l\u001b[1;122Hence-controller\"}\u001b[K\u001b[2;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.598 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/pr\u001b[3;122Hoxy/controller.go:35>\u001b[3X\u001b[3C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find proxy spec\u001b[7X\u001b[7C{\"controller\": \"proxy-controller\"}\u001b[K\u001b[4;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.606 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[5;122Henwrt/uci_controller.go:40>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cretrieved spec\u001b[2X\u001b[2C{\"controller\": \"uci-controller\", \"spec\"\u001b[6;122H: \"uci.emissary.cadoles.com\", \"revision\": 0}\u001b[K\u001b[7;122HFri Jun 23 15:59:32 2023 daemon.info emissary[3471]: 2023-06-23 15:59:32.607 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[8;122Henwrt/uci_controller.go:61>\u001b[5X\u001b[5C(*UCIController).updateConfiguration\u001b[4X\u001b[4Cimporting uci config\u001b[4X\u001b[4C{\"controller\": \"uci-con\u001b[9;122Htroller\"}\u001b[K\u001b[10;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/"]
|
||||
[343.410474, "o", "agent/controller/op\u001b[11;122Henwrt/uci_controller.go:55>\u001b[5X\u001b[5C(*UCIController).Reconcile\u001b[6X\u001b[6Cupdating current spec revision\u001b[2X\u001b[2C{\"controller\": \"uci-con\u001b[12;122Htroller\", \"revision\": 0}\u001b[K\u001b[13;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/ap\u001b[14;122Hp/controller.go:42>\u001b[5X\u001b[5C(*Controller).Reconcile\u001b[1X\u001b[Ccould not find app spec\u001b[1X\u001b[C{\"controller\": \"app-controller\"}\u001b[K\u001b[15;122HFri Jun 23 15:59:33 2023 daemon.info emissary[3471]: 2023-06-23 15:59:33.128 [INFO]\u001b[5X\u001b[5C<./internal/agent/controller/op\u001b[16;122Henwrt/sysupgrade_controller.go:36>\u001b[6X\u001b[6C(*SysUpgradeController).Reconcile\u001b[7X\u001b[7Ccould not find sysupgrade spec, doing n\u001b[17;122Hothing\u001b[2X\u001b[2C{\"controller\": \"sysupgrade-controller\"}\u001b[K\u001b[18;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM\u001b[K\u001b[19;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150\u001b[K\u001b[20;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1"]
|
||||
[343.410598, "o", "]: DNS service limited to local subnets\u001b[K\u001b[21;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP\u001b[22;122H no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile\u001b[K\u001b[23;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus\u001b[K\u001b[24;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[25;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[26;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[27;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[28;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[29;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses fo"]
|
||||
[343.41063, "o", "r bind\u001b[K\u001b[30;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan\u001b[K\u001b[31;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto\u001b[K\u001b[32;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using nameserver 192.168.5.53#53\u001b[K\u001b[33;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test\u001b[K\u001b[34;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion\u001b[K\u001b[35;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost\u001b[K\u001b[36;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local\u001b[K\u001b[37;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid\u001b[K\u001b[38;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind\u001b[K\u001b[39;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: using only locally-know"]
|
||||
[343.410642, "o", "n addresses for lan\u001b[K\u001b[40;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[41;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[42;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses\u001b[K\u001b[43;122HFri Jun 23 15:59:34 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses\u001b[K\u001b[44;122H\u001b[K\n\u001b[K\n^Croot@ArcadAgent:~# ^C\u001b[K\u001b[47;122Hroot@ArcadAgent:~# echo \"My hostname is now \"ArcadeAgent\"\"\u001b[K\u001b[48;122HMy hostname is now ArcadeAgent\u001b[K\u001b[49;122Hroot@ArcadAgent:~# netstat -tlnup\u001b[K\u001b[50;122HActive Internet connections (only servers)\u001b[K\u001b[51;122HProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u001b[K\u001b[52;122Htcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[53;122Htcp 0 0 192.168.10.230:53 0.0.0.0:* LISTEN 4076/dnsmasq\u001b[K\u001b[54;122Htcp 0 0 0.0.0.0:2"]
|
||||
[343.410773, "o", "2 0.0.0.0:* LISTEN 2087/dropbear\u001b[K\u001b[55;122Htcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1511/uhttpd\u001b[K\u001b[56;122Htcp 0 0 :::8083 :::* LISTEN 3471/emissary\u001b[K\u001b[57;122Htcp 0 0 :::8084 :::* LISTEN 3471/emissary\u001b[K\u001b[58;122Htcp 0 0 ::1:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[59;122Htcp 0 0 fe80::c0ff:fea8:a08:53 :::* LISTEN 4076/dnsmasq\u001b[K\u001b[60;122Htcp 0 0 :::22 :::* LISTEN 2087/dropbear\u001b[K\u001b[61;122Htcp 0 0 :::80 :::* LISTEN 1511/uhttpd\u001b[K\u001b[62;122Hudp 0 0 127.0.0.1:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[63;122Hudp 0 0 192.168.10.230:53 0.0.0.0:* 4076/dnsmasq\u001b[K\u001b[64;122Hudp "]
|
||||
[343.410797, "o", "0 0 ::1:53 :::* 4076/dnsmasq\u001b[K\u001b[65;122Hudp 0 0 fe80::c0ff:fea8:a08:53 :::* 4076/dnsmasq\u001b[K\u001b[66;122Hroot@ArcadAgent:~# echo \"New applications are installed\"\u001b[K\u001b[67;122HNew applications are installed\u001b[K\u001b[68;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[69;122H\u001b[K\n^Croot@ArcadAgent:~# \u001b[K\u001b[71;122Hroot@ArcadAgent:~# \u001b[K\u001b[72;122Hroot@ArcadAgent:~# hostname\u001b[K\u001b[73;122H-ash: hostname: not found\u001b[K\u001b[74;122Hroot@ArcadAgent:~# logread -f\u001b[K\u001b[75;122H\u001b[K\n\u001b[K\n\u001b[K\n^Croot@NewArcadAgent:~# \u001b[K\u001b[79;122HConnection to 192.168.10.230 closed.\u001b[K\u001b[36m\u001b[80;122Htmux \u001b[39m\u001b[1mpcaseiro@numenor:~/code/cadoles/emissary\u001b(B\u001b[m (pts/27 \u001b[4m-zsh 5.9\u001b(B\u001b[m UltimaThule) \u001b[1m18:02:04 \u001b(B\u001b[m\u001b[35m(\u001b[39mgit\u001b[35m)\u001b[39m \u001b[35m[\u001b[32mmaster\u001b[35m|\u001b[33m+1\u001b[39m…3\u001b[35m]\u001b[39m\u001b[K\u001b[7m\u001b[81;122H!431 Z2 ?0 L2\u001b(B\u001b[m \u001b[1m~/code/cadoles/emissary →\u001b(B\u001b[m \u001b[73X\u001b[73C 100%\u001b[K\u001b[?12l\u001b[?25h\u001b[78D\u001b[?2004h"]
|
||||
[344.264836, "o", "\u001b[?25l\u001b[1;121H│\u001b[2;121H│\u001b[3;121H│\u001b[4;121H│\u001b[5;121H│\u001b[6;121H│\u001b[7;121H│\u001b[8;121H│\u001b[9;121H│\u001b[10;121H│\u001b[11;121H│\u001b[12;121H│\u001b[13;121H│\u001b[14;121H│\u001b[15;121H│\u001b[16;121H│\u001b[17;121H│\u001b[18;121H│\u001b[19;121H│\u001b[20;121H│\u001b[21;121H│\u001b[22;121H│\u001b[23;121H│\u001b[24;121H│\u001b[25;121H│\u001b[26;121H│\u001b[27;121H│\u001b[28;121H│\u001b[29;121H│\u001b[30;121H│\u001b[31;121H│\u001b[32;121H│\u001b[33;121H│\u001b[34;121H│\u001b[35;121H│\u001b[36;121H│\u001b[37;121H│\u001b[38;121H│\u001b[39;121H│\u001b[40;121H│\u001b[41;121H│\u001b[42;121H\u001b[32m│\u001b[43;121H│\u001b[44;121H│\u001b[45;121H│\u001b[46;121H│\u001b[47;121H│\u001b[48;121H│\u001b[49;121H│\u001b[50;121H│\u001b[51;121H│\u001b[52;121H│\u001b[53;121H│\u001b[54;121H│\u001b[55;121H│\u001b[56;121H│\u001b[57;121H│\u001b[58;121H│\u001b[59;121H│\u001b[60;121H│\u001b[61;121H│\u001b[62;121H│\u001b[63;121H│\u001b[64;121H│\u001b[65;121H│\u001b[66;121H│\u001b[67;121H│\u001b[68;121H│\u001b[69;121H│\u001b[70;121H│\u001b[71;121H│\u001b[72;121H│\u001b[73;121H│\u001b[74;121H│\u001b[75;121H│\u001b[76;121H│\u001b[77;121H│\u001b[78;121H│\u001b[79;121H│\u001b[80;121H│\u001b[81;121H│\u001b(B\u001b[m\u001b[37m\u001b[40m\r\n‘\u001b[32mnumenor’\u001b[37m0:zsh* "]
|
||||
[344.264873, "o", " \"numenor\" 18:02 23-juin-23\u001b(B\u001b[m\u001b[?12l\u001b[?25h\u001b[81;162H"]
|
||||
[345.862252, "o", "\u001b[1;82r\u001b(B\u001b[m\u001b[?1l\u001b>\u001b[H\u001b[2J\u001b[?2004l\u001b[?12l\u001b[?25h\u001b[?1000l\u001b[?1002l\u001b[?1003l\u001b[?1006l\u001b[?1005l\u001b[?7727l\u001b[?1004l"]
|
||||
[345.86257, "o", "[detached (from session 5)]\r\n"]
|
||||
[345.863083, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
|
||||
[345.918704, "o", "\u001b]0;cadoles/emissary\u0007"]
|
||||
[346.005274, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[J\u001b[m\u001b[1mpcaseiro@numenor\u001b[0m\u001b[1m:~/code/cadoles/emissary\u001b[0m (pts/25 \u001b[4m/bin/zsh 5.9\u001b[24m UltimaThule) \u001b[1m18:02:06 \u001b[0m\u001b[35m(\u001b[39mgit\u001b[35m)\u001b[39m \u001b[35m[\u001b[39m\u001b[32mmaster\u001b[39m\u001b[35m|\u001b[39m\u001b[32m\u001b[39m\u001b[0m\u001b[31m\u001b[39m\u001b[0m\u001b[33m+1\u001b[39m\u001b[0m…3\u001b[32m\u001b[39m\u001b[0m\u001b[33m\u001b[39m\u001b[0m\u001b[35m]\u001b[39m\r\n\u001b[7m!430 Z2 ?0 L3\u001b[27m \u001b[1m~/code/cadoles/emissary →\u001b[0m \u001b[K\u001b[194C 100%\u001b[199D"]
|
||||
[346.005414, "o", "\u001b[?1h\u001b=\u001b[?2004h"]
|
||||
[348.232652, "o", "\u001b[1m\u001b[31mf\u001b[0m\u001b[39m"]
|
||||
[348.487255, "o", "\b\u001b[0m\u001b[32mf\u001b[32mg\u001b[39m"]
|
||||
[348.655951, "o", "\u001b[?1l\u001b>\u001b[?2004l\u001b[K\r\r\n"]
|
||||
[348.656509, "o", "\u001b]0;fg\u0007"]
|
||||
[348.656541, "o", "fg: no current job\r\n\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
|
||||
[348.774308, "o", "\u001b]0;cadoles/emissary\u0007"]
|
||||
[348.878027, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[J\u001b[m\u001b[1mpcaseiro@numenor\u001b[0m\u001b[1m:~/code/cadoles/emissary\u001b[0m (pts/25 \u001b[4m/bin/zsh 5.9\u001b[24m UltimaThule) \u001b[1m18:02:09 \u001b[0m\u001b[35m(\u001b[39mgit\u001b[35m)\u001b[39m \u001b[35m[\u001b[39m\u001b[32mmaster\u001b[39m\u001b[35m|\u001b[39m\u001b[32m\u001b[39m\u001b[0m\u001b[31m\u001b[39m\u001b[0m\u001b[33m+1\u001b[39m\u001b[0m…3\u001b[32m\u001b[39m\u001b[0m\u001b[33m\u001b[39m\u001b[0m\u001b[35m]\u001b[39m\r\n\u001b[7m!431 Z3 \u001b[31m?1\u001b[m\u001b[7m L3\u001b[27m \u001b[1m~/code/cadoles/emissary →\u001b[0m \u001b[K\u001b[192C:( 100%\u001b[199D\u001b[?1h\u001b=\u001b[?2004h"]
|
||||
[350.165425, "o", "\u001b[?2004l\u001b[K\r\r\n"]
|
32
misc/docker/agent.yml
Normal file
32
misc/docker/agent.yml
Normal file
@ -0,0 +1,32 @@
|
||||
logger:
|
||||
level: ${EMISSARY_AGENT_LOGGER_LEVEL:-1}
|
||||
format: ${EMISSARY_AGENT_LOGGER_FORMAT:-human}
|
||||
sentry:
|
||||
dsn: ${EMISSARY_AGENT_SENTRY_DSN}
|
||||
agent:
|
||||
serverUrl: ${EMISSARY_AGENT_SERVER_URL:-http://127.0.0.1:3000}
|
||||
privateKeyPath: ${EMISSARY_AGENT_PRIVATE_KEY_PATH:-/data/agent-key.json}
|
||||
reconciliationInterval: ${EMISSARY_AGENT_RECONCILIATION_INTERVAL:-30}
|
||||
controllers:
|
||||
persistence:
|
||||
enabled: true
|
||||
stateFile: ${EMISSARY_AGENT_CONTROLLERS_PERSISTENCE_STATE_FILE:-/data/state.json}
|
||||
spec:
|
||||
enabled: true
|
||||
proxy:
|
||||
enabled: true
|
||||
uci:
|
||||
enabled: false
|
||||
app:
|
||||
enabled: true
|
||||
dataDir: ${EMISSARY_AGENT_CONTROLLERS_APP_DATA_DIR:-/data/apps/data}
|
||||
downloadDir: ${EMISSARY_AGENT_CONTROLLERS_APP_DOWNLOAD_DIR:-/data/apps/bundles}
|
||||
sysupgrade:
|
||||
enabled: false
|
||||
mdns:
|
||||
enabled: true
|
||||
collectors:
|
||||
- name: uname
|
||||
command: uname
|
||||
args:
|
||||
- -a
|
10
misc/docker/docker-agent-wrapper.sh
Normal file
10
misc/docker/docker-agent-wrapper.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Generate machine id if not exists
|
||||
if [ ! -f /etc/machine-id ]; then
|
||||
cat /proc/sys/kernel/random/uuid > /etc/machine-id
|
||||
fi
|
||||
|
||||
exec $@
|
35
misc/docker/server.yml
Normal file
35
misc/docker/server.yml
Normal file
@ -0,0 +1,35 @@
|
||||
logger:
|
||||
level: ${EMISSARY_SERVER_LOGGER_LEVEL:-1}
|
||||
format: ${EMISSARY_SERVER_LOGGER_FORMAT:-human}
|
||||
sentry:
|
||||
dsn: ${EMISSARY_SERVER_SENTRY_DSN}
|
||||
server:
|
||||
http:
|
||||
host: ${EMISSARY_SERVER_HTTP_HOST:-0.0.0.0}
|
||||
port: ${EMISSARY_SERVER_HTTP_HOST:-3000}
|
||||
database:
|
||||
driver: ${EMISSARY_SERVER_DATABASE_DRIVER:-sqlite}
|
||||
dsn: ${EMISSARY_SERVER_DATABASE_DSN:-sqlite:///data/emissary.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=150000&_pragma=journal_mode=WAL}
|
||||
cors:
|
||||
allowedOrigins:
|
||||
- ${EMISSARY_SERVER_CORS_ALLOWED_ORIGINS:-http://localhost:3001}
|
||||
allowCredentials: ${EMISSARY_SERVER_CORS_ALLOW_CREDENTIALS:-true}
|
||||
allowMethods:
|
||||
- POST
|
||||
- GET
|
||||
- PUT
|
||||
- DELETE
|
||||
allowedHeaders:
|
||||
- Origin
|
||||
- Accept
|
||||
- Content-Type
|
||||
- Authorization
|
||||
- Sentry-Trace
|
||||
debug: ${EMISSARY_SERVER_CORS_DEBUG:-false}
|
||||
auth:
|
||||
local:
|
||||
privateKeyPath: ${EMISSARY_SERVER_AUTH_LOCAL_PRIVATE_KEY_PATH:-/data/server-key.json}
|
||||
remote:
|
||||
jwksUrl: "${EMISSARY_SERVER_AUTH_REMOTE_JWKS_URL}"
|
||||
roleExtractionRules:
|
||||
- "${EMISSARY_SERVER_AUTH_ROLE_EXTRACTION_RULES_0:-jwt.role != nil ? str(jwt.role) : ''}"
|
@ -4,7 +4,7 @@ ARG HTTP_PROXY=
|
||||
ARG HTTPS_PROXY=
|
||||
ARG http_proxy=
|
||||
ARG https_proxy=
|
||||
ARG GO_VERSION=1.19.2
|
||||
ARG GO_VERSION=1.21.5
|
||||
|
||||
# Install dev environment dependencies
|
||||
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
||||
|
@ -1,38 +1,69 @@
|
||||
# Emissary agent configuration
|
||||
|
||||
# Logger configuration
|
||||
logger:
|
||||
# Logging verbosity
|
||||
# DEBUG: 0
|
||||
# INFO: 1
|
||||
# WARN: 2
|
||||
# ERROR: 3
|
||||
# CRITICAL: 4
|
||||
level: 1
|
||||
# Logging format
|
||||
# Possible values: human, json
|
||||
format: human
|
||||
|
||||
# Agent configuration
|
||||
agent:
|
||||
# Emissary server URL
|
||||
serverUrl: http://127.0.0.1:3000
|
||||
# Agent private key path
|
||||
privateKeyPath: /var/lib/emissary/agent-key.json
|
||||
reconciliationInterval: 5
|
||||
# Agent reconciliation interval (in seconds)
|
||||
reconciliationInterval: 30
|
||||
|
||||
# Controllers configuration
|
||||
controllers:
|
||||
# Persistence controller configuration
|
||||
persistence:
|
||||
enabled: true
|
||||
stateFile: /var/lib/emissary/state.json
|
||||
|
||||
# Spec controller configuration
|
||||
spec:
|
||||
enabled: true
|
||||
|
||||
# Proxy controller configuration
|
||||
proxy:
|
||||
enabled: true
|
||||
|
||||
# UCI controller configuration
|
||||
uci:
|
||||
enabled: true
|
||||
binPath: uci
|
||||
configBackupFile: /var/lib/emissary/uci-backup.conf
|
||||
|
||||
# App controller configuration
|
||||
app:
|
||||
enabled: true
|
||||
dataDir: /var/lib/emissary/apps/data
|
||||
downloadDir: /var/lib/emissary/apps/bundles
|
||||
|
||||
# Sysupgrade controller configuration
|
||||
sysupgrade:
|
||||
enabled: true
|
||||
sysupgradeCommand:
|
||||
- sysupgrade
|
||||
- --force
|
||||
- -u
|
||||
- -v
|
||||
- --ignore-minor-compat-version
|
||||
- '%FIRMWARE%'
|
||||
firmwareVersionCommand:
|
||||
- sh
|
||||
- -c
|
||||
- source /etc/openwrt_release && echo "$DISTRIB_ID-$DISTRIB_RELEASE-$DISTRIB_REVISION"
|
||||
|
||||
# Collectors configuration
|
||||
collectors:
|
||||
- name: uname
|
||||
command: uname
|
||||
|
@ -1,15 +1,38 @@
|
||||
# Emissary server configuration
|
||||
|
||||
# Logger configuration
|
||||
logger:
|
||||
# Logging verbosity
|
||||
# DEBUG: 0
|
||||
# INFO: 1
|
||||
# WARN: 2
|
||||
# ERROR: 3
|
||||
# CRITICAL: 4
|
||||
level: 1
|
||||
# Logging format
|
||||
# Possible values: human, json
|
||||
format: human
|
||||
|
||||
# Server configuration
|
||||
server:
|
||||
privateKeyPath: /var/lib/emissary/server-key.json
|
||||
issuer: http://127.0.0.1:3000
|
||||
# HTTP server configuration
|
||||
http:
|
||||
# Listening address (0.0.0.0 to listen on all interfaces)
|
||||
host: 0.0.0.0
|
||||
# Listening port
|
||||
port: 3000
|
||||
|
||||
# Database configuration
|
||||
database:
|
||||
# Database driver
|
||||
# Possible values: sqlite
|
||||
driver: sqlite
|
||||
dsn: sqlite:///var/lib/emissary/data.sqlite?_pragma=foreign_keys(1)&_pragma=journal_mode(WAL)&_txlock=immediate
|
||||
# Database DSN
|
||||
# sqlite: see https://github.com/mattn/go-sqlite3#connection-string
|
||||
dsn: sqlite:///var/lib/emissary/data.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000
|
||||
|
||||
# CORS configuration
|
||||
# See https://developer.mozilla.org/en/docs/Glossary/CORS
|
||||
cors:
|
||||
allowedOrigins: []
|
||||
allowCredentials: true
|
||||
@ -24,4 +47,25 @@ server:
|
||||
- Content-Type
|
||||
- Authorization
|
||||
- Sentry-Trace
|
||||
debug: false
|
||||
|
||||
# Auth configuration
|
||||
auth:
|
||||
# Local authentication configuration
|
||||
local:
|
||||
privateKeyPath: /var/lib/emissary/server-key.json
|
||||
|
||||
# Remote authentication configuration
|
||||
# Disabled by default
|
||||
remote: ~
|
||||
# jwksUrl: https://my-server/.well-known/jwks.json
|
||||
|
||||
# Role extraction rules
|
||||
# Permit to derivate user's role
|
||||
# from the received JWT.
|
||||
#
|
||||
# The first rule returning a non empty
|
||||
# string will define the role of the user.
|
||||
#
|
||||
# The role should be 'reader' or 'writer'.
|
||||
roleExtractionRules:
|
||||
- "jwt.role != nil ? str(jwt.role) : ''"
|
||||
|
10
misc/packaging/openrc/emissary-agent.logrotate.conf
Normal file
10
misc/packaging/openrc/emissary-agent.logrotate.conf
Normal file
@ -0,0 +1,10 @@
|
||||
/var/log/emissary/agent.log {
|
||||
missingok
|
||||
sharedscripts
|
||||
compress
|
||||
rotate 7
|
||||
daily
|
||||
postrotate
|
||||
/etc/init.d/emissary-agent restart
|
||||
endscript
|
||||
}
|
10
misc/packaging/openrc/emissary-server.logrotate.conf
Normal file
10
misc/packaging/openrc/emissary-server.logrotate.conf
Normal file
@ -0,0 +1,10 @@
|
||||
/var/log/emissary/server.log {
|
||||
missingok
|
||||
sharedscripts
|
||||
compress
|
||||
rotate 7
|
||||
daily
|
||||
postrotate
|
||||
/etc/init.d/emissary-server restart
|
||||
endscript
|
||||
}
|
@ -6,7 +6,7 @@ After=network.target
|
||||
Type=simple
|
||||
Restart=always
|
||||
WorkingDirectory=/usr/share/emissary
|
||||
ExecStart=/usr/bin/emissary --config /etc/emissary/config.yml agent run
|
||||
ExecStart=/usr/bin/emissary --config /etc/emissary/agent.yml agent run
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -4,9 +4,9 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
Restart=on-failure
|
||||
WorkingDirectory=/usr/share/emissary
|
||||
ExecStart=/usr/bin/emissary --config /etc/emissary/config.yml server run
|
||||
ExecStart=/usr/bin/emissary --config /etc/emissary/server.yml server run
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
misc/resources/logo.svg
Normal file
1
misc/resources/logo.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 12 KiB |
@ -1,36 +1,54 @@
|
||||
{
|
||||
"apps": {
|
||||
"portal": {
|
||||
"url": "https://emissary.cadol.es/files/apps/arcad.portal_v2023.3.28-3feda80.zip",
|
||||
"sha256sum": "921402c44a5fa554d5b630d1284957b05416aa6872b402314cf52e964e06fac5",
|
||||
"address": "127.0.0.1:8082",
|
||||
"format": "zip"
|
||||
"app.arcad.edge.hextris": {
|
||||
"url": "https://emissary.cadol.es/files/apps/app.arcad.edge.hextris_v2023.4.20-2bbbe94.zip",
|
||||
"sha256sum": "67942ef4b623c46308c3f640b534bd4cb6b1d6021a422e40b62ab97658ba4586",
|
||||
"address": ":8083",
|
||||
"format": "zip",
|
||||
"storage": {
|
||||
"blobStoreDsn": "sqlite://apps/data/app.arcad.edge.hextris/blobstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"shareStoreDsn": "sqlite://apps/data/sharestore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"documentStoreDsn": "sqlite://apps/data/app.arcad.edge.hextris/documentstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000"
|
||||
}
|
||||
},
|
||||
"hextris": {
|
||||
"url": "https://emissary.cadol.es/files/apps/app.arcad.edge.hextris_v2023.3.22-33ece28.zip",
|
||||
"sha256sum": "5f9f3c8d6f22796beb051d747d7ff12efa17af9d1552c0ab08baef13703a2aba",
|
||||
"address": "127.0.0.1:8083",
|
||||
"format": "zip"
|
||||
"edge.sdk.client.test": {
|
||||
"url": "https://emissary.cadol.es/files/apps/edge.sdk.client.test_2023.10.22-stable.847.22a3326.zip",
|
||||
"sha256sum": "37aa6c4af57b647dc5cae4ec7d36f4289d99c1f090e533997e0d59188a0a04f4",
|
||||
"address": ":8084",
|
||||
"format": "zip",
|
||||
"storage": {
|
||||
"blobStoreDsn": "sqlite://apps/data/edge.sdk.client.test/blobstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"shareStoreDsn": "sqlite://apps/data/sharestore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"documentStoreDsn": "sqlite://apps/data/edge.sdk.client.test/documentstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"url": "https://emissary.cadol.es/files/apps/edge.sdk.client.test_v2023.3.24-ed535b6.zip",
|
||||
"sha256sum": "e97b7b79159bb5d6a13b05644c091272b02a1a3cbb1b613dd5eda37e1eb84623",
|
||||
"address": "127.0.0.1:8084",
|
||||
"format": "zip"
|
||||
},
|
||||
"diffusion": {
|
||||
"url": "https://emissary.cadol.es/files/apps/arcad.diffusion_v2023.3.29-5b3fab4.zip",
|
||||
"sha256sum": "1282e75719beedbc7c7e67879389d0f3e11c86d3d2c37cf13da624a66faaeb58",
|
||||
"address": "127.0.0.1:8085",
|
||||
"format": "zip"
|
||||
"arcad.diffusion": {
|
||||
"url": "https://emissary.cadol.es/files/apps/arcad.diffusion_v2023.10.12-cab0070.zip",
|
||||
"sha256sum": "db58ec1ed463092fea2ee27cfd33dea5259739f1c6a4c9bf909ffd22392ee449",
|
||||
"address": ":8085",
|
||||
"format": "zip",
|
||||
"storage": {
|
||||
"blobStoreDsn": "sqlite://apps/data/arcad.diffusion/blobstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"shareStoreDsn": "sqlite://apps/data/sharestore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
|
||||
"documentStoreDsn": "sqlite://apps/data/arcad.diffusion/documentstore.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"appUrlTemplate": "http://{{ last ( splitList \".\" ( toString .Manifest.ID ) ) }}.arcad.local:8080",
|
||||
"appUrlResolving": {
|
||||
"ifaceMappings": {
|
||||
"lo": "http://{{ .DeviceIP }}:{{ .AppPort }}"
|
||||
},
|
||||
"defaultUrlTemplate": "http://{{ last ( splitList \".\" ( toString .Manifest.ID ) ) }}.localhost.arcad.lan:8080"
|
||||
},
|
||||
"unexpectedHostRedirect": {
|
||||
"acceptedHostPatterns": ["arcad.lan", "*.arcad.lan", "arcad-*.local", "*.*.*.*"],
|
||||
"hostTarget": "localhost.arcad.lan"
|
||||
},
|
||||
"auth": {
|
||||
"local": {
|
||||
"key": "absolutlynotsecret",
|
||||
"cookieDomain": ".arcad.local",
|
||||
"signingAlgorithm": "HS256",
|
||||
"cookieDuration": "1h",
|
||||
"accounts": [
|
||||
{
|
||||
@ -38,11 +56,44 @@
|
||||
"algo": "plain",
|
||||
"password": "admin",
|
||||
"claims": {
|
||||
"arcad_role": "admin",
|
||||
"arcad_tenant": "x86",
|
||||
"edge_role": "admin",
|
||||
"edge_tenant": "emissary-dev",
|
||||
"preferred_username": "Admin",
|
||||
"sub": "admin"
|
||||
}
|
||||
},
|
||||
{
|
||||
"username": "superadmin",
|
||||
"algo": "plain",
|
||||
"password": "superadmin",
|
||||
"claims": {
|
||||
"edge_role": "superadmin",
|
||||
"edge_tenant": "emissary-dev",
|
||||
"preferred_username": "SuperAdmin",
|
||||
"sub": "superadmin"
|
||||
}
|
||||
},
|
||||
{
|
||||
"username": "user",
|
||||
"algo": "plain",
|
||||
"password": "user",
|
||||
"claims": {
|
||||
"edge_role": "user",
|
||||
"edge_tenant": "emissary-dev",
|
||||
"preferred_username": "User",
|
||||
"sub": "user"
|
||||
}
|
||||
},
|
||||
{
|
||||
"username": "superuser",
|
||||
"algo": "plain",
|
||||
"password": "superuser",
|
||||
"claims": {
|
||||
"edge_role": "superuser",
|
||||
"edge_tenant": "emissary-dev",
|
||||
"preferred_username": "SuperUser",
|
||||
"sub": "superuser"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -3,36 +3,22 @@
|
||||
"arcad": {
|
||||
"type": "_http._tcp",
|
||||
"port": 8080,
|
||||
"host": "arcad",
|
||||
"ifaces": ["wlp4s0"]
|
||||
},
|
||||
"portal": {
|
||||
"type": "_http._tcp",
|
||||
"port": 8080,
|
||||
"host": "portal",
|
||||
"domain": "arcad.local",
|
||||
"ifaces": ["wlp4s0"]
|
||||
"host": "arcad"
|
||||
},
|
||||
"hextris": {
|
||||
"type": "_http._tcp",
|
||||
"port": 8080,
|
||||
"host": "hextris",
|
||||
"domain": "arcad.local",
|
||||
"ifaces": ["wlp4s0"]
|
||||
"host": "arcad-hextris"
|
||||
},
|
||||
"test": {
|
||||
"type": "_http._tcp",
|
||||
"port": 8080,
|
||||
"host": "test",
|
||||
"domain": "arcad.local",
|
||||
"ifaces": ["wlp4s0"]
|
||||
"host": "arcad-test"
|
||||
},
|
||||
"diffusion": {
|
||||
"type": "_http._tcp",
|
||||
"port": 8080,
|
||||
"host": "diffusion",
|
||||
"domain": "arcad.local",
|
||||
"ifaces": ["wlp4s0"]
|
||||
"host": "arcad-diffusion"
|
||||
}
|
||||
}
|
||||
}
|
@ -4,25 +4,17 @@
|
||||
"address": ":8080",
|
||||
"mappings": [
|
||||
{
|
||||
"hostPattern": "portal.arcad.local:*",
|
||||
"target": "http://localhost:8082"
|
||||
},
|
||||
{
|
||||
"hostPattern": "hextris.arcad.local:*",
|
||||
"hostPattern": "hextris.localhost.arcad.lan:*",
|
||||
"target": "http://localhost:8083"
|
||||
},
|
||||
{
|
||||
"hostPattern": "test.arcad.local:*",
|
||||
"hostPattern": "test.localhost.arcad.lan:*",
|
||||
"target": "http://localhost:8084"
|
||||
},
|
||||
{
|
||||
"hostPattern": "diffusion.arcad.local:*",
|
||||
"hostPattern": "diffusion.localhost.arcad.lan:*",
|
||||
"target": "http://localhost:8085"
|
||||
},
|
||||
{
|
||||
"hostPattern": "arcad-portal.local:*",
|
||||
"target": "http://localhost:8082"
|
||||
},
|
||||
{
|
||||
"hostPattern": "arcad-hextris.local:*",
|
||||
"target": "http://localhost:8083"
|
||||
@ -37,7 +29,7 @@
|
||||
},
|
||||
{
|
||||
"hostPattern": "*",
|
||||
"target": "http://localhost:8082"
|
||||
"target": "http://localhost:8084"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
2067
misc/spec-samples/uci.emissary.cadoles.com.json
Normal file
2067
misc/spec-samples/uci.emissary.cadoles.com.json
Normal file
@ -0,0 +1,2067 @@
|
||||
{
|
||||
"config": {
|
||||
"packages": [
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "dnsmasq",
|
||||
"options": [
|
||||
{
|
||||
"name": "domainneeded",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "boguspriv",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "filterwin2k",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"name": "localise_queries",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "rebind_localhost",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "local",
|
||||
"type": "option",
|
||||
"value": "/lan/"
|
||||
},
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "option",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "expandhosts",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "nonegcache",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"name": "authoritative",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "readethers",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "leasefile",
|
||||
"type": "option",
|
||||
"value": "/tmp/dhcp.leases"
|
||||
},
|
||||
{
|
||||
"name": "resolvfile",
|
||||
"type": "option",
|
||||
"value": "/tmp/resolv.conf.d/resolv.conf.auto"
|
||||
},
|
||||
{
|
||||
"name": "nonwildcard",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "localservice",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "ednspacket_max",
|
||||
"type": "option",
|
||||
"value": "1232"
|
||||
},
|
||||
{
|
||||
"name": "rebind_protection",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"type": "list",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"type": "list",
|
||||
"value": "guest"
|
||||
},
|
||||
{
|
||||
"name": "logqueries",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "list",
|
||||
"value": "/arcad.lan/10.10.10.1"
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "list",
|
||||
"value": "/#/10.10.10.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "dhcp",
|
||||
"options": [
|
||||
{
|
||||
"name": "interface",
|
||||
"type": "option",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "start",
|
||||
"type": "option",
|
||||
"value": "100"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "option",
|
||||
"value": "150"
|
||||
},
|
||||
{
|
||||
"name": "leasetime",
|
||||
"type": "option",
|
||||
"value": "12h"
|
||||
},
|
||||
{
|
||||
"name": "dhcpv4",
|
||||
"type": "option",
|
||||
"value": "server"
|
||||
},
|
||||
{
|
||||
"name": "dhcpv6",
|
||||
"type": "option",
|
||||
"value": "server"
|
||||
},
|
||||
{
|
||||
"name": "ra",
|
||||
"type": "option",
|
||||
"value": "server"
|
||||
},
|
||||
{
|
||||
"name": "ra_slaac",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "ra_flags",
|
||||
"type": "list",
|
||||
"value": "managed-config"
|
||||
},
|
||||
{
|
||||
"name": "ra_flags",
|
||||
"type": "list",
|
||||
"value": "other-config"
|
||||
}
|
||||
],
|
||||
"section": "lan"
|
||||
},
|
||||
{
|
||||
"name": "dhcp",
|
||||
"options": [
|
||||
{
|
||||
"name": "interface",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "ignore",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
}
|
||||
],
|
||||
"section": "wan"
|
||||
},
|
||||
{
|
||||
"name": "odhcpd",
|
||||
"options": [
|
||||
{
|
||||
"name": "maindhcp",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"name": "leasefile",
|
||||
"type": "option",
|
||||
"value": "/tmp/hosts/odhcpd"
|
||||
},
|
||||
{
|
||||
"name": "leasetrigger",
|
||||
"type": "option",
|
||||
"value": "/usr/sbin/odhcpd-update"
|
||||
},
|
||||
{
|
||||
"name": "loglevel",
|
||||
"type": "option",
|
||||
"value": "4"
|
||||
}
|
||||
],
|
||||
"section": "odhcpd"
|
||||
},
|
||||
{
|
||||
"name": "dhcp",
|
||||
"options": [
|
||||
{
|
||||
"name": "interface",
|
||||
"type": "option",
|
||||
"value": "guest"
|
||||
},
|
||||
{
|
||||
"name": "start",
|
||||
"type": "option",
|
||||
"value": "100"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "option",
|
||||
"value": "150"
|
||||
},
|
||||
{
|
||||
"name": "leasetime",
|
||||
"type": "option",
|
||||
"value": "12h"
|
||||
},
|
||||
{
|
||||
"name": "dhcp_option",
|
||||
"type": "list",
|
||||
"value": "160,http://arcad.lan"
|
||||
}
|
||||
],
|
||||
"section": "guest"
|
||||
}
|
||||
],
|
||||
"name": "dhcp"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "dropbear",
|
||||
"options": [
|
||||
{
|
||||
"name": "PasswordAuth",
|
||||
"type": "option",
|
||||
"value": "on"
|
||||
},
|
||||
{
|
||||
"name": "RootPasswordAuth",
|
||||
"type": "option",
|
||||
"value": "on"
|
||||
},
|
||||
{
|
||||
"name": "Port",
|
||||
"type": "option",
|
||||
"value": "22"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "dropbear"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "main",
|
||||
"options": [
|
||||
{
|
||||
"name": "reconciliation_interval",
|
||||
"type": "option",
|
||||
"value": "60"
|
||||
},
|
||||
{
|
||||
"name": "server_url",
|
||||
"type": "option",
|
||||
"value": "https://emissary.cadol.es"
|
||||
}
|
||||
],
|
||||
"section": "agent"
|
||||
}
|
||||
],
|
||||
"name": "emissary"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "defaults",
|
||||
"options": [
|
||||
{
|
||||
"name": "syn_flood",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "input",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "output",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "forward",
|
||||
"type": "option",
|
||||
"value": "REJECT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "zone",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "network",
|
||||
"type": "list",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "input",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "output",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "forward",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "zone",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "network",
|
||||
"type": "list",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "network",
|
||||
"type": "list",
|
||||
"value": "wan6"
|
||||
},
|
||||
{
|
||||
"name": "input",
|
||||
"type": "option",
|
||||
"value": "REJECT"
|
||||
},
|
||||
{
|
||||
"name": "output",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "forward",
|
||||
"type": "option",
|
||||
"value": "REJECT"
|
||||
},
|
||||
{
|
||||
"name": "masq",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "mtu_fix",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "forwarding",
|
||||
"options": [
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "dest",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-DHCP-Renew"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "udp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "68"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "family",
|
||||
"type": "option",
|
||||
"value": "ipv4"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-Ping"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "icmp"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "option",
|
||||
"value": "echo-request"
|
||||
},
|
||||
{
|
||||
"name": "family",
|
||||
"type": "option",
|
||||
"value": "ipv4"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-IGMP"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "igmp"
|
||||
},
|
||||
{
|
||||
"name": "family",
|
||||
"type": "option",
|
||||
"value": "ipv4"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-DHCPv6"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "udp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "546"
|
||||
},
|
||||
{
|
||||
"name": "family",
|
||||
"type": "option",
|
||||
"value": "ipv6"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-MLD"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "icmp"
|
||||
},
|
||||
{
|
||||
"name": "src_ip",
|
||||
"type": "option",
|
||||
"value": "fe80::/10"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "130/0"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "131/0"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "132/0"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "143/0"
|
||||
},
|
||||
{
|
||||
"name": "family",
|
||||
"type": "option",
|
||||
"value": "ipv6"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-ICMPv6-Input"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "icmp"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "echo-request"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "echo-reply"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "destination-unreachable"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "packet-too-big"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "time-exceeded"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "bad-header"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "unknown-header-type"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "router-solicitation"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "neighbour-solicitation"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "router-advertisement"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "neighbour-advertisement"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "option",
|
||||
"value": "1000/sec"
|
||||
},
|
||||
{
|
||||
"name": "family",
|
||||
"type": "option",
|
||||
"value": "ipv6"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-ICMPv6-Forward"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "dest",
|
||||
"type": "option",
|
||||
"value": "*"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "icmp"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "echo-request"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "echo-reply"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "destination-unreachable"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "packet-too-big"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "time-exceeded"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "bad-header"
|
||||
},
|
||||
{
|
||||
"name": "icmp_type",
|
||||
"type": "list",
|
||||
"value": "unknown-header-type"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"type": "option",
|
||||
"value": "1000/sec"
|
||||
},
|
||||
{
|
||||
"name": "family",
|
||||
"type": "option",
|
||||
"value": "ipv6"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-IPSec-ESP"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "dest",
|
||||
"type": "option",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "esp"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow-ISAKMP"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "dest",
|
||||
"type": "option",
|
||||
"value": "lan"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "500"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "udp"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow SSH on WAN"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "22"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow HTTP on WAN"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "80"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow HTTPS on WAN"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "443"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "zone",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "guest"
|
||||
},
|
||||
{
|
||||
"name": "input",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "output",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "forward",
|
||||
"type": "option",
|
||||
"value": "REJECT"
|
||||
},
|
||||
{
|
||||
"name": "network",
|
||||
"type": "list",
|
||||
"value": "guest"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow 8080 on WAN"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "8080"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow 8443 on WAN"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "8443"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "udp"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "5353"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow mDNS from device"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "udp"
|
||||
},
|
||||
{
|
||||
"name": "src_port",
|
||||
"type": "option",
|
||||
"value": "5353"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow mDNS to device"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "redirect",
|
||||
"options": [
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "DNAT"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "udp"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "guest"
|
||||
},
|
||||
{
|
||||
"name": "src_dport",
|
||||
"type": "option",
|
||||
"value": "53"
|
||||
},
|
||||
{
|
||||
"name": "dest_ip",
|
||||
"type": "option",
|
||||
"value": "10.10.10.1"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "53"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Redirect DNS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "redirect",
|
||||
"options": [
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "DNAT"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Redirect HTTP"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "guest"
|
||||
},
|
||||
{
|
||||
"name": "src_dport",
|
||||
"type": "option",
|
||||
"value": "80"
|
||||
},
|
||||
{
|
||||
"name": "dest_ip",
|
||||
"type": "option",
|
||||
"value": "10.10.10.1"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "80"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow 8081 for edge.sdk.client.test on WAN"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "8081"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow 8082 for app.arcad.edge.hextris on WAN"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "8082"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow 8083 for arcad.diffusion on WAN"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "8083"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "rule",
|
||||
"options": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "option",
|
||||
"value": "Allow 8084 for app.arcad.edge.menu on WAN"
|
||||
},
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "list",
|
||||
"value": "tcp"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"type": "option",
|
||||
"value": "wan"
|
||||
},
|
||||
{
|
||||
"name": "dest_port",
|
||||
"type": "option",
|
||||
"value": "8084"
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "option",
|
||||
"value": "ACCEPT"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "firewall"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "core",
|
||||
"options": [
|
||||
{
|
||||
"name": "lang",
|
||||
"type": "option",
|
||||
"value": "auto"
|
||||
},
|
||||
{
|
||||
"name": "mediaurlbase",
|
||||
"type": "option",
|
||||
"value": "/luci-static/bootstrap"
|
||||
},
|
||||
{
|
||||
"name": "resourcebase",
|
||||
"type": "option",
|
||||
"value": "/luci-static/resources"
|
||||
},
|
||||
{
|
||||
"name": "ubuspath",
|
||||
"type": "option",
|
||||
"value": "/ubus/"
|
||||
}
|
||||
],
|
||||
"section": "main"
|
||||
},
|
||||
{
|
||||
"name": "extern",
|
||||
"options": [
|
||||
{
|
||||
"name": "uci",
|
||||
"type": "option",
|
||||
"value": "/etc/config/"
|
||||
},
|
||||
{
|
||||
"name": "dropbear",
|
||||
"type": "option",
|
||||
"value": "/etc/dropbear/"
|
||||
},
|
||||
{
|
||||
"name": "openvpn",
|
||||
"type": "option",
|
||||
"value": "/etc/openvpn/"
|
||||
},
|
||||
{
|
||||
"name": "passwd",
|
||||
"type": "option",
|
||||
"value": "/etc/passwd"
|
||||
},
|
||||
{
|
||||
"name": "opkg",
|
||||
"type": "option",
|
||||
"value": "/etc/opkg.conf"
|
||||
},
|
||||
{
|
||||
"name": "firewall",
|
||||
"type": "option",
|
||||
"value": "/etc/firewall.user"
|
||||
},
|
||||
{
|
||||
"name": "uploads",
|
||||
"type": "option",
|
||||
"value": "/lib/uci/upload/"
|
||||
}
|
||||
],
|
||||
"section": "flash_keep"
|
||||
},
|
||||
{
|
||||
"name": "internal",
|
||||
"options": null,
|
||||
"section": "languages"
|
||||
},
|
||||
{
|
||||
"name": "internal",
|
||||
"options": [
|
||||
{
|
||||
"name": "sessionpath",
|
||||
"type": "option",
|
||||
"value": "/tmp/luci-sessions"
|
||||
},
|
||||
{
|
||||
"name": "sessiontime",
|
||||
"type": "option",
|
||||
"value": "3600"
|
||||
}
|
||||
],
|
||||
"section": "sauth"
|
||||
},
|
||||
{
|
||||
"name": "internal",
|
||||
"options": [
|
||||
{
|
||||
"name": "enable",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
}
|
||||
],
|
||||
"section": "ccache"
|
||||
},
|
||||
{
|
||||
"name": "internal",
|
||||
"options": [
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"type": "option",
|
||||
"value": "/luci-static/bootstrap"
|
||||
},
|
||||
{
|
||||
"name": "BootstrapDark",
|
||||
"type": "option",
|
||||
"value": "/luci-static/bootstrap-dark"
|
||||
},
|
||||
{
|
||||
"name": "BootstrapLight",
|
||||
"type": "option",
|
||||
"value": "/luci-static/bootstrap-light"
|
||||
}
|
||||
],
|
||||
"section": "themes"
|
||||
},
|
||||
{
|
||||
"name": "internal",
|
||||
"options": [
|
||||
{
|
||||
"name": "rollback",
|
||||
"type": "option",
|
||||
"value": "90"
|
||||
},
|
||||
{
|
||||
"name": "holdoff",
|
||||
"type": "option",
|
||||
"value": "4"
|
||||
},
|
||||
{
|
||||
"name": "timeout",
|
||||
"type": "option",
|
||||
"value": "5"
|
||||
},
|
||||
{
|
||||
"name": "display",
|
||||
"type": "option",
|
||||
"value": "1.5"
|
||||
}
|
||||
],
|
||||
"section": "apply"
|
||||
},
|
||||
{
|
||||
"name": "internal",
|
||||
"options": [
|
||||
{
|
||||
"name": "dns",
|
||||
"type": "option",
|
||||
"value": "openwrt.org"
|
||||
},
|
||||
{
|
||||
"name": "ping",
|
||||
"type": "option",
|
||||
"value": "openwrt.org"
|
||||
},
|
||||
{
|
||||
"name": "route",
|
||||
"type": "option",
|
||||
"value": "openwrt.org"
|
||||
}
|
||||
],
|
||||
"section": "diag"
|
||||
}
|
||||
],
|
||||
"name": "luci"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "interface",
|
||||
"options": [
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "static"
|
||||
},
|
||||
{
|
||||
"name": "ipaddr",
|
||||
"type": "option",
|
||||
"value": "127.0.0.1"
|
||||
},
|
||||
{
|
||||
"name": "netmask",
|
||||
"type": "option",
|
||||
"value": "255.0.0.0"
|
||||
},
|
||||
{
|
||||
"name": "device",
|
||||
"type": "option",
|
||||
"value": "lo"
|
||||
}
|
||||
],
|
||||
"section": "loopback"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"options": [
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "dhcp"
|
||||
},
|
||||
{
|
||||
"name": "device",
|
||||
"type": "option",
|
||||
"value": "eth0"
|
||||
}
|
||||
],
|
||||
"section": "wan"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"options": [
|
||||
{
|
||||
"name": "proto",
|
||||
"type": "option",
|
||||
"value": "static"
|
||||
},
|
||||
{
|
||||
"name": "device",
|
||||
"type": "option",
|
||||
"value": "wlan0"
|
||||
},
|
||||
{
|
||||
"name": "ipaddr",
|
||||
"type": "option",
|
||||
"value": "10.10.10.1"
|
||||
},
|
||||
{
|
||||
"name": "netmask",
|
||||
"type": "option",
|
||||
"value": "255.255.255.0"
|
||||
}
|
||||
],
|
||||
"section": "guest"
|
||||
}
|
||||
],
|
||||
"name": "network"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "rpcd",
|
||||
"options": [
|
||||
{
|
||||
"name": "socket",
|
||||
"type": "option",
|
||||
"value": "/var/run/ubus/ubus.sock"
|
||||
},
|
||||
{
|
||||
"name": "timeout",
|
||||
"type": "option",
|
||||
"value": "30"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "login",
|
||||
"options": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "option",
|
||||
"value": "root"
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"type": "option",
|
||||
"value": "$p$root"
|
||||
},
|
||||
{
|
||||
"name": "read",
|
||||
"type": "list",
|
||||
"value": "*"
|
||||
},
|
||||
{
|
||||
"name": "write",
|
||||
"type": "list",
|
||||
"value": "*"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "rpcd"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "system",
|
||||
"options": [
|
||||
{
|
||||
"name": "hostname",
|
||||
"type": "option",
|
||||
"value": "arcad-will"
|
||||
},
|
||||
{
|
||||
"name": "timezone",
|
||||
"type": "option",
|
||||
"value": "UTC"
|
||||
},
|
||||
{
|
||||
"name": "ttylogin",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"name": "log_size",
|
||||
"type": "option",
|
||||
"value": "64"
|
||||
},
|
||||
{
|
||||
"name": "urandom_seed",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "timeserver",
|
||||
"options": [
|
||||
{
|
||||
"name": "enabled",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "enable_server",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"name": "server",
|
||||
"type": "list",
|
||||
"value": "0.openwrt.pool.ntp.org"
|
||||
},
|
||||
{
|
||||
"name": "server",
|
||||
"type": "list",
|
||||
"value": "1.openwrt.pool.ntp.org"
|
||||
},
|
||||
{
|
||||
"name": "server",
|
||||
"type": "list",
|
||||
"value": "2.openwrt.pool.ntp.org"
|
||||
},
|
||||
{
|
||||
"name": "server",
|
||||
"type": "list",
|
||||
"value": "3.openwrt.pool.ntp.org"
|
||||
}
|
||||
],
|
||||
"section": "ntp"
|
||||
}
|
||||
],
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "network",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "network"
|
||||
},
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "dhcp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "wireless",
|
||||
"options": [
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "network"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "firewall",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "firewall"
|
||||
},
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "luci-splash"
|
||||
},
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "qos"
|
||||
},
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "miniupnpd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "olsr",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "olsrd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "dhcp",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "dnsmasq"
|
||||
},
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "odhcpd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "odhcpd",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "odhcpd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "dropbear",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "dropbear"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "httpd",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "httpd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "fstab",
|
||||
"options": [
|
||||
{
|
||||
"name": "exec",
|
||||
"type": "option",
|
||||
"value": "/sbin/block mount"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "qos",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "qos"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "system",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "led"
|
||||
},
|
||||
{
|
||||
"name": "exec",
|
||||
"type": "option",
|
||||
"value": "/etc/init.d/log reload"
|
||||
},
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "luci_statistics"
|
||||
},
|
||||
{
|
||||
"name": "affects",
|
||||
"type": "list",
|
||||
"value": "dhcp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "luci_splash",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "luci_splash"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "upnpd",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "miniupnpd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ntpclient",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "ntpclient"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "samba",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "samba"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "tinyproxy",
|
||||
"options": [
|
||||
{
|
||||
"name": "init",
|
||||
"type": "option",
|
||||
"value": "tinyproxy"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "ucitrack"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "uhttpd",
|
||||
"options": [
|
||||
{
|
||||
"name": "listen_http",
|
||||
"type": "list",
|
||||
"value": "0.0.0.0:8080"
|
||||
},
|
||||
{
|
||||
"name": "listen_http",
|
||||
"type": "list",
|
||||
"value": "[::]:8080"
|
||||
},
|
||||
{
|
||||
"name": "listen_https",
|
||||
"type": "list",
|
||||
"value": "0.0.0.0:8443"
|
||||
},
|
||||
{
|
||||
"name": "listen_https",
|
||||
"type": "list",
|
||||
"value": "[::]:8443"
|
||||
},
|
||||
{
|
||||
"name": "redirect_https",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"name": "home",
|
||||
"type": "option",
|
||||
"value": "/www"
|
||||
},
|
||||
{
|
||||
"name": "rfc1918_filter",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "max_requests",
|
||||
"type": "option",
|
||||
"value": "3"
|
||||
},
|
||||
{
|
||||
"name": "max_connections",
|
||||
"type": "option",
|
||||
"value": "100"
|
||||
},
|
||||
{
|
||||
"name": "cert",
|
||||
"type": "option",
|
||||
"value": "/etc/uhttpd.crt"
|
||||
},
|
||||
{
|
||||
"name": "key",
|
||||
"type": "option",
|
||||
"value": "/etc/uhttpd.key"
|
||||
},
|
||||
{
|
||||
"name": "cgi_prefix",
|
||||
"type": "option",
|
||||
"value": "/cgi-bin"
|
||||
},
|
||||
{
|
||||
"name": "lua_prefix",
|
||||
"type": "list",
|
||||
"value": "/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua"
|
||||
},
|
||||
{
|
||||
"name": "script_timeout",
|
||||
"type": "option",
|
||||
"value": "60"
|
||||
},
|
||||
{
|
||||
"name": "network_timeout",
|
||||
"type": "option",
|
||||
"value": "30"
|
||||
},
|
||||
{
|
||||
"name": "http_keepalive",
|
||||
"type": "option",
|
||||
"value": "20"
|
||||
},
|
||||
{
|
||||
"name": "tcp_keepalive",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "ubus_prefix",
|
||||
"type": "option",
|
||||
"value": "/ubus"
|
||||
}
|
||||
],
|
||||
"section": "main"
|
||||
},
|
||||
{
|
||||
"name": "cert",
|
||||
"options": [
|
||||
{
|
||||
"name": "days",
|
||||
"type": "option",
|
||||
"value": "730"
|
||||
},
|
||||
{
|
||||
"name": "key_type",
|
||||
"type": "option",
|
||||
"value": "ec"
|
||||
},
|
||||
{
|
||||
"name": "bits",
|
||||
"type": "option",
|
||||
"value": "2048"
|
||||
},
|
||||
{
|
||||
"name": "ec_curve",
|
||||
"type": "option",
|
||||
"value": "P-256"
|
||||
},
|
||||
{
|
||||
"name": "country",
|
||||
"type": "option",
|
||||
"value": "ZZ"
|
||||
},
|
||||
{
|
||||
"name": "state",
|
||||
"type": "option",
|
||||
"value": "Somewhere"
|
||||
},
|
||||
{
|
||||
"name": "location",
|
||||
"type": "option",
|
||||
"value": "Unknown"
|
||||
},
|
||||
{
|
||||
"name": "commonname",
|
||||
"type": "option",
|
||||
"value": "OpenWrt"
|
||||
}
|
||||
],
|
||||
"section": "defaults"
|
||||
}
|
||||
],
|
||||
"name": "uhttpd"
|
||||
},
|
||||
{
|
||||
"configs": [
|
||||
{
|
||||
"name": "wifi-device",
|
||||
"options": [
|
||||
{
|
||||
"name": "type",
|
||||
"type": "option",
|
||||
"value": "mac80211"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"type": "option",
|
||||
"value": "platform/soc/3f300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1"
|
||||
},
|
||||
{
|
||||
"name": "channel",
|
||||
"type": "option",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "band",
|
||||
"type": "option",
|
||||
"value": "2g"
|
||||
},
|
||||
{
|
||||
"name": "htmode",
|
||||
"type": "option",
|
||||
"value": "HT20"
|
||||
},
|
||||
{
|
||||
"name": "cell_density",
|
||||
"type": "option",
|
||||
"value": "0"
|
||||
}
|
||||
],
|
||||
"section": "radio0"
|
||||
},
|
||||
{
|
||||
"name": "wifi-iface",
|
||||
"options": [
|
||||
{
|
||||
"name": "device",
|
||||
"type": "option",
|
||||
"value": "radio0"
|
||||
},
|
||||
{
|
||||
"name": "mode",
|
||||
"type": "option",
|
||||
"value": "ap"
|
||||
},
|
||||
{
|
||||
"name": "ssid",
|
||||
"type": "option",
|
||||
"value": "Arcad - Connect and Play"
|
||||
},
|
||||
{
|
||||
"name": "encryption",
|
||||
"type": "option",
|
||||
"value": "none"
|
||||
},
|
||||
{
|
||||
"name": "network",
|
||||
"type": "option",
|
||||
"value": "guest"
|
||||
}
|
||||
],
|
||||
"section": "default_radio0"
|
||||
}
|
||||
],
|
||||
"name": "wireless"
|
||||
}
|
||||
]
|
||||
},
|
||||
"postImportCommands": []
|
||||
}
|
23
pkg/client/alias.go
Normal file
23
pkg/client/alias.go
Normal file
@ -0,0 +1,23 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/agent/metadata"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/jwk"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/spec"
|
||||
)
|
||||
|
||||
type (
|
||||
Spec = spec.Spec
|
||||
SpecName = spec.Name
|
||||
)
|
||||
|
||||
type (
|
||||
AgentID = datastore.AgentID
|
||||
Agent = datastore.Agent
|
||||
AgentStatus = datastore.AgentStatus
|
||||
)
|
||||
|
||||
type MetadataTuple = metadata.Tuple
|
||||
|
||||
type Key = jwk.Key
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (c *Client) DeleteAgent(ctx context.Context, agentID datastore.AgentID, funcs ...OptionFunc) (datastore.AgentID, error) {
|
||||
func (c *Client) DeleteAgent(ctx context.Context, agentID AgentID, funcs ...OptionFunc) (AgentID, error) {
|
||||
response := withResponse[struct {
|
||||
AgentID int64 `json:"agentId"`
|
||||
}]()
|
@ -4,12 +4,11 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/spec"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (c *Client) DeleteAgentSpec(ctx context.Context, agentID datastore.AgentID, name spec.Name, funcs ...OptionFunc) (spec.Name, error) {
|
||||
func (c *Client) DeleteAgentSpec(ctx context.Context, agentID AgentID, name SpecName, funcs ...OptionFunc) (SpecName, error) {
|
||||
payload := struct {
|
||||
Name spec.Name `json:"name"`
|
||||
}{
|
@ -4,13 +4,12 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (c *Client) GetAgent(ctx context.Context, agentID datastore.AgentID, funcs ...OptionFunc) (*datastore.Agent, error) {
|
||||
func (c *Client) GetAgent(ctx context.Context, agentID AgentID, funcs ...OptionFunc) (*Agent, error) {
|
||||
response := withResponse[struct {
|
||||
Agent *datastore.Agent `json:"agent"`
|
||||
Agent *Agent `json:"agent"`
|
||||
}]()
|
||||
|
||||
path := fmt.Sprintf("/api/v1/agents/%d", agentID)
|
@ -4,12 +4,11 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/datastore"
|
||||
"forge.cadoles.com/Cadoles/emissary/internal/spec"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (c *Client) GetAgentSpecs(ctx context.Context, agentID datastore.AgentID, funcs ...OptionFunc) ([]spec.Spec, error) {
|
||||
func (c *Client) GetAgentSpecs(ctx context.Context, agentID AgentID, funcs ...OptionFunc) ([]Spec, error) {
|
||||
response := withResponse[struct {
|
||||
Specs []*spec.RawSpec `json:"specs"`
|
||||
}]()
|
@ -16,8 +16,8 @@ type QueryAgentsOptions struct {
|
||||
Limit *int
|
||||
Offset *int
|
||||
Thumbprints []string
|
||||
IDs []datastore.AgentID
|
||||
Statuses []datastore.AgentStatus
|
||||
IDs []AgentID
|
||||
Statuses []AgentStatus
|
||||
}
|
||||
|
||||
func WithQueryAgentsOptions(funcs ...OptionFunc) QueryAgentsOptionFunc {
|
||||
@ -56,7 +56,7 @@ func WithQueryAgentsStatus(statuses ...datastore.AgentStatus) QueryAgentsOptionF
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Client) QueryAgents(ctx context.Context, funcs ...QueryAgentsOptionFunc) ([]*datastore.Agent, int, error) {
|
||||
func (c *Client) QueryAgents(ctx context.Context, funcs ...QueryAgentsOptionFunc) ([]*Agent, int, error) {
|
||||
options := &QueryAgentsOptions{}
|
||||
for _, fn := range funcs {
|
||||
fn(options)
|
@ -9,8 +9,8 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (c *Client) RegisterAgent(ctx context.Context, key jwk.Key, thumbprint string, meta []metadata.Tuple, funcs ...OptionFunc) (*datastore.Agent, error) {
|
||||
keySet, err := jwk.PublicKeySet(key)
|
||||
func (c *Client) RegisterAgent(ctx context.Context, key Key, thumbprint string, meta []MetadataTuple, funcs ...OptionFunc) (*Agent, error) {
|
||||
keySet, err := jwk.RS256PublicKeySet(key)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (c *Client) UpdateAgentSpec(ctx context.Context, agentID datastore.AgentID, spc spec.Spec, funcs ...OptionFunc) (*datastore.Spec, error) {
|
||||
func (c *Client) UpdateAgentSpec(ctx context.Context, agentID AgentID, spc Spec, funcs ...OptionFunc) (Spec, error) {
|
||||
payload := struct {
|
||||
Name spec.Name `json:"name"`
|
||||
Revision int `json:"revision"`
|
Reference in New Issue
Block a user