Skip to content

Commit

Permalink
Merge pull request #21 from dvdsk/fix-dep-soundness
Browse files Browse the repository at this point in the history
adds changelog, mitigate soundness in a dep
  • Loading branch information
dvdsk committed Apr 20, 2023
2 parents b1b3dac + 1f4698e commit 99ee32d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 24 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.1] - 2023-04-20

### Fixed
- Resolved soundness issue by replacing dependency `atty` with `is-terminal`
22 changes: 1 addition & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
> **Certificate renewal, with advanced diagnostics without installing anything**
See also:
- [Install](#Install)
- [Example](#Example)
- [Changelog](CHANGELOG.md)

Certificate renewal can be quite fragile. This as a renewal tool that runs without install and does not need anything installed. If anything goes south during renewal it does not just report an error. It will try and find out what is wrong and give you a detailed report. For certificate renewal we use [instant-acme](https://crates.io/crates/instant-acme).

## Features
Expand Down
4 changes: 2 additions & 2 deletions main/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "renewc"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
description = "Certificate renewal, with advanced diagnostics without installing anything"
license = "Apache-2.0 OR MIT"
Expand All @@ -26,7 +26,7 @@ hyper = { version = "0.14", features = ["client"] }
itertools = "0.10"

haproxy-config = "0.4"
atty = "0.2"
is-terminal = "0.4"
shared_memory = "0.12.4"

[dev-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion main/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ pub async fn run(config: impl Into<Config>, debug: bool) -> eyre::Result<()> {

#[must_use]
fn exit_requested(question: &str) -> bool {
if atty::isnt(atty::Stream::Stdin) {
use is_terminal::IsTerminal;
if !std::io::stdin().is_terminal() {
true; // not a terminal, take the safe option
}

Expand Down

0 comments on commit 99ee32d

Please sign in to comment.