FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Slack web hook issue, looks like docs should be rewrited for dumb people as me · Issue #1261 · secureCodeBox/secureCodeBox · GitHub

Slack web hook issue, looks like docs should be rewrited for dumb people as me #1261

Description

cat myvalues.yaml
notificationChannels:

  • name: norules
    type: slack
    template: slack-messageCard
    skipNotificationOnZeroFinding: true
    endPoint: /home/ec2-user/notifications/values_slack_secrets.yaml
    env:
    • name: myvalues
      valueFrom:
      secretKeyRef:
      name: myslacksecret
      key: SLACK_WEB_HOOK

cat values_slack_secrets.yaml
apiVersion: v1
kind: Secret
metadata:
name: myslacksecret
type: Opaque
data:
SLACK_WEB_HOOK: base64-url

kubectl apply -f values_slack_secrets.yaml
helm upgrade --install nwh secureCodeBox/notification-hook --values myvalues.yaml
kubectl apply -f /home/ec2-user/scans/nmap/test-nmap-scan.yaml

kubectl describe pods/notification-nmap-scanme.nmap.org-vrqz7-d8m6p
State: Waiting
Reason: CreateContainerConfigError
Ready: False
Restart Count: 0
Limits:
cpu: 400m
memory: 200Mi
Requests:
cpu: 200m
memory: 100Mi
Environment:
SOME_ENV_KEY: <set to the key 'some-key' in secret 'some-secret'> Optional: false
SMTP_CONFIG: <set to the key 'smtp-config-key' in secret 'some-secret'> Optional: false
NAMESPACE: default (v1:metadata.namespace)
SCAN_NAME: nmap-scanme.nmap.org
SOME_ENV_KEY: <set to the key 'some-key' in secret 'some-secret'> Optional: false
SMTP_CONFIG: <set to the key 'smtp-config-key' in secret 'some-secret'> Optional: false
Mounts:
/home/app/config from notification-config (ro)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-gpb6w (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
notification-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: notification-config
Optional: false
kube-api-access-gpb6w:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: Burstable
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message


Normal Scheduled 74s default-scheduler Successfully assigned default/notification-nmap-scanme.nmap.org-vrqz7-d8m6p to ip-*.us-east-2.compute.internal
Normal Pulled 12s (x8 over 73s) kubelet Container image "docker.io/securecodebox/hook-notification:3.12.1" already present on machine
Warning Failed 12s (x8 over 73s) kubelet Error: secret "some-secret" not found

Basically question: where am i wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL