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

com.atproto.identity.getRecommendedDidCredentials doesn't include all PDS-owned keys #2665

Closed
str4d opened this issue Jul 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@str4d
Copy link

str4d commented Jul 28, 2024

Describe the bug

The repositories on one of the Bluesky-operated PDSs have two rotation keys, which per @bnewbold I now know to be an online key and an offline backup. However, com.atproto.identity.getRecommendedDidCredentials only returns one of these keys (along with the signing key).

Not including both keys makes it harder to determine which keys currently present in a DID Document are expected to be there, and more likely that third party software (that is adding its own rotation keys) might strip out the PDS's offline backup key as "unknown and therefore untrusted".

Opened per the discussion here: https://bsky.app/profile/str4d.xyz/post/3ky445z2yq72m

@str4d str4d added the bug Something isn't working label Jul 28, 2024
@bnewbold
Copy link
Collaborator

We do have code which should be inserting both an online key and offline key:

https://github.com/bluesky-social/atproto/blob/main/packages/pds/src/api/com/atproto/identity/getRecommendedDidCredentials.ts#L23

Not sure what is going on here, but probably a bug.

@dholms
Copy link
Collaborator

dholms commented Jul 31, 2024

Hey thanks for the report on this! It was a configuration issue in our PDSes. Just updated the env & rolled them so should be returning the correct recommended credentials now 👍

Closing the issue for now, but let me know if you run into any issues around it

@dholms dholms closed this as completed Jul 31, 2024
@str4d
Copy link
Author

str4d commented Jul 31, 2024

Confirming I see this fixed. Thanks!

@str4d
Copy link
Author

str4d commented Sep 7, 2024

The issue appears to have resumed, at least for my PDS (oyster). Has a subsequent configuration update reverted the change @dholms made?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants