• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nolar / kopf / 1093
85%
main: 91%

Build:
Build:
LAST BUILD BRANCH: docs-furo-theme
DEFAULT BRANCH: main
Ran 09 Apr 2020 09:32PM UTC
Jobs 5
Files 52
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1093

push

travis-ci

nolar
Secure the log strings from injections and for better template-matching

Generally, we can trust the codebase of the operators, as only
the code owners can inject arbitrary handler ids or task names.
But in case they are dynamic and use the data from the CR-users,
this can lead to log template injections and cause errors of DoS
(mostly when at least some positional args are passed to loggers).

We can make it a bit more secure by not using any f-strings
in the log message templates, unless the variables come strictly
from Kopf, not even from the Kopf-based operators.

This also improves the template-matching: the logging handlers
and formatters get the template strings with %s/%r instead of
actual variable values which differ every time, so they report
these messages by their proper templates (e.g. in Sentry).

634 of 819 branches covered (77.41%)

Branch coverage included in aggregate %.

2399 of 2831 relevant lines covered (84.74%)

4.24 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1093.3 (CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=v1.16.0 CLIENT=no) 09 Apr 2020 09:32PM UTC 0
83.31
Travis Job 1093.3
4 1093.4 (CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=v1.15.0 CLIENT=no) 09 Apr 2020 09:33PM UTC 0
83.31
Travis Job 1093.4
5 1093.5 (CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=v1.14.0 CLIENT=no) 09 Apr 2020 09:33PM UTC 0
83.31
Travis Job 1093.5
6 1093.6 (CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=v1.13.0 CLIENT=no) 09 Apr 2020 09:34PM UTC 0
83.31
Travis Job 1093.6
7 1093.7 (CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=v1.12.0 CLIENT=no) 09 Apr 2020 09:36PM UTC 0
83.31
Travis Job 1093.7
Source Files on build 1093
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1093
  • 94564356 on github
  • Next Build on security-logging-injections (#1144)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc