mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-05 21:44:15 -04:00
debugd: add check for info fields
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
a0a7294546
commit
ac74de86fb
2 changed files with 38 additions and 2 deletions
15
debugd/internal/debugd/logcollector/fields.go
Normal file
15
debugd/internal/debugd/logcollector/fields.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package logcollector
|
||||
|
||||
// InfoFields are the fields that are allowed in the info map
|
||||
// under the prefix "logcollect.".
|
||||
func InfoFields() (string, map[string]struct{}) {
|
||||
return "logcollect.", map[string]struct{}{
|
||||
"admin": {}, // the name of the person running the cdbg command
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue