Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8f4ac178
Commit
8f4ac178
authored
8 years ago
by
Clinton Blackburn
Browse files
Options
Downloads
Plain Diff
Merge pull request #12079 from edx/clintonb/s3-url-fix
Stripping auth querystring from S3 URLs
parents
47102eba
d2d38f9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/envs/aws.py
+4
-0
4 additions, 0 deletions
cms/envs/aws.py
lms/envs/aws.py
+4
-0
4 additions, 0 deletions
lms/envs/aws.py
requirements/edx/base.txt
+2
-2
2 additions, 2 deletions
requirements/edx/base.txt
with
10 additions
and
2 deletions
cms/envs/aws.py
+
4
−
0
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
:
...
...
This diff is collapsed.
Click to expand it.
lms/envs/aws.py
+
4
−
0
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
:
...
...
This diff is collapsed.
Click to expand it.
requirements/edx/base.txt
+
2
−
2
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment