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

nix flake tracking issue #457

Open
32 tasks
nothingmuch opened this issue Jan 3, 2025 · 1 comment
Open
32 tasks

nix flake tracking issue #457

nothingmuch opened this issue Jan 3, 2025 · 1 comment

Comments

@nothingmuch
Copy link
Collaborator

nothingmuch commented Jan 3, 2025

Tracking issue for various flake related potential improvements.

# another flake input is required for the advisory db
inputs.advisory-db = {
  url = "github:rustsec/advisory-db";
  flake = false;
}
# and new flake checks
payjoin-workspace-audit-minimal = craneLib.cargoAudit {
  inherit src advisory-db;
  cargoLock = ./Cargo-minimal.lock;
};
payjoin-workspace-audit-recent = craneLib.cargoAudit {
  inherit src advisory-db;
  cargoLock = ./Cargo-recent.lock;
};
  • cargo deny
    • add deny.toml with approved licenses
    • enforce with flake check:
payjoin-workspace-deny-minimal = craneLib.cargoDeny {
  inherit src;
  cargoLock = ./Cargo-minimal.lock;
};
payjoin-workspace-deny-recent = craneLib.cargoDeny {
  inherit src;
  cargoLock = ./Cargo-recent.lock;
};
  • toml formatting
    • format existing files
    • enforce with flake check
payjoin-workspace-toml-fmt = craneLib.taploFmt {
  src = pkgs.lib.sources.sourceFilesBySuffices src [ ".toml" ];
};
@nothingmuch
Copy link
Collaborator Author

@DanGould input re priorities would be appreciated. these seem more important:

  1. making sure nightly rust is reasonably up to date and working seems valuable
  2. work around the redis issue in order to make nix flake check more useful
  3. fixing cargo audit or at least triaging its complaints, there's some unmaintained stuff in our dependency chain right now:
error: 1 vulnerability found! warning: 6 allowed warnings found
Crate:     idna
Version:   0.5.0
Title:     `idna` accepts Punycode labels that do not produce any non-ASCII when decoded
Date:      2024-12-09
ID:        RUSTSEC-2024-0421
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0421
Solution:  Upgrade to >=1.0.0
Dependency tree:
idna 0.5.0
└── url 2.5.0
    ├── tungstenite 0.21.0
    │   ├── tokio-tungstenite 0.21.0
    │   │   ├── ohttp-relay 0.0.9
    │   │   │   ├── payjoin-cli 0.0.9-alpha
    │   │   │   └── payjoin 0.22.0
    │   │   │       └── payjoin-cli 0.0.9-alpha
    │   │   └── hyper-tungstenite 0.13.0
    │   │       └── ohttp-relay 0.0.9
    │   └── hyper-tungstenite 0.13.0
    ├── reqwest 0.12.4
    │   ├── payjoin-cli 0.0.9-alpha
    │   └── payjoin 0.22.0
    ├── redis 0.23.3
    │   └── payjoin-directory 0.0.1
    │       ├── payjoin-cli 0.0.9-alpha
    │       └── payjoin 0.22.0
    ├── payjoin-cli 0.0.9-alpha
    ├── payjoin 0.22.0
    └── bhttp 0.5.1
        ├── payjoin-directory 0.0.1
        └── payjoin 0.22.0

Crate:     atty
Version:   0.2.14
Warning:   unmaintained
Title:     `atty` is unmaintained
Date:      2024-09-25
ID:        RUSTSEC-2024-0375
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0375
Dependency tree:
atty 0.2.14
└── env_logger 0.9.3
    └── payjoin-cli 0.0.9-alpha

Crate:     instant
Version:   0.1.13
Warning:   unmaintained
Title:     `instant` is unmaintained
Date:      2024-09-01
ID:        RUSTSEC-2024-0384
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0384
Dependency tree:
instant 0.1.13
├── parking_lot_core 0.8.6
│   └── parking_lot 0.11.2
│       └── sled 0.34.7
│           └── payjoin-cli 0.0.9-alpha
└── parking_lot 0.11.2

Crate:     proc-macro-error
Version:   1.0.4
Warning:   unmaintained
Title:     proc-macro-error is unmaintained
Date:      2024-09-01
ID:        RUSTSEC-2024-0370
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0370
Dependency tree:
proc-macro-error 1.0.4
└── clap_derive 4.0.21
    └── clap 4.0.32
        └── payjoin-cli 0.0.9-alpha

Crate:     yaml-rust
Version:   0.4.5
Warning:   unmaintained
Title:     yaml-rust is unmaintained.
Date:      2024-03-20
ID:        RUSTSEC-2024-0320
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0320
Dependency tree:
yaml-rust 0.4.5
└── config 0.13.4
    └── payjoin-cli 0.0.9-alpha

Crate:     atty
Version:   0.2.14
Warning:   unsound
Title:     Potential unaligned read
Date:      2021-07-04
ID:        RUSTSEC-2021-0145
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0145

Crate:     futures-util
Version:   0.3.30
Warning:   yanked
Dependency tree:
futures-util 0.3.30
├── tower 0.4.13
│   └── hyper-util 0.1.7
│       ├── reqwest 0.12.4
│       │   ├── payjoin-cli 0.0.9-alpha
│       │   └── payjoin 0.22.0
│       │       └── payjoin-cli 0.0.9-alpha
│       ├── payjoin-directory 0.0.1
│       │   ├── payjoin-cli 0.0.9-alpha
│       │   └── payjoin 0.22.0
│       ├── payjoin-cli 0.0.9-alpha
│       ├── ohttp-relay 0.0.9
│       │   ├── payjoin-cli 0.0.9-alpha
│       │   └── payjoin 0.22.0
│       ├── hyper-tungstenite 0.13.0
│       │   └── ohttp-relay 0.0.9
│       └── hyper-rustls 0.26.0
│           ├── reqwest 0.12.4
│           ├── payjoin-directory 0.0.1
│           ├── payjoin-cli 0.0.9-alpha
│           └── ohttp-relay 0.0.9
├── tokio-tungstenite 0.21.0
│   ├── ohttp-relay 0.0.9
│   └── hyper-tungstenite 0.13.0
├── reqwest 0.12.4
├── redis 0.23.3
│   └── payjoin-directory 0.0.1
├── hyper-util 0.1.7
├── hyper-rustls 0.26.0
├── hyper 1.4.1
│   ├── reqwest 0.12.4
│   ├── payjoin-directory 0.0.1
│   ├── payjoin-cli 0.0.9-alpha
│   ├── ohttp-relay 0.0.9
│   ├── hyper-util 0.1.7
│   ├── hyper-tungstenite 0.13.0
│   └── hyper-rustls 0.26.0
├── http-body-util 0.1.2
│   ├── reqwest 0.12.4
│   ├── payjoin-directory 0.0.1
│   ├── payjoin-cli 0.0.9-alpha
│   ├── ohttp-relay 0.0.9
│   └── hyper-tungstenite 0.13.0
├── futures-executor 0.3.30
│   └── futures 0.3.30
│       ├── testcontainers 0.15.0
│       │   ├── testcontainers-modules 0.1.4
│       │   │   ├── payjoin-cli 0.0.9-alpha
│       │   │   └── payjoin 0.22.0
│       │   ├── payjoin-cli 0.0.9-alpha
│       │   └── payjoin 0.22.0
│       ├── payjoin-directory 0.0.1
│       └── ohttp-relay 0.0.9
└── futures 0.3.30

error: 1 vulnerability found!
warning: 6 allowed warnings found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant