Hide AWS access key from source code

0

I'm following tutorial from
https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/hls-playback.html#how-hls-ex1

It works great! But the access key is visible to user in the source code. How can I go about hiding access key from the user?
Tutorial puts it visible in the source code:

var options = {
accessKeyId: $('#accessKeyId').val(),
secretAccessKey: $('#secretAccessKey').val(),
sessionToken: $('#sessionToken').val() || undefined,
region: $('#region').val(),
endpoint: $('#endpoint').val() || undefined
}
var kinesisVideo = new AWS.KinesisVideo(options);
var kinesisVideoArchivedContent = new AWS.KinesisVideoArchivedMedia(options);

I'm using Django web server.

tuppe
asked 3 years ago595 views
1 Answer
0
Accepted Answer

Hi tuppe,

There's a similar question on our Github. Please find the answer here, https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-js/issues/88.

Thanks,
Lukas

answered 3 years ago
profile picture
EXPERT
reviewed 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions