Skip to content
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

Golang refactor stage 1 - passing rule #1

Closed
sublimino opened this issue Jan 29, 2019 · 1 comment
Closed

Golang refactor stage 1 - passing rule #1

sublimino opened this issue Jan 29, 2019 · 1 comment
Assignees

Comments

@sublimino
Copy link
Member

An example passing rule to check:

{
  "selector": "containers[] .securityContext .runAsUser > 1000",
  "reason": "Force the running image to run as a non-root user to ensure least privilege",
  "points": 1
}

Example resource to check against:

---
apiVersion: extensions/v1beta1
kind: Deployment
spec:
  template:
    spec:
      containers:
        - name: run-as-user-99999
          image: redis:alpine
          securityContext:
            runAsUser: 99999

Desired output:

{
  "score": 1,
  "scoring": {
    "critical": [],
    "advise": []
  }
}
@stefanprodan
Copy link
Member

Fixed by #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants