Added wordlists and server header logic to helm
This commit is contained in:
@@ -20,7 +20,7 @@ services:
|
|||||||
- MAX_COUNTER=10
|
- MAX_COUNTER=10
|
||||||
- CANARY_TOKEN_TRIES=10
|
- CANARY_TOKEN_TRIES=10
|
||||||
- PROBABILITY_ERROR_CODES=0
|
- PROBABILITY_ERROR_CODES=0
|
||||||
- SERVER_HEADER=Apache/2.2.22 (Ubuntu)
|
# - SERVER_HEADER=Apache/2.2.22 (Ubuntu)
|
||||||
# Optional: Set your canary token URL
|
# Optional: Set your canary token URL
|
||||||
# - CANARY_TOKEN_URL=http://canarytokens.com/api/users/YOUR_TOKEN/passwords.txt
|
# - CANARY_TOKEN_URL=http://canarytokens.com/api/users/YOUR_TOKEN/passwords.txt
|
||||||
# Optional: Set custom dashboard path (auto-generated if not set)
|
# Optional: Set custom dashboard path (auto-generated if not set)
|
||||||
|
|||||||
@@ -14,5 +14,10 @@ data:
|
|||||||
MAX_COUNTER: {{ .Values.config.maxCounter | quote }}
|
MAX_COUNTER: {{ .Values.config.maxCounter | quote }}
|
||||||
CANARY_TOKEN_TRIES: {{ .Values.config.canaryTokenTries | quote }}
|
CANARY_TOKEN_TRIES: {{ .Values.config.canaryTokenTries | quote }}
|
||||||
PROBABILITY_ERROR_CODES: {{ .Values.config.probabilityErrorCodes | quote }}
|
PROBABILITY_ERROR_CODES: {{ .Values.config.probabilityErrorCodes | quote }}
|
||||||
SERVER_HEADER: {{ .Values.config.serverHeader | quote }}
|
|
||||||
CANARY_TOKEN_URL: {{ .Values.config.canaryTokenUrl | quote }}
|
CANARY_TOKEN_URL: {{ .Values.config.canaryTokenUrl | quote }}
|
||||||
|
{{- if .Values.config.dashboardSecretPath }}
|
||||||
|
DASHBOARD_SECRET_PATH: {{ .Values.config.dashboardSecretPath | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.config.serverHeader }}
|
||||||
|
SERVER_HEADER: {{ .Values.config.serverHeader | quote }}
|
||||||
|
{{- end }}
|
||||||
@@ -73,7 +73,8 @@ config:
|
|||||||
maxCounter: 10
|
maxCounter: 10
|
||||||
canaryTokenTries: 10
|
canaryTokenTries: 10
|
||||||
probabilityErrorCodes: 0
|
probabilityErrorCodes: 0
|
||||||
serverHeader: "Apache/2.2.22 (Ubuntu)"
|
# serverHeader: "Apache/2.2.22 (Ubuntu)"
|
||||||
|
# dashboardSecretPath: "/my-secret-dashboard"
|
||||||
# canaryTokenUrl: set-your-canary-token-url-here
|
# canaryTokenUrl: set-your-canary-token-url-here
|
||||||
|
|
||||||
networkPolicy:
|
networkPolicy:
|
||||||
@@ -268,6 +269,17 @@ wordlists:
|
|||||||
- .git/
|
- .git/
|
||||||
- keys/
|
- keys/
|
||||||
- credentials/
|
- credentials/
|
||||||
|
server_headers:
|
||||||
|
- Apache/2.2.22 (Ubuntu)
|
||||||
|
- nginx/1.18.0
|
||||||
|
- Microsoft-IIS/10.0
|
||||||
|
- LiteSpeed
|
||||||
|
- Caddy
|
||||||
|
- Gunicorn/20.0.4
|
||||||
|
- uvicorn/0.13.4
|
||||||
|
- Express
|
||||||
|
- Flask/1.1.2
|
||||||
|
- Django/3.1
|
||||||
error_codes:
|
error_codes:
|
||||||
- 400
|
- 400
|
||||||
- 401
|
- 401
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class Config:
|
|||||||
api_server_port: int = 8080
|
api_server_port: int = 8080
|
||||||
api_server_path: str = "/api/v2/users"
|
api_server_path: str = "/api/v2/users"
|
||||||
probability_error_codes: int = 0 # Percentage (0-100)
|
probability_error_codes: int = 0 # Percentage (0-100)
|
||||||
server_header: str = "Apache/2.2.22 (Ubuntu)"
|
server_header: Optional[str] = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_env(cls) -> 'Config':
|
def from_env(cls) -> 'Config':
|
||||||
|
|||||||
Reference in New Issue
Block a user