{"action":"created","issue":{"url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/239","repository_url":"https://api.github.com/repos/kaltura/nginx-vod-module","labels_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/239/comments","events_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/239/events","html_url":"https://github.com/kaltura/nginx-vod-module/issues/239","id":135525097,"number":239,"title":"HLS encryption with dynamic key","user":{"login":"Ivars","id":568890,"avatar_url":"https://avatars.githubusercontent.com/u/568890?v=3","gravatar_id":"","url":"https://api.github.com/users/Ivars","html_url":"https://github.com/Ivars","followers_url":"https://api.github.com/users/Ivars/followers","following_url":"https://api.github.com/users/Ivars/following{/other_user}","gists_url":"https://api.github.com/users/Ivars/gists{/gist_id}","starred_url":"https://api.github.com/users/Ivars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ivars/subscriptions","organizations_url":"https://api.github.com/users/Ivars/orgs","repos_url":"https://api.github.com/users/Ivars/repos","events_url":"https://api.github.com/users/Ivars/events{/privacy}","received_events_url":"https://api.github.com/users/Ivars/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-22T19:54:27Z","updated_at":"2016-02-23T12:14:39Z","closed_at":"2016-02-23T11:40:01Z","body":"Hello,\r\n\r\nIs it somehow possible to configure HLS encryption key parameter so Nginx server would request and acquire the encryption key from some other server?\r\n\r\nWhat I want to achieve is the following scenario:\r\n1. User opens webpage on Apache/PHP/MYSQL server which contains Flowplayer\r\n2. Upon the page open apache stores random Session UID in database\r\n3. Flowplayer requests video from Nginx (via nginx-vod-module) with additional information to retrieve Session UID from database (some url parameter or request header)\r\n4. Nginx retrieves Session UID from database (by connecting to apache/php server) and uses this Session UID to generate key and uses it in vod_secret_key parameter.\r\n5. Nginx serves video encrypted with the key generated in step 4.\r\n\r\nModule's documentation mentions encryptionKey parameter in Mapping reference:\r\nhttps://github.com/kaltura/nginx-vod-module#source-clip\r\n\r\n_encryptionKey - a base64 encoded string containing the key (128 bit) that should be used to decrypt the media file._\r\n\r\nIs it possible to use this encryptionKey in my scenario or is it used to serve key to decrypt video which is already encrypted with this key?\r\n"},"comment":{"url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/comments/187676518","html_url":"https://github.com/kaltura/nginx-vod-module/issues/239#issuecomment-187676518","issue_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/239","id":187676518,"user":{"login":"jessp01","id":5270205,"avatar_url":"https://avatars.githubusercontent.com/u/5270205?v=3","gravatar_id":"","url":"https://api.github.com/users/jessp01","html_url":"https://github.com/jessp01","followers_url":"https://api.github.com/users/jessp01/followers","following_url":"https://api.github.com/users/jessp01/following{/other_user}","gists_url":"https://api.github.com/users/jessp01/gists{/gist_id}","starred_url":"https://api.github.com/users/jessp01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessp01/subscriptions","organizations_url":"https://api.github.com/users/jessp01/orgs","repos_url":"https://api.github.com/users/jessp01/repos","events_url":"https://api.github.com/users/jessp01/events{/privacy}","received_events_url":"https://api.github.com/users/jessp01/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T12:14:39Z","updated_at":"2016-02-23T12:14:39Z","body":"Note that the packages were pushed to the 11.9.0 repo and not the 'latest' \nrepo, to which they will be copied on Sun.\nTo get them now, you will need to change your repo file accordingly.\n\nin deb, /etc/apt/sources.list.d/kaltura.list, from:\ndeb [arch=amd64] http://installrepo.origin.kaltura.org/repo/apt/debian kajam main\nto:\ndeb [arch=amd64] http://installrepo.origin.kaltura.org/repo/apt/debian-nightly kajam main\n\nin RPM, /etc/yum.repos.d/kaltura.repo from:\nhttp://installrepo.origin.kaltura.org/releases/latest/RPMS/noarch\nto:\nhttp://installrepo.origin.kaltura.org/releases/nightly/RPMS/noarch\n\nor else you can download it directly from:\nRHEL/CentOS 6:\nhttp://installrepo.origin.kaltura.org/repo/releases/11.9.0/RPMS/x86_64/kaltura-nginx-1.8.1-1.x86_64.rpm\n\nRHEL/CentOS 7:\nhttp://installrepo.origin.kaltura.org/repo/releases/rhel7/RPMS/x86_64/kaltura-nginx-1.8.1-1.x86_64.rpm\n\nDebian/Ubuntu:\nhttp://installrepo.origin.kaltura.org/repo/apt/debian-nightly/pool/main/k/kaltura-nginx/kaltura-nginx_1.8.1-1_amd64.deb\n\nMay the source be with you,\n\nJess Portnoy\n\nKaltura Connect Virtual Summits 2015 - now on VOD! [connect.mediaspace.kaltura.com]\n\nOn Tue, 23 Feb 2016, erankor wrote:\n\n> \n> We pushed a new package today (version 1.6) that has this functionality\n> \n> —\n> Reply to this email directly or view it on GitHub.[AFBqvVkUNT-_9vKmY6Qt7yCUmgsoZdKgks5pnDt-gaJpZM4Hf6b6.gif]\n> \n> \n>"}}