I have a Rails application that uses the AWS Javascript SDK, I have to set up the secrets in my javascript before making a request :
AWS.config.update({ accessKeyId: '<%= ENV["AWS_ACCESS_KEY_ID"] %>', secretAccessKey: '<%= ENV["AWS_SECRET_ACCESS_KEY"] %>' });
The problem is anyone can check these secret values using chrome console, so how do I hide these keys, while still use them in my client side?
I was thinking to fetch them with with ajax, but isn't the returned data from that ajax call also viewable on the client? or not?
Thanks