I am struggling to get my head around of using S3 bucket for thanos.
It appears from the config that we have to provide access and secret keys for the S3 bucket, but they are being written in plain sight and as the code is stored in git so anyone can access the bucket.
Is there anyway of providing them as kubernetes secrets? i am trying to run prometheus-operator on EKS
Thanks,
Assuming you want to pass bucket configuration with auth data explicitely then you can use two command line options for thanos to achieve that:
--objstore.config-file=FILEPATH
--objstore.config=CONFIG_CONTENTS
With 1. you can just mount the secret and point thanos to that location With 2 you can use env variable and load secret into that variable, for example:
There are some other ways to use identity information, which are cloud-specific. I'm not familiar with AWS offerring, so I'll refer you to thanos docs