I was trying to use crowdsec CTI api to show additional information on my alert notification. So I generated a CTI API key and paste it on the following location
this error is returned when the api key is empty or missing so are you passing the value as is in the configuration and not attempting to use environment variables?
Yes, I am directly using the key value inside the configuration. I have removed the key on the above example for privacy. didn’t use the environment vairable.
All good though ill check. Just to ask within the config.yaml is it nested under api?
api:
cti:
#The API key you got from the console
key: <API CTI KEY>
#How long should CTI lookups be kept in cache
cache_timeout: 60m
#How many items can we keep in cache
cache_size: 50
enabled: true
log_level: info|debug|trace
api:
client:
insecure_skip_verify: false
credentials_path: /etc/crowdsec/local_api_credentials.yaml
server:
log_level: info
listen_uri: 127.0.0.1:8080
profiles_path: /etc/crowdsec/profiles.yaml
console_path: /etc/crowdsec/console.yaml
online_client: # Central API credentials (to push signals and receive bad IPs)
credentials_path: /etc/crowdsec/online_api_credentials.yaml
trusted_ips: # IP ranges, or IPs which can have admin API access
- 127.0.0.1
- ::1
cti:
key: ftwM<removed_letter_part>
cache_timeout: 60m
cache_size: 50
enabled: true
log_level: info