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

API: Disallow duplicate ssh keys #959

Merged
merged 5 commits into from
Mar 21, 2019

Conversation

rocketeerbkw
Copy link
Member

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • Changelog entry has been written

When the API has duplicate api keys in the system, it causes problems with some parts of lagoon. This adds a unique key constraint to the api db via ssh key fingerprints, and updates the api to save/get said fingerprints.

Changelog Entry

Bugfix - API no longer allows adding duplicate ssh keys (#577)

Closing issues

Closes #577

@rocketeerbkw
Copy link
Member Author

I added a script to run after deployment to generate fingerprints for all existing ssh keys, but I'm stuck on how to make it work "properly" (like the other scripts in helpers.

@Schnitzel Schnitzel marked this pull request as ready for review March 20, 2019 21:02
@Schnitzel Schnitzel merged commit bc94673 into master Mar 21, 2019
@rocketeerbkw rocketeerbkw deleted the 577-api-disallow-duplicate-ssh-keys branch March 25, 2019 21:37
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.

Prevent adding same SSH key multiple times
2 participants