Commit graph

3882 commits

Author SHA1 Message Date
miampf
c8b0175f1c
replaced format with msg in needed parameters 2024-02-08 13:15:08 +01:00
miampf
4854e97c86
rewrote apply.go warnLog/warnLogger 2024-02-08 13:15:08 +01:00
miampf
8204e06f31
clean up the middleware logger with r.Add() 2024-02-08 13:15:08 +01:00
miampf
e94a04c05e
Verbosity numbers now correspond to slog log Levels 2024-02-08 13:15:08 +01:00
miampf
747af57b25
rewrote use of With() in dev-docs 2024-02-08 13:15:08 +01:00
miampf
62f2e44691
log with LevelError if unknown level is used for middlewareLogger 2024-02-08 13:15:08 +01:00
miampf
f875466bc7
fixed issues from rebase 2024-02-08 13:15:08 +01:00
miampf
8a246a07b4
updated conventions.md to more idiomatic suggestion 2024-02-08 13:15:08 +01:00
miampf
081d357e58
fixed issues detected by bazel check 2024-02-08 13:15:08 +01:00
Malte Poll
972f832a6e
tidy 2024-02-08 13:15:08 +01:00
miampf
d80383d993
added copyright notice 2024-02-08 13:15:07 +01:00
miampf
0b75b429c3
use Stderr instead of Stdout for logging 2024-02-08 13:15:07 +01:00
miampf
d4b4992731
reworded for godoc 2024-02-08 13:15:07 +01:00
miampf
0c92fa9998
updated docs against format strings + correct function With() 2024-02-08 13:15:07 +01:00
miampf
35755c6d12
readded libraries to integration tests 2024-02-08 13:15:07 +01:00
miampf
a2ded13ea6
rewrote internal/grpc/grpclog 2024-02-08 13:15:07 +01:00
miampf
700d886c57
use helper functions in grpclog to reduce duplication 2024-02-08 13:15:07 +01:00
miampf
3e6375e763
move LevelHandler to own file 2024-02-08 13:15:07 +01:00
miampf
7f0c697592
set level instead of logger in middleware 2024-02-08 13:15:07 +01:00
miampf
76ada50c17
Wrote and applied helper function for tests
replaced with new function

removed log/slog

readded log/slog when needed

fixed last testwriter problems
2024-02-08 13:15:07 +01:00
miampf
944bdedc59
remove mention of nonexistent Fatal() from docs 2024-02-08 13:15:03 +01:00
miampf
eb69861925
use correct handler in disk-mapper benchmark 2024-02-08 13:15:03 +01:00
miampf
00a2c9861d
bazel run //:tidy 2024-02-08 13:15:03 +01:00
miampf
d6f534db4a
rewrote disk-mapper integration test 2024-02-08 13:15:03 +01:00
miampf
5bcd295921
bazel tidy 2024-02-08 13:15:03 +01:00
miampf
3f51297db5
rewrote docs 2024-02-08 13:14:48 +01:00
miampf
941889ade7
fixed final issues
fixed format strings for slog
2024-02-08 13:14:48 +01:00
miampf
69556e84d9
convert byte array to string to log test correctly 2024-02-08 13:14:41 +01:00
miampf
69cbd155db
fixed some general problems
imports, wrong logging calls and similar stuff. Unit tests work now
2024-02-08 13:14:41 +01:00
miampf
c1168588e6
dont rewrite operators and dont write replaceAttr function 2024-02-08 13:14:32 +01:00
miampf
7cabd03ade
rewrote documenting comment for logger package 2024-02-08 13:14:32 +01:00
miampf
0e4d220c92
added and used LevelHandler 2024-02-08 13:14:32 +01:00
miampf
e40a99ca3a
fixup after rebase 2024-02-08 13:14:32 +01:00
miampf
d61f616c85
Changed TODO comments to reflect new ideas
new/better WIP TODOs

wrote a note for fatal logging
2024-02-08 13:14:15 +01:00
miampf
0b0d3f7441
remove unused dependencies 2024-02-08 13:14:14 +01:00
miampf
d802001f45
removed forgotten zap references 2024-02-08 13:14:14 +01:00
miampf
3b6feb0e64
found solution for grpc logger caller skip 2024-02-08 13:14:14 +01:00
miampf
8dc6ae0334
simplified logger package 2024-02-08 13:14:14 +01:00
miampf
f16ccf5679
rewrote packages
keyservice
joinservice
upgrade-agent
measurement-reader
debugd
disk-mapper

rewrote joinservice main

rewrote some unit tests

rewrote upgrade-agent + some grpc functions

rewrote measurement-reader

rewrote debugd

removed unused import

removed forgotten zap reference in measurements reader

rewrote disk-mapper + tests

rewrote packages

verify
disk-mapper
malicious join
bootstrapper
attestationconfigapi
versionapi
internal/cloud/azure
disk-mapper tests
image/upload/internal/cmd

rewrote verify (WIP with loglevel increase)

rewrote forgotten zap references in disk-mapper

rewrote malicious join

rewrote bootstrapper

rewrote parts of internal/

rewrote attestationconfigapi (WIP)

rewrote versionapi cli

rewrote internal/cloud/azure

rewrote disk-mapper tests (untested by me rn)

rewrote image/upload/internal/cmd

removed forgotten zap references in verify/cmd

rewrote packages

hack/oci-pin
hack/qemu-metadata-api
debugd/internal/debugd/deploy
hack/bazel-deps-mirror
cli/internal/cmd
cli-k8s-compatibility

rewrote hack/qemu-metadata-api/server

rewrote debugd/internal/debugd/deploy

rewrote hack/bazel-deps-mirror

rewrote rest of hack/qemu-metadata-api

rewrote forgotten zap references in joinservice server

rewrote cli/internal/cmd

rewrote cli-k8s-compatibility

rewrote packages

internal/staticupload
e2d/internal/upgrade
internal/constellation/helm
internal/attestation/aws/snp
internal/attestation/azure/trustedlaunch
joinservice/internal/certcache/amkds

some missed unit tests

rewrote e2e/internal/upgrade

rewrote internal/constellation/helm

internal/attestation/aws/snp

internal/attestation/azure/trustedlaunch

joinservice/internal/certcache/amkds

search and replace test logging over all left *_test.go
2024-02-08 13:14:14 +01:00
miampf
48d5a157dd
rewrote doc/description strings in logger
fixed some stuff I didn't see

replaced forgotten zap reference
removed unneeded dependency
2024-02-08 13:12:28 +01:00
miampf
1d0c6aa7fc
added a test writer
removed unnecessary writer
2024-02-08 13:12:28 +01:00
miampf
6cc282bc7c
rewrote some logger helper functions
rewrote interceptors + middleware logging
2024-02-08 13:12:28 +01:00
renovate[bot]
3765cb0762
deps: update actions/upload-artifact and actions/download-artifact action to v4 (#2756)
* deps: update actions/upload-artifact action to v4
* deps: update actions/download-artifacts action to v4

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 14:50:15 +01:00
renovate[bot]
b1dc427108
deps: update dependency cryptography to v42 [SECURITY] (#2894)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 13:57:49 +01:00
edgelessci
bd3eed8504
image: update measurements and image version (#2895)
Co-authored-by: katexochen <katexochen@users.noreply.github.com>
2024-02-07 08:19:43 +01:00
Moritz Sanft
901edd420b
terraform: remove cloud loggers (#2892)
* terraform: remove cloud logging apps

* internal/cloud: remove loggers

* bootstrapper: remove logging

* qemu-metadata-api: remove logging endpoint

* docs: add instructions on how to get boot logs

* bazel: tidy

* docs: fix typo

* cloud: remove unused types

* Update go.mod

Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>

* bazel: tidy

* Update docs/docs/workflows/troubleshooting.md

Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>

* Update docs/docs/workflows/troubleshooting.md

Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>

* Update docs/docs/workflows/troubleshooting.md

Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>

* docs: elaborate on how to get boot logs

* bazel: tidy

---------

Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>
2024-02-06 14:27:30 +01:00
Moritz Sanft
dde3430da8
terraform: support AWS marketplace images (#2888)
* terraform: support AWS marketplace images

* terraform-provider: support AWS marketplace images

* docs: add instructions on AWS marketplace images

* ci: adapt marketplace image test for AWS

* Update internal/config/config.go

Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>

* docs: update config

* Update docs/docs/getting-started/marketplaces.md

Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>

* docs: update license information

* docs: use CSP tabs for marketplace overview

* Update docs/docs/getting-started/marketplaces.md

Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>

* Update docs/docs/getting-started/marketplaces.md

Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>

* Update docs/docs/getting-started/marketplaces.md

Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>

---------

Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>
2024-02-06 12:13:59 +01:00
Daniel Weiße
64c32c2236
ci: make instance type configurable for provider sample (#2893)
* Make default instance type configurable for provider sample
* Set TDX instance type when running TDX provider e2e test
* Fix missing attestation variant when setting up stub config in provider e2e test

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
2024-02-05 15:46:57 +01:00
Daniel Weiße
f21252c57d
ci: fix workspace related errors when setting up k8s version for test (#2891)
* Fail workflow on error in subshell
* Remove relative paths from workflow
* Set up MMA only for SEV-SNP, not for Azure TDX

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
2024-02-05 13:29:03 +01:00
Malte Poll
18acd0b12a
deps: update go-uefi and use new authenticode package (#2873) 2024-02-05 12:06:48 +01:00