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

pubsys-setup: allow file URLs for role #1194

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

tjkirch
Copy link
Contributor

@tjkirch tjkirch commented Nov 2, 2020

Description of changes:

@webern caught that our comment was lying and you couldn't specify a root role with a file URL. reqwest won't handle file URLs, so this swaps in a standard read if the scheme is file.

Testing done:

Before, you'd get:

Failed to fetch URL 'file:///home/tjk/work/bottlerocket/role.json': builder error for url (file:///home/tjk/work/bottlerocket/role.json): URL scheme is not allowed

After, file URLs work, and the file is copied into roles/ as expected. http URLs still work as before.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@tjkirch tjkirch requested review from zmrow and webern November 2, 2020 18:21
@tjkirch tjkirch merged commit 3398112 into bottlerocket-os:develop Nov 2, 2020
@tjkirch tjkirch deleted the file-role branch November 2, 2020 21:54
Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

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

💯

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.

4 participants