-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pycturator should allow disabling specifc endpoints
In order to disable pyctuator endpoints such as `/pyctuator/httptraces`, pyctuator now can be initialized with flags selecting endpoints that shouldn't be registered in SBA and should fail if queried (GET) directly. Fixes #92
- Loading branch information
michael.yak
committed
Jan 16, 2024
1 parent
bb04e43
commit 3e850f7
Showing
16 changed files
with
471 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from enum import Flag, auto | ||
|
||
|
||
class Endpoints(Flag): | ||
NONE = 0 | ||
ENV = auto() | ||
INFO = auto() | ||
HEALTH = auto() | ||
METRICS = auto() | ||
LOGGERS = auto() | ||
THREAD_DUMP = auto() | ||
LOGFILE = auto() | ||
HTTP_TRACE = auto() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.