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

Allow specifying statuses for fetcher failover #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grantisu
Copy link
Contributor

@grantisu grantisu commented Oct 3, 2018

The goal here is to allow using key servers with disjoint sets of keys, which is why 404 doesn't cause an immediate failure.

@dbaxa
Copy link
Member

dbaxa commented Oct 4, 2018

I remember having a discussion about this and my response at the time was "no let's not do this". The case where someone was seeing keys not being propagated was related to the dev environment iirc. Are you seeing one key repository 404 while another one isn't - if so let's try and get that fixed at an infrastructure level (or provide a means to opt into the behaviour you are desiring through this change - but not have it as the default)

@grantisu
Copy link
Contributor Author

grantisu commented Oct 4, 2018

The reason I need this is to allow a service running in production to talk to a service running in staging. Beyond that, handling split-brain in keyservers doesn't seem like a terrible idea; if a server really needs to make sure a key isn't fetched from elsewhere, it can use a 410.

@dbaxa dbaxa self-requested a review October 14, 2018 01:23
Copy link
Member

@dbaxa dbaxa left a comment

Choose a reason for hiding this comment

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

(see my comment)

if not isinstance(key_repository_urls, list):
raise TypeError('keystore_urls must be a list of urls.')
if failover_on is None:
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should have this "active" by default.

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