-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add Audit Trail/Logging #24257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add Audit Trail/Logging #24257
Changes from 30 commits
afcb22b
204b114
2dcff01
9d7b3c8
6d7835a
6e6305d
f36f208
8939539
7131cf6
f732ae6
0f56aa1
8038aee
fb3f954
b3779fc
c7e989a
659c324
3c613b3
11ddf58
033c8fe
777362e
3684f3a
7e474a6
5615970
9e7082b
3d1f881
2c01fe2
ab956ba
073603f
718f1a9
f69976e
65e4f7c
d1b5a22
59aa27f
1294a00
d2930ec
bf5f725
d1445eb
6b0b2f7
8d21f95
1a28a97
5d51639
001727e
4c6eabe
ec6ae2f
10fed1c
bbb0322
c95c03f
d153e4d
1fa5edd
989fb36
41287b9
c5ff607
d56fae1
20d6fdd
8c64051
3b945d9
e928e40
af5b9b6
9885036
fa8d530
95682a3
ec55854
0de61c3
6fffaac
278ca4b
3b1336a
d090810
558fd1a
bcd6f99
ac2b8f3
745be63
3b7298b
cfebe22
b813aba
59f1537
4e41c8b
c4d5fd2
d6fd348
12dc51c
3a919d2
9482ee0
7ae645e
a68292b
00359c7
694ba9b
4644d76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -646,6 +646,38 @@ LEVEL = Info | |
;; Host address | ||
;ADDR = | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
[audit] | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; Enable logging of audit events | ||
;ENABLED = false | ||
KN4CK3R marked this conversation as resolved.
Show resolved
Hide resolved
|
||
;; Comma seperated list of appenders to log to (possible values: log, file) | ||
KN4CK3R marked this conversation as resolved.
Show resolved
Hide resolved
|
||
;APPENDER = | ||
silverwind marked this conversation as resolved.
Show resolved
Hide resolved
6543 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; Creating specific log configuration | ||
6543 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
;; | ||
;; You can set specific configuration for individual appenders. Currently only "file" uses additional configuration. | ||
;; | ||
;[audit.file] | ||
KN4CK3R marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By the way, I am unsure if we should really hardcode the rotation into Gitea. |
||
;; Set the file name for the logger. If this is a relative path this | ||
;; will be relative to log.ROOT_PATH | ||
;; Defaults to log.ROOT_PATH/audit.log | ||
;FILENAME = | ||
;; This enables automated audit log rotate, default is true | ||
;ROTATE = true | ||
;; Maximum file size in bytes before rotating takes place (format `1000`, `1 MB`, `1 GiB`) | ||
;MAXIMUM_SIZE = 256 MB | ||
;; Rotate audit log daily, default is true | ||
;ROTATE_DAILY = true | ||
;; Delete the audit log file after n days, default is 7 | ||
;KEEP_DAYS = 7 | ||
;; Compress audit logs with gzip | ||
;COMPRESS = true | ||
;; Compression level see godoc for compress/gzip | ||
;COMPRESSION_LEVEL = -1 | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
[git] | ||
|
Uh oh!
There was an error while loading. Please reload this page.