profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/rolfschr/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

rolfschr/GSWL-book 114

This repository contains the content of the book Getting Started With Ledger.

rolfschr/GSWL-ecosystem 26

This reposity contains the software that is presented in the book Getting Started With Ledger.

rolfschr/GSWL-private 10

This repository contains the sample data presented in the book Getting Started With Ledger.

rolfschr/GSWL-private-empty 8

This repository contains an empty data data folder that could be used with GSWL-ecosystem.

rolfschr/ColoredLogcat 3

A python script which outputs logcat message in color

ngi-nix/vulnerablecode 1

A free and open vulnerabilities database and the packages they impact. And the tools to aggregate and correlate these vulnerabilities.

hoijui/CG1 0

Generative Computergraphics

issue openedngi-nix/opaque-sphinx

Update androsphinx

The current master version (6728a44) of androsphinx doesn't work correctly with pwdsphinx. This issue has been reported here: https://github.com/dnet/androsphinx/issues/9. Once this is resolved, it should be reflected here.

created time in 5 days

push eventngi-nix/opaque-sphinx

Rolf Schröder

commit sha 83a0c37cef0ca988eb1d10f0467d6b14679d1aad

Implement first working version of zphinxzerver.

view details

Rolf Schröder

commit sha e96adcedbd0de17293ef4008d24d2c88b76d89e4

Forward 'pkgs' to sub packages.

view details

Rolf Schröder

commit sha f39efecda9fa49d379285e6d8615d474d577fdfb

Update readme.

view details

Rolf Schröder

commit sha 436348d440a188ecce8bd55a26607b4840785a7a

Fix typo.

view details

Rolf Schröder

commit sha acb29aa35c6bbc8eeba26f2f34b72b73642d2f55

Order inputs alphabetically.

view details

Rolf Schröder

commit sha e7651293a4a16ea048e845ae06d6b5261a1c5cd2

Initial impl for (py)equihash.

view details

Rolf Schröder

commit sha 030f2a628103f470c3b3368422826ddcf990548c

Order version strings alphabetically.

view details

Rolf Schröder

commit sha 0367a46ab9a87453303e766f3a3099c26c391218

Update pwdsphinx.

view details

Rolf Schröder

commit sha 2487f5ed3cf7a6b1bb9160fce20f40451e90dd84

Update zphinxzerver.

view details

Rolf Schröder

commit sha 67fcb2c8f4ebc4ee58a72aa84bd38a199afe74ad

Update pwdsphinx & zphinxzerver.

view details

Rolf Schröder

commit sha 4c6fc07a830eb76a8509d4eba3d3c9938e9b688d

Harmonize tests.

view details

Rolf Schröder

commit sha 6492042978f27c9bf0166f27b91e49c4af09736a

Update androsphinx.

view details

Rolf Schröder

commit sha e73852910e018f299077f99c41dc27744eabb34a

Update readme.

view details

Rolf Schröder

commit sha 3aa1c8f9f1202ad31b08619e30918dc347a43098

Use pname&version consistently.

view details

Rolf Schröder

commit sha 790c6334c68e870235432dcec239315f29c5696d

Update Readme

view details

Rolf Schröder

commit sha 58205344dca80e2ad4bf72c0a111a87313c2eab1

Fix compile error after rebase.

view details

Rolf Schröder

commit sha 2c90691dc0fcab8de9502fc23edd1551a00fd304

Use $SAMPLE_SPHINX_CFG.

view details

Rolf Schröder

commit sha b402be4ddca686e53da8f86947583159a9dbb44e

Fix test.

view details

Rolf Schröder

commit sha c2d8590d7408e0bdc03fdcc715a02563f96d5b67

Refactoring.

view details

Rolf Schröder

commit sha 3ef99067dd7f0e7395d55337306372ec59f8cc8e

Work in PR comments.

view details

push time in 5 days

PR merged ngi-nix/opaque-sphinx

Add Zphinx & further updates

This PR was initially only to include zphinx-zerver. However, things happen*. Thus, this PR now includes:

  • Update pwdsphinx & androsphinx (now both with the new upstream dep "equihash")
  • Add zphinx-zerver (a sphinx server impl)
  • Make package definitions more consistent
  • Rework flake checks

