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
posta 4 anni fa606 visualizzazioni
1 Risposta
0
Risposta accettata

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

con risposta 4 anni fa
profile picture
ESPERTO
verificato 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande