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
전문가
답변함 한 달 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