Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
8f4ac178
Commit
8f4ac178
authored
Apr 08, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12079 from edx/clintonb/s3-url-fix
Stripping auth querystring from S3 URLs
parents
47102eba
d2d38f9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
cms/envs/aws.py
+4
-0
lms/envs/aws.py
+4
-0
requirements/edx/base.txt
+2
-2
No files found.
cms/envs/aws.py
View file @
8f4ac178
...
...
@@ -274,6 +274,10 @@ AWS_SECRET_ACCESS_KEY = AUTH_TOKENS["AWS_SECRET_ACCESS_KEY"]
if
AWS_SECRET_ACCESS_KEY
==
""
:
AWS_SECRET_ACCESS_KEY
=
None
# Disabling querystring auth instructs Boto to exclude the querystring parameters (e.g. signature, access key) it
# normally appends to every returned URL.
AWS_QUERYSTRING_AUTH
=
AUTH_TOKENS
.
get
(
'AWS_QUERYSTRING_AUTH'
,
True
)
if
AUTH_TOKENS
.
get
(
'DEFAULT_FILE_STORAGE'
):
DEFAULT_FILE_STORAGE
=
AUTH_TOKENS
.
get
(
'DEFAULT_FILE_STORAGE'
)
elif
AWS_ACCESS_KEY_ID
and
AWS_SECRET_ACCESS_KEY
:
...
...
lms/envs/aws.py
View file @
8f4ac178
...
...
@@ -442,6 +442,10 @@ if AWS_SECRET_ACCESS_KEY == "":
AWS_STORAGE_BUCKET_NAME
=
AUTH_TOKENS
.
get
(
'AWS_STORAGE_BUCKET_NAME'
,
'edxuploads'
)
# Disabling querystring auth instructs Boto to exclude the querystring parameters (e.g. signature, access key) it
# normally appends to every returned URL.
AWS_QUERYSTRING_AUTH
=
AUTH_TOKENS
.
get
(
'AWS_QUERYSTRING_AUTH'
,
True
)
if
AUTH_TOKENS
.
get
(
'DEFAULT_FILE_STORAGE'
):
DEFAULT_FILE_STORAGE
=
AUTH_TOKENS
.
get
(
'DEFAULT_FILE_STORAGE'
)
elif
AWS_ACCESS_KEY_ID
and
AWS_SECRET_ACCESS_KEY
:
...
...
requirements/edx/base.txt
View file @
8f4ac178
...
...
@@ -8,7 +8,7 @@ beautifulsoup4==4.1.3
beautifulsoup==3.2.1
bleach==1.4
html5lib==0.999
boto==2.3
2.1
boto==2.3
9.0
celery==3.1.18
cssselect==0.9.1
dealer==2.0.4
...
...
@@ -28,7 +28,7 @@ django-sekizai==0.8.2
django-ses==0.7.0
django-simple-history==1.6.3
django-statici18n==1.1.5
django-storages
-redux==1.3
django-storages
==1.4.1
django-method-override==0.1.0
# We need a fix to DRF 3.2.x, for now use it from our own cherry-picked repo
#djangorestframework>=3.1,<3.2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment