Skip to content

Altfiles with encryption and submodules (subtrees) #528

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

Open
1 task done
choman opened this issue Apr 3, 2025 · 1 comment
Open
1 task done

Altfiles with encryption and submodules (subtrees) #528

choman opened this issue Apr 3, 2025 · 1 comment
Labels

Comments

@choman
Copy link

choman commented Apr 3, 2025

This question is about

  • [ ] Installation
  • [ ] Initializing / Cloning
  • Alternate files
  • [ ] Jinja templates
  • [X ] Encryption
  • [ ] Bootstrap
  • [ ] Hooks
  • [ x] Other

Describe your question

Forgive me up front, but I am asking a few questions here that in my mind are related but separate. Also note that
I am currently on yadm 3.3.0. So if something is supported in a newer release. please let me know

General encryption question

yadm supports various encryption methods

  • do they all focus on the encrypt file $HOME/.config/yadm/encrypt?
  • does the standard encrypt method support altfiles?
  • If not, do any of the other method support altfiles?
my example is aws creds for work vs home vs other
 ~/.config/aws/credentials\#\#c.work

NOTE: maybe the docs for using transcrypt and git-crypt are no clear enough
NOTE: I think I have this working with transcrypt. will report back

Submodule questions

  • is it possible to store partial yadm configuration on diff github servers or private repos?
  • would this support the altfile logic

for example, let's say work gave me grief about storing configuration in a public repo. Rather then
setup an entire separate private repo for work. Could I store part of the repo there? perhaps an extension
on $HOME/.config/yadm/alt that would allow different submodules to be stored here?? I am just spitballing
here trying to deal with work complaints. But happy to have a deeper discussion. perhaps this is a git-subtree thing?
but the altfile support would still need to be supported?

NOTE: I did see something on yadm.io about submodule Alt, but the documentation is not clear. I don't think it's
describing what I thinking. Then again, perhaps I am wrong

General yadm.io version support

it would be awesome if a new feature is added to the yadm.io doc pages that it followed the
python on-line document (best example) to mention when something is supported. As an example,
on https://docs.python.org/3/library/re.html if one searches for 3.11

@choman choman added the question label Apr 3, 2025
@erijo
Copy link
Collaborator

erijo commented Apr 6, 2025

do they all focus on the encrypt file $HOME/.config/yadm/encrypt?

No, that's only the built-in method that uses that file. E.g. transcrypt has a different way of selecting which files to encrypt (see https://github.com/elasticdog/transcrypt for details).

does the standard encrypt method support altfiles?

Yes.

If not, do any of the other method support altfiles?

For the other methods, as long as the files are listed when running git ls-files then alt handling will be applied to them.

submodules

What you're asking for is not currently supported. #78 is about the same thing and something I've been thinking about fixing but haven't come around to just yet. The actual fix should be fairly simple after some other refactoring that's been done recently. Writing the test will take a bit longer :)

General yadm.io version support

It's a good idea that I will consider for future updates.

erijo added a commit that referenced this issue Apr 10, 2025
Ignore files are updated in each submodule's info/exclude file. The
top-level file still contains all files (for simplicity).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants