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

Add first cut of git-credential-fdoss #3

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Add first cut of git-credential-fdoss #3

merged 1 commit into from
Aug 28, 2024

Conversation

camh-
Copy link
Member

@camh- camh- commented Aug 7, 2024

Add the initial version of git-credential-fdoss. It basically works
but has some unsupported cases such as:

  • Handling "prompts"
  • Handling locked secrets (probably requires prompts to work)
  • Using a non-default keyring
  • Creating a non-existent default keyring (not even sure we we should,
    but this is something libsecret does, and hence
    git-credential-libsecret too)
  • Encrypted sessions via dbus (not "plain")
  • Non-pageable memory for holding secrets

Also missing:

  • Go unit tests
  • Expanded readme with setup instructions

Note: This is an updated version of PR #2, which was automatically
closed when the base branch was deleted.

Copy link
Member

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

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

Still LGTM, but thought you'd like some comments anyway.

Makefile Outdated Show resolved Hide resolved
dbus.go Outdated Show resolved Hide resolved
dbus.go Outdated Show resolved Hide resolved
dbus.go Outdated Show resolved Hide resolved
dbus.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
camh- added a commit that referenced this pull request Aug 27, 2024
Explain why binary is called what it is.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Explain what SecretService implements and why a bit better.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Explain what SecretService implements and why a bit better.

Also fix the link to the spec as that changed just after I made the
link. It was stable for YEARS before that!

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Expand note on the `Secret` struct that is marshalable by the dbus
library.

Update the link to the spec which just changed.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Use shorter sentences explaining NewSecretSecvice.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Make the description of NewSecretService clearer by linking to the spec
on "sessions" and qualifying the word "session" in the error case. Fix
typo.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Fix poor grammar: "name/value arbitrary strings" -> "arbitrary
name/value strings"

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Reword Get() so that items and collections make a bit more sense and
link to them in the spec.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Add example of git-credential protocol.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Make the anonymous inline function in Marshal much shorter (simpler).

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Add usage message to main.go with make target to update it.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Spelling fix: s/amd/and/g

Addresses: #3 (comment)
Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Describe origins of label.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Simplify description of makeAttrs.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Link to git-credential-libsecret attribute mapping.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Rename: s/makeSecretVal/formatSecretVal/

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Simplify wording of formatSecretVal doc string. Add link to secret
encoding in git-credential-libsecret.

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Simplify wording: s/so as to be/to be/

Addresses: #3 (comment)
camh- added a commit that referenced this pull request Aug 27, 2024
Reword issue with secret encoding and gnome-keyring's unencrypted
keyrings.

Addresses: #3 (comment)
main.go Outdated Show resolved Hide resolved
@juliaogris
Copy link
Member

still lgtm

Add the initial version of `git-credential-fdoss`. It basically works
but has some unsupported cases such as:
* Handling "prompts"
* Handling locked secrets (probably requires prompts to work)
* Using a non-default keyring
* Creating a non-existent default keyring (not even sure we we should,
  but this is something libsecret does, and hence
  git-credential-libsecret too)
* Encrypted sessions via dbus (not "plain")
* Non-pageable memory for holding secrets

Also missing:
* Go unit tests
* Expanded readme with setup instructions
@camh- camh- merged commit 5558b05 into master Aug 28, 2024
3 checks passed
@camh- camh- deleted the first-cut branch August 28, 2024 10:25
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