aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-05-12chore: update flakegithub-actions[bot]1-9/+9
Flake lock file updates: • Updated input 'fenix': 'github:nix-community/fenix/94be183087845937b0fd77281c37d0796572b899' (2024-04-28) → 'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/f216be4a0746142c5f30835b254871256a7637b8' (2024-04-27) → 'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2b1f64b358f2cab62617f26b3870fd0ee375d848' (2024-04-27) → 'github:nixos/nixpkgs/af8b9db5c00f1a8e4b83578acc578ff7d823b786' (2024-05-12)
2024-04-28fix URL to the repositoryFranck Cuny2-3/+1
2024-04-28bump a number of dependencies to their latest versionsdependabot[bot]5-365/+486
Updating all these dependencies required some significant code change.
2024-04-22build(deps): bump clap from 4.0.18 to 4.5.4dependabot[bot]2-73/+80
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.18 to 4.5.4. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.0.18...v4.5.4) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16use `add_trust_anchors`Franck Cuny1-1/+1
``` error: use of deprecated method `rustls::RootCertStore::add_server_trust_anchors`: Please use `add_trust_anchors` instead ```
2024-04-16clippy should fail on warningsFranck Cuny1-1/+1
2024-04-16build(deps): bump rustls from 0.20.7 to 0.21.10dependabot[bot]2-21/+148
Bumps [rustls](https://github.com/rustls/rustls) from 0.20.7 to 0.21.10. - [Release notes](https://github.com/rustls/rustls/releases) - [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md) - [Commits](https://github.com/rustls/rustls/compare/v/0.20.7...v/0.21.10) --- updated-dependencies: - dependency-name: rustls dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16build(deps): bump anyhow from 1.0.70 to 1.0.82dependabot[bot]2-3/+3
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.70 to 1.0.82. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.82) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16build(deps): bump x509-parser from 0.14.0 to 0.16.0dependabot[bot]2-57/+88
Bumps [x509-parser](https://github.com/rusticata/x509-parser) from 0.14.0 to 0.16.0. - [Release notes](https://github.com/rusticata/x509-parser/releases) - [Changelog](https://github.com/rusticata/x509-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/rusticata/x509-parser/compare/x509-parser-0.14.0...x509-parser-0.16.0) --- updated-dependencies: - dependency-name: x509-parser dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15add some workflows for CI and dependabot configFranck Cuny3-0/+86
2023-07-05replace rust-overlay with naerskFranck Cuny4-171/+282
This is mostly coming from https://github.com/DeterminateSystems/nix-installer/blob/main/flake.nix
2023-03-30remove configuration for droneFranck Cuny1-50/+0
2023-03-30update metadata in Cargo.tomlFranck Cuny1-2/+4
2023-03-30simplify the main functionFranck Cuny1-5/+1
2023-03-30use anyhow for error handlingFranck Cuny3-3/+11
2023-03-28add a flag to check expired certificateFranck Cuny5-36/+94
Add the `--insecure` flag so we can check certificates that are expired. When using the short format for the output (the default), if the certificate has expired, it will report how many days ago. For certificates that have not expired, the remaining number of days will be printed.
2022-11-13doc: update READMEFranck Cuny1-7/+55
2022-11-13ref: print succinct or detailed information about a certFranck Cuny3-71/+106
Most of the time, all I want is to know when the certificate is going to expire. In some cases, I might want to see more details. This change introduce a new argument to the CLI to select what level of information to print. The new option (`--format`) will by default print the short summary, like this: ``` > ./target/debug/x509-info twitter.com twitter.com is valid until Mon, 12 Dec 2022 15:59:59 -0800 (29 days left) ``` While with `--format long` we get the following: ``` > ./target/debug/x509-info --format long twitter.com certificate version: V3 serial: 0d:e1:52:69:6b:2f:96:70:d6:c7:db:18:ce:1c:71:a0 subject: C=US, ST=California, L=San Francisco, O=Twitter, Inc., CN=twitter.com issuer: C=US, O=DigiCert Inc, CN=DigiCert TLS RSA SHA256 2020 CA1 validity not before : Sun, 12 Dec 2021 16:00:00 -0800 not after : Mon, 12 Dec 2022 15:59:59 -0800 validity days : 364 remaining days: 29 SANs: DNS:twitter.com DNS:www.twitter.com ```
2022-11-09fix: small nitFranck Cuny1-1/+1
2022-11-09fix: ensure rust-src is installedFranck Cuny1-1/+3
2022-11-08fix: configure properly the overlayFranck Cuny1-1/+1
2022-11-08flake.lock: UpdateFranck1-12/+12
Flake lock file updates: • Updated input 'flake-utils': 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07) → 'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/d3c2379d149073e53eb5580deafad475c1cabe28' (2022-10-20) → 'github:NixOS/nixpkgs/1d29ae3a66395506fd85655a8d74279ad4f9098f' (2022-11-08) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/1b436f36e2812c589e6d830e3223059ea9661100' (2022-10-24) → 'github:cachix/pre-commit-hooks.nix/06f48d63d473516ce5b8abe70d15be96a0147fcd' (2022-11-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/dd334e95eb46e79e52a75c80ef9ba73c3d867840' (2022-10-20) → 'github:oxalica/rust-overlay/9235990723630e1a55e1ed6bca5954e4e31cfbd7' (2022-11-08)
2022-11-07ci: add pipeline to update flacksFranck Cuny1-0/+14
2022-11-06ci: switch from GitHub action to droneFranck Cuny4-60/+37
I'm running my own CI at ci.fcuny.net using drone for now. I've spare compute capacity at home, and it's way faster than the GHA runners. For now I'm losing the following: - dependabot: that's a GitHub only function, I'll need to figure out something - nix flake update: I'll need to figure out a way to update flakes on a regular basis, probably a custom script to take care of that
2022-11-04buid: use crane to build the binaryFranck Cuny2-30/+114
crane is a nix library to build cargo projects, similar to naersk. The main advantage over naersk is the composability. I'll give it a try and see if it's faster for local development.
2022-11-01build: follow flake-inputs for rust overlayFranck Cuny2-16/+4
2022-11-01build: add pre-commit checksFranck Cuny3-4/+56
2022-11-01ci: rewrite GitHub actions to use `nix develop|build`Franck Cuny1-75/+36
Instead of relying on GitHub actions to check/test/build the code, I can rely entirely on nix to do these steps. This has the added benefit that the workflow will be similar to my local environment and make it easy to test the worfklow before running it on GitHub.
2022-11-01fix: disable default feature on `chrono` crateFranck Cuny2-49/+46
See https://github.com/chronotope/chrono/issues/602 for more details.
2022-11-01build: get rid of naerskFranck Cuny2-55/+28
We can build a rust binary without naesrk,with the help of `buildRustPackage`. Simplify a bit the overall build by consuming information from Cargo.toml and Cargo.lock.
2022-11-01build: configure rust overlay to follow nixpkgsFranck Cuny2-18/+7
2022-11-01meta: add a configuration to allow/deny dependenciesFranck Cuny1-0/+46
cargo-deny is a plugin to lint a project's dependency graph. This allow me to set which licenses are allowed for the dependencies, and configure the security vulnerability database.
2022-11-01meta: ignore result directoryFranck Cuny1-0/+1
2022-10-24build(deps): bump clap from 4.0.17 to 4.0.18dependabot[bot]2-5/+5
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.17 to 4.0.18. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.0.17...v4.0.18) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21build(deps): bump actions/checkout from 2 to 3dependabot[bot]1-5/+5
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21feat: get information about a given certificateFranck Cuny7-1/+1197
Read the domain name from the CLI, and get and print information about the certificate to STDOUT. The output looks like this: ``` > ./target/debug/x509-info badssl.com Subject: CN=*.badssl.com O= L= Issuer: CN=R3 O=Let's Encrypt L= DNS Names: *.badssl.com, badssl.com Validity Period Not before: 2022-08-12T07:57:46-07:00 Not After: 2022-11-10T06:57:45-08:00 ```
2022-10-19build: fix the name of the workflowFranck Cuny1-1/+1