Note that androsphinx is currently unable to communicate with the server implementations. However, this is "their" problem and should not interfere with this PR - I expect a simple androsphinx source code revision update on the Nix side.

* This repo contains the code for https://github.com/ngi-nix/ngi/issues/89 (this PR) as well as https://github.com/ngi-nix/ngi/issues/46. I first worked on #46, later on #89. Work on #89 was paused though because I first wanted to incorporated (any possible major) changes from #46's PR feedback. In the meantime, the project authors continued add breaking changes. Thus, this PR became larger.

+427 -124

1 comment

15 changed files

rolfschr

pr closed time in 5 days

pull request commentngi-nix/opaque-sphinx

Add Zphinx & further updates

@ysndr Thanks for the quick review and your comments. I changed as suggested.

rolfschr

comment created time in 5 days

push eventngi-nix/opaque-sphinx

Rolf Schröder

commit sha 3ef99067dd7f0e7395d55337306372ec59f8cc8e

Work in PR comments.

view details

push time in 5 days

Pull request review commentngi-nix/opaque-sphinx

Add Zphinx & further updates

 buildPythonPackage rec {    checkInputs = [ crudini ];

Yes, thanks!

rolfschr

comment created time in 5 days

PullRequestReviewEvent

Pull request review commentngi-nix/opaque-sphinx

Add Zphinx & further updates

-{ version, src, stdenv, buildPythonPackage, libsodium }:+{ pkgs, version, src }:

I wanted to make sure that all packages are built using the same nixpkgs/python version. I understand you point though. I guess you would simply keep the buildPythonPackage parameter ? (Btw: Here the function is declared and used implicitly. I guess it's actually good to make that more explicit.)

rolfschr

comment created time in 6 days

PullRequestReviewEvent

push eventngi-nix/vulnerablecode

Rolf Schröder

commit sha a6bfd2c448b74dc2d09741bb1e4a9bdb4d1d225f

Assume non-interactivity in tests. Signed-off-by: Rolf Schröder <rolf.schr@gmail.com>

view details

push time in 7 days

push eventngi-nix/vulnerablecode

Lawful2002

commit sha c11e44efdd8443de35c80aa92271d1fe4fa62994

Updated the 'Docker Installation' link Signed-off-by: Lawful2002 <sharshvardhan101@gmail.com>

view details

Hritik Vijay

commit sha 2519f6560fc6a574d7664799c190280a9c1ed5a5

Merge pull request #548 from Lawful2002/link Fixed the broken Docker Installation Link

view details

Shivam Sandbhor

commit sha 64d52ecd0da400986857160e3c64d1099eb00c86

Stop using drf-spectacular (#542) - Use Redoc instead of swagger - Don't rely on CDN - Fix docs for bulk_search API Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>

view details

Rolf Schröder

commit sha 2af4aa6b094dbfd3dac5583c922aa206f2fbcb6e

Fix several problems with the nix setup. Signed-off-by: Rolf Schröder <rolf.schr@gmail.com>

view details

Rolf Schröder

commit sha 10c7a45db85cc5509a2a493baf498ceadbd752af

Refactor mkPython. Signed-off-by: Rolf Schröder <rolf.schr@gmail.com>

view details

push time in 8 days

PullRequestReviewEvent

Pull request review commentngi-nix/opaque-sphinx

Add Zphinx & further updates

 buildPythonPackage rec {    checkInputs = [ crudini ];   preCheck = ''-    # The checks try to read some values from the sphinx.cfg file but don't use-    # them. We can use some dummy values.+    # Prepare the expected config file for the tests.     FILE=sphinx.cfg     cp sphinx.cfg_sample $FILE-    for SECTION in client server ; do-      for PREFIX in ssl_key ssl_cert ; do-        crudini --set $FILE $SECTION $PREFIX ./''${PREFIX}.doesnt-exist.pem-      done+    # Some settings are commented out but must be activated.+    # "# address=..." -> "address=..."+    for PREFIX in address timeout ; do+      sed -i "s/^#[[:space:]]*$PREFIX=/$PREFIX=/" $FILE

The sample config file in src has evolved ...

rolfschr

comment created time in 8 days

Pull request review commentngi-nix/opaque-sphinx

Add Zphinx & further updates

+{ pkgs, version, src, bearssl-src, equihash, libsphinx-src, zigtoml-src }:+with pkgs;+stdenv.mkDerivation {+  pname = "zphinxzerver";+  inherit version src;++  buildInputs = [ libsodium.dev rename zig ];++  postPatch = ''+    substituteInPlace build.zig \+      --replace 'exe.addIncludeDir(".");' \+      'exe.addIncludeDir("."); exe.addIncludeDir("${libsodium.dev}/include"); exe.addIncludeDir("${equihash}/include");'++    substituteInPlace build.zig \+      --replace 'exe.addLibPath("/usr/lib");' \+      'exe.addLibPath("/usr/lib"); exe.addLibPath("${equihash}/lib");'

I'm not so happy with this patching here. It feels somewhat ugly. Here is the original file. We need to make sure that the zig compiler finds our libsodium & equihash libs.

rolfschr

comment created time in 8 days

PullRequestReviewEvent

Pull request review commentngi-nix/opaque-sphinx

Add Zphinx & further updates

-{ version, src, androsphinxCryptoLibs, sdk, callPackage }:+{ pkgs, version, src, androsphinxCryptoLibs, sdk }:+with pkgs; let buildGradle = callPackage ./gradle-env.nix { }; in buildGradle {+  pname = "androsphinx";

Changes in this file and others are made for consistency only.

rolfschr

comment created time in 8 days

push eventngi-nix/opaque-sphinx

Rolf Schröder

commit sha c2d8590d7408e0bdc03fdcc715a02563f96d5b67

Refactoring.

view details

push time in 8 days

push eventngi-nix/opaque-sphinx

Rolf Schröder

commit sha 2c90691dc0fcab8de9502fc23edd1551a00fd304

Use $SAMPLE_SPHINX_CFG.

view details

Rolf Schröder

commit sha b402be4ddca686e53da8f86947583159a9dbb44e

Fix test.

view details

push time in 8 days

pull request commentnexB/vulnerablecode

Fix several problems with the nix setup.

Yes, I think so.

rolfschr

comment created time in 9 days

push eventngi-nix/vulnerablecode

Rolf Schröder

commit sha 4fa55effc012fd059c25a22a1388012efb05e71d

Refactor mkPython. Signed-off-by: Rolf Schröder <rolf.schr@gmail.com>

view details

push time in 11 days

issue commentDavHau/mach-nix

Cannot install GitPython with recent pypiDataRev

For the record, this works for me, too:

in mach-nix.mkPython {
  python = "python38";

  requirements = ''
    GitPython>=3.1.17
  '';

  _.gitpython.propagatedBuildInputs.mod = pySelf: self: oldVal: oldVal ++ [ pySelf.typing-extensions ];

}

(I.e. no need to specify typing-extensions in the requirements)

rolfschr

comment created time in 11 days

issue closedDavHau/mach-nix

Cannot install GitPython with recent pypiDataRev

Hi,

the following compiles fine:

let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix/";
    #rev = "d223656fc0eff33f4da77d69db19752edc9a5ba5"; # current master as of 2021-08-29
    ref = "refs/tags/3.3.0";
  }) { };
in mach-nix.mkPython {
  python = "python38";

  requirements = ''
    GitPython>=3.1.17
  '';

}

However, using newer version of pypiData, this fails:

let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix/";
    #rev = "d223656fc0eff33f4da77d69db19752edc9a5ba5"; # current master as of 2021-08-29
    ref = "refs/tags/3.3.0";
  }) {
   # NEW!!!
    pypiDataRev =
      "41cb9b4db13310d2885a6b985498ba29127024ab"; # 2021-08-28T08:20:46Z
    pypiDataSha256 = "1fm9xc72fmwn36aca4mcigcll9c5y2kpnrmbididzv5y36mf0ijx";

  };
in mach-nix.mkPython {
  python = "python38"; # 3.7 doesnt work neither

  requirements = ''
    GitPython>=3.1.17
  '';

}
...
Processing ./GitPython-3.1.20-py3-none-any.whl
Processing ./GitPython-3.1.20-py3-none-any.whl
Requirement already satisfied: gitdb<5,>=4.0.1 in /nix/store/ryy294vppxk2byfhdl5c4r5i3zb58ij9-python3.8-gitdb-4.0.7/lib/python3.8/site-packages (from GitPython==3.1.20) (4.0.7)
Requirement already satisfied: gitdb<5,>=4.0.1 in /nix/store/ryy294vppxk2byfhdl5c4r5i3zb58ij9-python3.8-gitdb-4.0.7/lib/python3.8/site-packages (from GitPython==3.1.20) (4.0.7)
ERROR: Could not find a version that satisfies the requirement typing-extensions>=3.7.4.3; python_version < "3.10" (from gitpython)
ERROR: Could not find a version that satisfies the requirement typing-extensions>=3.7.4.3; python_version < "3.10" (from gitpython)
ERROR: No matching distribution found for typing-extensions>=3.7.4.3; python_version < "3.10"
ERROR: No matching distribution found for typing-extensions>=3.7.4.3; python_version < "3.10"
builder for '/nix/store/4bz4ndyplihbx162s58rhji7swk82c4n-python3.8-gitpython-3.1.20.drv' failed with exit code 1
error: --- Error ------------------------------------------------------------------------------ nix-shell
build of '/nix/store/4bz4ndyplihbx162s58rhji7swk82c4n-python3.8-gitpython-3.1.20.drv' failed

So it seems to me like it worked in the past but not anymore. Quite possibly due to an update in typing-extension or GitPython. Maybe related to #287 ? Although this did not work:


 _."GitPython".propagatedBuildInputs.mod = pySelf: oldAttrs: oldVal:
    oldVal ++ [ pySelf."GitPython" ];

(Not sure I got that right, though ...)

Also, as a side note: While the first version compiles, I'm don't think it works as intended.

$ nix-shell test.nix --run 'python -c "import git"'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'git'

(but this is not my issue here)

closed time in 11 days

rolfschr

issue commentDavHau/mach-nix

Cannot install GitPython with recent pypiDataRev

Thanks, this works. Sorry for the delay. I'm closing this since #287 already tracks this issue.

rolfschr

comment created time in 11 days

issue commentdnet/androsphinx

Sharing credentials between phone client & pwdsphinx client doesn't work for me (2nd round)

@stef This is probably for you, too.

rolfschr

comment created time in 11 days

issue openeddnet/androsphinx

Sharing credentials between phone client & pwdsphinx client doesn't work for me (2nd round)

Hi,

I have an issue similar to #8. The setup is the same: I setup the software (8fddb9aab0d148520c29c050af814a35f24a6a37) on my phone and I also setup an oracle server (from https://github.com/stef/pwdsphinx, 7fde7bbcb91b83f035c5d5783f6fedb15e58ca1d). I used libsphinx 51b0c18c94b645bd7ea3bb21aef623318e0b7939 and equihash d4657dcb588ae852f8ab5c777837b0578caa3ffb. The pwdsphinx server works fine on my local machine (i.e. I can run the oracle process and access it using the python sphinx.py client). I have used these commands here stef/pwdsphinx#9 to generate the ssl certificate.

Here is a screenshot of the problem. On the left the oracle process, on the right the Python client ("connection from 127.0.0.1"). The client is able to create a password and receive it. Trying to receive the password from the phone ("connection from 192.168.178.50", last line) doesn't yield anything. The phone says "No users found for his host" (note the typo btw ...). The oracle output stays empty.

image (Note: The screenshot was taken a second before the "remove pid XXXXX" output.)

Similarly, when I try to create an entry from the phone client, I get this:

image

(The phone says: "A server error occured.")

Happy to provide further details.

created time in 11 days

issue openedstef/pwdsphinx

Providing a wrong master password yields an error instead of a wrong secret (as was the case previously)

Hi,

I setup pwdsphinx and it works fine. In the past (not sure which commit, definitely before equihash was introduced), when providing the 'wrong' password to retrieve a secret, I would simply get a wrong secret; now I get an error message (see below). I am not sure whether this is intended or not. I just wanted to highlight this. Feel free to close this issue if this is expected behavior.

Thanks

bash-4.4$ sphinx init
bash-4.4$ ls ./datadir/masterkey
./datadir/masterkey
bash-4.4$ printf 'm' | sphinx create user site uld 10 # "m" is the master password
your ☆☆☆☆ (0/4) master password can be online recovered in 7 minutes, and offline in less than a second, trying ~12 guesses
UeZzrVEtox
bash-4.4$ printf 'm' | sphinx get user site
UeZzrVEtox
bash-4.4$ printf 'wrongmasterpassword' | sphinx get user site
Traceback (most recent call last):
  File "/nix/store/z1d50cbhzrjz4pinmsyvalh7444d10qr-python3.8-pwdsphinx-7fde7bb/bin/.sphinx-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/z1d50cbhzrjz4pinmsyvalh7444d10qr-python3.8-pwdsphinx-7fde7bb/lib/python3.8/site-packages/pwdsphinx/sphinx.py", line 673, in main
    ret = cmd(s, pwd, *args)
  File "/nix/store/z1d50cbhzrjz4pinmsyvalh7444d10qr-python3.8-pwdsphinx-7fde7bb/lib/python3.8/site-packages/pwdsphinx/sphinx.py", line 385, in get
    raise ValueError("bad checkdigit")
ValueError: bad checkdigit

created time in 11 days

push eventngi-nix/opaque-sphinx

Rolf Schröder

commit sha 58205344dca80e2ad4bf72c0a111a87313c2eab1

Fix compile error after rebase.

view details

push time in 11 days

push eventngi-nix/opaque-sphinx

Rolf Schröder

commit sha 790c6334c68e870235432dcec239315f29c5696d

Update Readme

view details

push time in 11 days

push eventngi-nix/androsphinx

Rolf Schröder

commit sha cc4a418063d2263eedd1b68d46d5423d6e243ad4

Work in PR comments.

view details

Rolf Schröder

commit sha 83a0c37cef0ca988eb1d10f0467d6b14679d1aad

Implement first working version of zphinxzerver.

view details

Rolf Schröder

commit sha e96adcedbd0de17293ef4008d24d2c88b76d89e4

Forward 'pkgs' to sub packages.

view details

Rolf Schröder

commit sha f39efecda9fa49d379285e6d8615d474d577fdfb

Update readme.

view details

Rolf Schröder

commit sha 436348d440a188ecce8bd55a26607b4840785a7a

Fix typo.

view details

Rolf Schröder

commit sha acb29aa35c6bbc8eeba26f2f34b72b73642d2f55

Order inputs alphabetically.

view details

Rolf Schröder

commit sha e7651293a4a16ea048e845ae06d6b5261a1c5cd2

Initial impl for (py)equihash.

view details

Rolf Schröder

commit sha 030f2a628103f470c3b3368422826ddcf990548c

Order version strings alphabetically.

view details

Rolf Schröder

commit sha 0367a46ab9a87453303e766f3a3099c26c391218

Update pwdsphinx.

view details

Rolf Schröder

commit sha 2487f5ed3cf7a6b1bb9160fce20f40451e90dd84

Update zphinxzerver.

view details

Rolf Schröder

commit sha 67fcb2c8f4ebc4ee58a72aa84bd38a199afe74ad

Update pwdsphinx & zphinxzerver.

view details

Rolf Schröder

commit sha 4c6fc07a830eb76a8509d4eba3d3c9938e9b688d

Harmonize tests.

view details

Rolf Schröder

commit sha 6492042978f27c9bf0166f27b91e49c4af09736a

Update androsphinx.

view details

Rolf Schröder

commit sha e73852910e018f299077f99c41dc27744eabb34a

Update readme.

view details

Rolf Schröder

commit sha 3aa1c8f9f1202ad31b08619e30918dc347a43098

Use pname&version consistently.

view details

push time in 11 days

PR opened ngi-nix/androsphinx

Add Zphinx & further updates
+406 -96

0 comment

15 changed files

pr created time in 11 days