Closed
Bug 1257882
Opened 8 years ago
Closed 8 years ago
Please deploy add kinto-attachment configuration to Kinto Stage
Categories
(Cloud Services :: Operations: Deployment Requests - DEPRECATED, task)
Cloud Services
Operations: Deployment Requests - DEPRECATED
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rhubscher, Assigned: dmaher)
References
Details
Once Bug 1255776 is closed Kinto stage will be ready for OneCRL and AMO Blocklist. However for Fennec OTA we would need to configure kinto-attachment with the following configuration: kinto.includes = kinto_attachment # You may already have a kinto.includes rule kinto.attachment.base_url = # Stays empty kinto.attachment.folder = {bucket_id}/{collection_id} kinto.attachment.keep_old_files = true kinto.attachment.aws.access_key = <AWS access key> kinto.attachment.aws.secret_key = <AWS secret key> kinto.attachment.aws.bucket = <bucket name> kinto.attachment.aws.acl = <AWS ACL permissions|public-read>
Reporter | ||
Comment 1•8 years ago
|
||
Sebastian I was wondering how you will get the base_url to configure Fennec with it? Should we send it by email? I was wondering if we could consider having it in the /v1/ page in the attachment capability description so that easily have we can have the different ones with regards to deployment stack. What do you think?
Assignee: nobody → dmaher
Flags: needinfo?(s.kaspari)
QA Contact: chartjes
Comment 2•8 years ago
|
||
(In reply to Rémy Hubscher (:natim) from comment #1) > Sebastian I was wondering how you will get the base_url to configure Fennec > with it? Should we send it by email? Um, yeah, or post it in bug 1201059 and I'll update the patches. :) > I was wondering if we could consider having it in the /v1/ page in the > attachment capability description so that easily have we can have the > different ones with regards to deployment stack. What do you think? This is a nice idea! For now I'll probably still hard-code it in the code for two reasons: * I want to avoid doing a separate request to get the URL * One of the reasons for having it separated was that if someone tampers with the Kinto installation then it still wouldn't be possible to download files from arbitary locations. But I think at least for documentation it would be nice to have it returned when querying the root path.
Flags: needinfo?(s.kaspari)
Assignee | ||
Comment 3•8 years ago
|
||
Have the issues raised in the above comments been resolved? I'd like to move forward with this and bug 1255776 (in concert).
Flags: needinfo?(rhubscher)
Reporter | ||
Comment 4•8 years ago
|
||
Yes for know we will deploy and configure as explain in Comment 1 and give write the base URL in Sebastian bug.
Reporter | ||
Updated•8 years ago
|
Flags: needinfo?(rhubscher)
Assignee | ||
Comment 5•8 years ago
|
||
(In reply to Rémy Hubscher (:natim) from comment #0) > kinto.attachment.aws.access_key = <AWS access key> > kinto.attachment.aws.secret_key = <AWS secret key> We doesn't use shared-key access to S3 - it's all handled by IAM tokens behind the scenes - so I will not include these options (commented out). 09:07:47 <@tarek> comment them out. the lib reading them should set them to None 09:08:09 <@tarek> access_key and secret_key (In reply to Rémy Hubscher (:natim) from comment #4) > Yes for know we will deploy and configure as explain in Comment 1 and give > write the base URL in Sebastian bug. 08:22:00 <@tarek> don't worry about that base url, leave it blank 08:22:18 <@tarek> sebastian will be able to recompose the full URL on the client side
Assignee | ||
Comment 6•8 years ago
|
||
Kinto-attachment has deployed to Stage (see https://bugzilla.mozilla.org/show_bug.cgi?id=1255776#c10).
Assignee | ||
Comment 7•8 years ago
|
||
> kinto.attachment.aws.bucket = <bucket name>
Turns out this is actually `kinto.attachment.aws.bucket_name`, which is an easy enough fix. :)
^^^^^
Assignee | ||
Comment 8•8 years ago
|
||
As noted in bug 1255776[0], this has been deployed. Please let me know what needs to be done in order to verify this deployment so that we can resolve this bug (and, hopefully, move in to Prod). Thank you. [0] https://bugzilla.mozilla.org/show_bug.cgi?id=1255776#c11
Status: NEW → ASSIGNED
Flags: needinfo?(tarek)
Flags: needinfo?(rhubscher)
Flags: needinfo?(mathieu)
Comment 9•8 years ago
|
||
Again, as for bug 1255776 I don't how what plans Sebastian has to populate the server with initial data. What I can suggest is to upload some files and check that they can be downloaded (that's the minimum, of course we should check S3 permissions etc.). We made some helper scripts, that's probably the easiest path for you. Get a Python3 venv with kinto-client: virtualenv env --python=python3 source env/bin/activate pip install kinto-client Download helper scripts: wget https://raw.githubusercontent.com/Kinto/kinto-attachment/master/scripts/download.py wget https://raw.githubusercontent.com/Kinto/kinto-attachment/master/scripts/upload.py Upload some files: BUCKET=test-upload COLLECTION=test-collection FILES=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf /etc/issue python3 upload.py --gzip --server=$SERVER_URL --bucket=$BUCKET --collection=$COLLECTION --auth "token:mysecret" $FILES Download them and see that everything is fine: python3 download.py --server=$SERVER_URL --bucket=$BUCKET --collection=$COLLECTION --auth "token:mysecret" Please let me know on IRC
Flags: needinfo?(mathieu)
Comment 10•8 years ago
|
||
the attachement feature has been verified
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(tarek)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•