Access to S3 objects securely from AWS GRAFANA

0

Hi, I have an AWS GRAFANA dashboard, which uses google SAML to authorize users. I want to add link to download an S3 object, but I need this link to be secure - I want to avoid this link to be used by unauthorized users. Is there a way to achieve this?
I have also thought about using some Lambda behind API GATEWAY - but the problem remains the same - I am accessing a link from the client side.

1 個回答
2
已接受的答案

You can use a combination of AWS Lambda and Amazon API Gateway.

[1] The Lambda function generates presigned URLs for the S3 objects, which are temporary links that grant access for a limited time. You can expose this function through API Gateway and integrate it with your Grafana dashboard.

[2] To ensure that only authorized users can access the download link, you can configure the API Gateway with a Lambda authorizer that validates the user's identity. This way, when a user requests to download an S3 object, the dashboard makes an API call to the Lambda function, which returns the presigned URL if the user is authenticated.

[3] On the client side, when a user clicks the download link in the Grafana dashboard, the dashboard first makes an API call to get the presigned URL and then redirects the user's browser to that URL for downloading the object. This approach ensures that the download links are secure and accessible only to authorized users.

profile picture
專家
已回答 1 個月前
  • Thanks, this is the design I will probably adopt - authorize the users to AWS with with SAML and grant them permissions to the S3 bucket.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南