Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plume: Use the public bucket proxy for anonymous access #255

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

pothos
Copy link
Member

@pothos pothos commented Nov 22, 2021

The image download from the bucket is not possible anymore directly but
needs to be done through the HTTP proxy.

Create a limited bucket object for anonymous access, which can only
download particular files and has no listing or upload ability.
Calling code needs to make sure it only tries uploads or directory
listings when the bucket object is using a proper gs:// URL and that
it configured credentials before trying to upload.

How to use

Testing done

bin/plume pre-release --gce-json-key none --aws-credentials /dev/null --platform aws -d --version 2983.2.0 --channel stable -P china

@pothos pothos force-pushed the kai/plume-anonymous branch from e234bb2 to e4eb4a6 Compare November 22, 2021 16:17
@pothos pothos changed the title WIP Hack to use the bucket proxy plume: Use the public bucket proxy for anonymous access Nov 22, 2021
@pothos pothos force-pushed the kai/plume-anonymous branch from e4eb4a6 to 7a3756f Compare November 22, 2021 16:45
@pothos pothos marked this pull request as ready for review November 22, 2021 16:45
@pothos pothos requested a review from a team November 22, 2021 16:45
@tormath1
Copy link
Contributor

LGTM, we can maybe add a changelog entry since it brings a high level update ?

@pothos pothos force-pushed the kai/plume-anonymous branch from 7a3756f to d68c7c3 Compare November 22, 2021 17:19
@pothos
Copy link
Member Author

pothos commented Nov 22, 2021

Thanks, done

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks ! Feel free to merge right after the nit-pick :)

The image download from the bucket is not possible anymore directly but
needs to be done through the HTTP proxy.

Create a limited bucket object for anonymous access, which can only
download particular files and has no listing or upload ability.
Calling code needs to make sure it only tries uploads or directory
listings when the bucket object is using a proper gs:// URL and that
it configured credentials before trying to upload.
@pothos pothos force-pushed the kai/plume-anonymous branch from 674eb61 to ebd3a85 Compare November 22, 2021 18:53
@pothos pothos merged commit 9a944e8 into flatcar-master Nov 22, 2021
@pothos pothos deleted the kai/plume-anonymous branch November 22, 2021 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants