Compare commits

...

258 commits
v0.2.3 ... main

Author SHA1 Message Date
9a47a2ae4f
Merge pull request #158 from bartvdbraak/renovate/clap-4.x-lockfile 2024-12-06 16:51:49 +01:00
renovate[bot]
183b6fb99d
fix(deps): update rust crate clap to v4.5.23 2024-12-05 23:40:05 +00:00
daff68ff1b
Merge pull request #157 from bartvdbraak/renovate/clap-4.x-lockfile 2024-12-04 00:05:58 +01:00
12dce85f1d
Merge pull request #156 from bartvdbraak/renovate/anyhow-1.x-lockfile 2024-12-04 00:05:15 +01:00
renovate[bot]
d1fe52c071
fix(deps): update rust crate clap to v4.5.22 2024-12-03 22:48:09 +00:00
renovate[bot]
99727cbea0
fix(deps): update rust crate anyhow to v1.0.94 2024-12-03 22:48:00 +00:00
651fb07bfa
Merge pull request #155 from bartvdbraak/renovate/tokio-1.x-lockfile 2024-12-03 18:19:50 +01:00
renovate[bot]
39ec69cdc3
fix(deps): update rust crate tokio to v1.42.0 2024-12-03 17:04:33 +00:00
77bbef1fa5
Merge pull request #152 from bartvdbraak/renovate/anyhow-1.x-lockfile 2024-11-14 11:19:00 +01:00
0a1478556c
Merge pull request #151 from bartvdbraak/renovate/tokio-1.x-lockfile 2024-11-14 11:18:29 +01:00
af809886aa
Merge pull request #154 from bartvdbraak/renovate/clap-4.x-lockfile 2024-11-14 11:18:10 +01:00
renovate[bot]
ec2ad7eafe
fix(deps): update rust crate clap to v4.5.21 2024-11-13 22:26:15 +00:00
e9d088acf2
Merge pull request #153 from bartvdbraak/renovate/serial_test-3.x-lockfile 2024-11-10 19:32:46 +01:00
renovate[bot]
b88b92bcdf
chore(deps): update rust crate serial_test to v3.2.0 2024-11-08 22:59:50 +00:00
renovate[bot]
2ecc6a63bb
fix(deps): update rust crate tokio to v1.41.1 2024-11-07 12:39:40 +00:00
renovate[bot]
b30a73dc61
fix(deps): update rust crate anyhow to v1.0.93 2024-11-06 07:01:14 +00:00
591a2a558d
Merge pull request #150 from bartvdbraak/renovate/azure-dependencies 2024-10-19 17:00:40 +02:00
renovate[bot]
906dcb02fd
fix(deps): update azure dependencies to 0.21.0 2024-10-19 14:56:58 +00:00
204d8c76e8
Merge pull request #149 from bartvdbraak/renovate-group-azure
Group Azure dependency updates
2024-10-19 16:56:27 +02:00
bf8d86b6fd
Update renovate.json 2024-10-19 16:53:44 +02:00
a1e89a5f2b
Merge pull request #145 from bartvdbraak/renovate/openssl-0.x-lockfile 2024-10-19 16:26:25 +02:00
renovate[bot]
7db9b7d14d
fix(deps): update rust crate openssl to v0.10.68 2024-10-18 21:14:38 +00:00
e75d1b6556
Merge pull request #144 from bartvdbraak/renovate/anyhow-1.x-lockfile 2024-10-18 23:12:46 +02:00
renovate[bot]
c724d7604d
fix(deps): update rust crate anyhow to v1.0.90 2024-10-18 20:53:51 +00:00
4db5cf0fcd
Merge pull request #143 from bartvdbraak/renovate/clap-4.x-lockfile 2024-10-08 19:23:12 +02:00
renovate[bot]
60ad985e3f
fix(deps): update rust crate clap to v4.5.20 2024-10-08 17:15:03 +00:00
0251190921
Merge pull request #142 from bartvdbraak/renovate/rust-futures-monorepo 2024-10-05 17:47:01 +02:00
renovate[bot]
25a6d8bb85
fix(deps): update rust crate futures to v0.3.31 2024-10-05 08:03:37 +00:00
6a319cd15e
Merge pull request #141 from bartvdbraak/renovate/clap-4.x-lockfile 2024-10-01 21:04:53 +02:00
renovate[bot]
bea9049dee
fix(deps): update rust crate clap to v4.5.19 2024-10-01 18:32:48 +00:00
e9f3bbfb38
Merge pull request #140 from bartvdbraak/renovate/clap-4.x-lockfile
fix(deps): update rust crate clap to v4.5.18
2024-09-24 14:19:41 +02:00
renovate[bot]
75f7adea20
fix(deps): update rust crate clap to v4.5.18 2024-09-20 22:07:32 +00:00
deb649c1e2
Merge pull request #139 from bartvdbraak/renovate/tokio-1.x-lockfile 2024-09-16 16:41:30 +02:00
renovate[bot]
a9023e5bf8
fix(deps): update rust crate tokio to v1.40.0 2024-09-16 14:18:15 +00:00
171b0c0cc9
Merge pull request #138 from bartvdbraak/renovate/clap-4.x-lockfile 2024-09-16 11:29:04 +02:00
ac4e2f37f2
Merge pull request #137 from bartvdbraak/renovate/anyhow-1.x-lockfile 2024-09-16 11:28:42 +02:00
renovate[bot]
57ffb39d0d
fix(deps): update rust crate clap to v4.5.17 2024-09-16 09:24:01 +00:00
renovate[bot]
2ae74badf3
fix(deps): update rust crate anyhow to v1.0.89 2024-09-16 09:23:54 +00:00
03ad8b248c
Merge pull request #134 from bartvdbraak/renovate/clap-4.x-lockfile 2024-08-18 12:03:11 +02:00
4bb6048ed6
Merge pull request #135 from bartvdbraak/renovate/tokio-1.x-lockfile 2024-08-18 12:02:53 +02:00
renovate[bot]
501d4fdb9f
fix(deps): update rust crate tokio to v1.39.3 2024-08-17 19:41:20 +00:00
renovate[bot]
b711a67a35
fix(deps): update rust crate clap to v4.5.16 2024-08-15 22:07:02 +00:00
fb5d31e15a
Merge pull request #133 from bartvdbraak/renovate/clap-4.x-lockfile 2024-08-11 09:38:08 +02:00
renovate[bot]
97f9aefac4
fix(deps): update rust crate clap to v4.5.15 2024-08-10 00:47:55 +00:00
be864e9263
Merge pull request #132 from bartvdbraak/renovate/assert_cmd-2.x-lockfile 2024-08-09 10:32:13 +02:00
renovate[bot]
5030f4530d
chore(deps): update rust crate assert_cmd to v2.0.16 2024-08-09 03:32:41 +00:00
df4ba6b2a5
Merge pull request #131 from bartvdbraak/renovate/clap-4.x-lockfile
fix(deps): update rust crate clap to v4.5.14
2024-08-09 00:14:29 +02:00
renovate[bot]
4114a4eb49
fix(deps): update rust crate clap to v4.5.14 2024-08-08 16:46:19 +00:00
dc0955896a
Merge pull request #130 from bartvdbraak/renovate/clap-4.x-lockfile 2024-08-01 18:53:33 +02:00
renovate[bot]
e2dff58fbc
fix(deps): update rust crate clap to v4.5.13 2024-07-31 22:13:06 +00:00
4940f6ab76
Merge pull request #129 from bartvdbraak/renovate/clap-4.x-lockfile 2024-07-31 20:46:52 +02:00
renovate[bot]
0316c9b62a
fix(deps): update rust crate clap to v4.5.12 2024-07-31 18:36:35 +00:00
f934b6decc
Merge pull request #128 from bartvdbraak/renovate/predicates-3.x-lockfile
chore(deps): update rust crate predicates to v3.1.2
2024-07-31 12:21:14 +02:00
d9e61ef965
Merge pull request #127 from bartvdbraak/renovate/assert_cmd-2.x-lockfile
chore(deps): update rust crate assert_cmd to v2.0.15
2024-07-31 12:21:08 +02:00
87d1abb957
Merge pull request #126 from bartvdbraak/renovate/assert_fs-1.x-lockfile
chore(deps): update rust crate assert_fs to v1.1.2
2024-07-31 12:21:00 +02:00
4cbe9d150b
Merge pull request #122 from bartvdbraak/renovate/tokio-1.x-lockfile
fix(deps): update rust crate tokio to v1.39.2
2024-07-31 12:20:56 +02:00
21f0ccb007
Merge pull request #121 from bartvdbraak/renovate/clap-4.x-lockfile
fix(deps): update rust crate clap to v4.5.11
2024-07-31 12:20:49 +02:00
renovate[bot]
0a6c8e08a2
fix(deps): update rust crate tokio to v1.39.2 2024-07-31 10:14:54 +00:00
renovate[bot]
5b303a1c03
fix(deps): update rust crate clap to v4.5.11 2024-07-31 10:14:49 +00:00
renovate[bot]
c3c29998dc
chore(deps): update rust crate predicates to v3.1.2 2024-07-31 10:14:43 +00:00
renovate[bot]
48ba0fac9c
chore(deps): update rust crate assert_fs to v1.1.2 2024-07-31 10:14:38 +00:00
renovate[bot]
7d045cb1cc
chore(deps): update rust crate assert_cmd to v2.0.15 2024-07-31 10:14:31 +00:00
fe60cb9b57
Merge pull request #125 from bartvdbraak/renovate/crate-openssl-vulnerability
fix(deps): update rust crate openssl to v0.10.66 [security]
2024-07-31 12:12:29 +02:00
renovate[bot]
86f40179d4
fix(deps): update rust crate openssl to v0.10.66 [security] 2024-07-22 20:34:27 +00:00
4720bba3ef
Merge pull request #120 from bartvdbraak/version0.3.1
Fix action runner label for MacOS on ARM and update version
2024-07-02 03:18:19 +02:00
a112604add feat: update version to 0.3.1 2024-07-02 03:17:04 +02:00
2a2496a9fa fix: use macos-latest for darwin arm builds 2024-07-02 03:16:52 +02:00
cd304e753d
Merge pull request #119 from bartvdbraak/version-3
Update to version 0.3.0
2024-07-02 03:09:32 +02:00
56fa06754d feat: update to version 0.3.0 2024-07-02 03:08:45 +02:00
303245c65a
Merge pull request #118 from bartvdbraak/major-upgrade
Update to latest Azure SDK packages
2024-07-02 03:05:44 +02:00
ffdb0e840d feat: update to latest azure-related sdk packages 2024-07-02 03:01:50 +02:00
45f78e67a2
Merge pull request #117 from bartvdbraak/updates
Updates to packages and API versions
2024-07-02 02:52:55 +02:00
dbfd200ff5 fix: use correct var name for secret 2024-07-02 02:46:08 +02:00
76a647b884 feat: update packages 2024-07-02 02:32:41 +02:00
renovate[bot]
9ee9e3c462 chore(deps): update resource microsoft.operationalinsights/workspaces to 2023-09-01 2024-07-02 02:32:41 +02:00
renovate[bot]
b0c07d8987 fix(deps): update rust crate tokio to v1.38.0 2024-07-02 02:32:41 +02:00
renovate[bot]
b0a49b5215 fix(deps): update rust crate anyhow to v1.0.86 2024-07-02 02:32:41 +02:00
renovate[bot]
ce27373cf0 fix(deps): update rust crate clap to v4.5.8 2024-07-02 02:32:41 +02:00
renovate[bot]
9d5e1fcd3c chore(deps): update rust crate serial_test to v3.1.1 2024-07-02 02:32:41 +02:00
094904ee20
Merge pull request #115 from bartvdbraak/renovate/tokio-1.x-lockfile
fix(deps): update rust crate tokio to v1.38.0
2024-07-02 02:19:28 +02:00
d194dc0d94
Merge pull request #114 from bartvdbraak/renovate/anyhow-1.x-lockfile
fix(deps): update rust crate anyhow to v1.0.86
2024-07-02 02:19:18 +02:00
b717210765
Merge pull request #116 from bartvdbraak/renovate/clap-4.x-lockfile
fix(deps): update rust crate clap to v4.5.8
2024-07-02 02:19:08 +02:00
59d3c062e5
Merge pull request #113 from bartvdbraak/renovate/serial_test-3.x-lockfile
chore(deps): update rust crate serial_test to v3.1.1
2024-07-02 02:18:58 +02:00
renovate[bot]
38a0d9811a
fix(deps): update rust crate clap to v4.5.8 2024-06-28 19:55:56 +00:00
renovate[bot]
7c4a7dfdff
fix(deps): update rust crate tokio to v1.38.0 2024-05-30 21:45:35 +00:00
renovate[bot]
6d3cc9df79
fix(deps): update rust crate anyhow to v1.0.86 2024-05-18 15:36:59 +00:00
renovate[bot]
fd3b5d83a1
chore(deps): update rust crate serial_test to v3.1.1 2024-05-05 11:13:57 +00:00
renovate[bot]
b58fce276d
chore(deps): update resource microsoft.resources/resourcegroups to 2024-03-01 2024-05-04 13:41:22 +00:00
68f669135b
Merge pull request #106 from bartvdbraak/renovate/serial_test-3.x
chore(deps): update rust crate serial_test to 3.1.0
2024-04-22 02:29:03 +02:00
renovate[bot]
147c6ed04b
chore(deps): update rust crate serial_test to 3.1.0 2024-04-21 22:41:14 +00:00
3a53246d0b
Merge pull request #104 from bartvdbraak/feat/bump-to-0.2.7
Update keyweave crate version to 0.2.7
2024-04-11 01:23:25 +02:00
e6ed4210e9
Merge pull request #100 from bartvdbraak/renovate/anyhow-1.x
fix(deps): update rust crate anyhow to 1.0.82
2024-04-11 01:04:52 +02:00
renovate[bot]
3821d2ed6a
fix(deps): update rust crate anyhow to 1.0.82 2024-04-10 22:58:57 +00:00
47120c6508 feat: update keyweave crate version to 0.2.7 2024-04-11 00:57:07 +02:00
5dbd2c85ce
Merge pull request #101 from bartvdbraak/fix-vulns
Fix vulnerabilities in h2 and iana-time-zone dependencies
2024-04-11 00:53:42 +02:00
c3932d30ed fix: update dependencies due to vulnerabilities in h2 and iana-time-zone 2024-04-11 00:51:09 +02:00
d587718750
Merge pull request #99 from bartvdbraak/dependabot/cargo/h2-0.3.26 2024-04-10 20:56:44 +02:00
dependabot[bot]
b3b179fdc9
build(deps): bump h2 from 0.3.24 to 0.3.26
Bumps [h2](https://github.com/hyperium/h2) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-05 16:17:25 +00:00
20f6081bc5
Merge pull request #98 from bartvdbraak/renovate/tokio-1.x 2024-03-31 23:09:31 +02:00
renovate[bot]
185a8c99c6
fix(deps): update rust crate tokio to 1.37.0 2024-03-28 16:48:15 +00:00
168aaaea56
Merge pull request #97 from bartvdbraak/renovate/clap-4.x 2024-03-27 17:11:08 +01:00
renovate[bot]
bca4601268
fix(deps): update rust crate clap to 4.5.4 2024-03-25 23:17:21 +00:00
1271b4b420
Merge pull request #96 from bartvdbraak/renovate/clap-4.x 2024-03-16 15:03:01 +01:00
renovate[bot]
132a5cfe33
fix(deps): update rust crate clap to 4.5.3 2024-03-15 14:20:22 +00:00
40cc88c522
Merge pull request #95 from bartvdbraak/renovate/anyhow-1.x 2024-03-12 08:03:37 +01:00
renovate[bot]
977cfe69f0
fix(deps): update rust crate anyhow to 1.0.81 2024-03-12 03:39:02 +00:00
250c4c98f3
Merge pull request #94 from bartvdbraak/renovate/softprops-action-gh-release-2.x 2024-03-09 20:45:58 +01:00
renovate[bot]
6c954a1431
chore(deps): update softprops/action-gh-release action to v2 2024-03-08 21:48:24 +00:00
3c05767b86
Merge pull request #93 from bartvdbraak/renovate/clap-4.x 2024-03-08 09:10:57 +01:00
renovate[bot]
99a7908b33
fix(deps): update rust crate clap to 4.5.2 2024-03-06 18:45:11 +00:00
742c1c0df1
Merge pull request #91 from bartvdbraak/feat/bump-to-0.2.6
Update keyweave version to 0.2.6
2024-03-05 11:47:11 +01:00
9aa1d42307 Update keyweave version to 0.2.6 2024-03-05 11:41:24 +01:00
c99e2e47bf
Merge pull request #90 from bartvdbraak/feat/bump-to-0.2.6
Bump version to `0.2.6`
2024-03-05 11:30:37 +01:00
d0bc688c39
feat: bump version to 0.2.6 2024-03-05 11:28:31 +01:00
bb0097391b
Merge pull request #89 from bartvdbraak/update-badges
Add tests and branch specific status in badges
2024-03-05 11:20:45 +01:00
f029dc31b0
feat: add tests and branch specific status 2024-03-05 10:47:54 +01:00
b4d3f6c964
Merge pull request #87 from bartvdbraak/dependabot/cargo/mio-0.8.11
build(deps): bump mio from 0.8.10 to 0.8.11
2024-03-05 10:25:13 +01:00
dependabot[bot]
97e79111d3
build(deps): bump mio from 0.8.10 to 0.8.11
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-05 09:09:02 +00:00
41d0f9df35
Merge pull request #86 from bartvdbraak/renovate/azure-login-2.x 2024-03-04 10:50:08 +01:00
renovate[bot]
d202c0066d
chore(deps): update azure/login action to v2 2024-03-04 09:46:33 +00:00
ff4a5ef7eb
Merge pull request #85 from bartvdbraak/fix/artifact-pattern
Fix file extraction and destination path
2024-02-26 00:29:30 +01:00
af792f9881 feat: remone unzip 2024-02-26 00:16:45 +01:00
2c1d33031a fix: use different condition for windows 2024-02-26 00:10:26 +01:00
5678fb6469 fix: unzip and change dest path 2024-02-25 23:45:27 +01:00
dce912c324 chore: debug fs 2024-02-25 23:06:52 +01:00
4ce02a387e
Merge pull request #84 from bartvdbraak/renovate/assert_cmd-2.x 2024-02-25 13:34:45 +01:00
f606b6a4c7
Merge pull request #83 from bartvdbraak/renovate/anyhow-1.x 2024-02-25 13:34:10 +01:00
0abca53bff
Merge pull request #82 from bartvdbraak/renovate/clap-4.x 2024-02-25 13:23:00 +01:00
renovate[bot]
8cfb62819e
chore(deps): update rust crate assert_cmd to 2.0.14 2024-02-19 16:55:07 +00:00
renovate[bot]
a70e8711d3
fix(deps): update rust crate anyhow to 1.0.80 2024-02-19 07:08:16 +00:00
renovate[bot]
df5b504597
fix(deps): update rust crate clap to 4.5.1 2024-02-16 16:41:47 +00:00
19de53fcff
Merge pull request #79 from bartvdbraak/renovate/tokio-1.x
fix(deps): update rust crate tokio to 1.36.0
2024-02-15 11:38:14 +01:00
32a8703a19
Merge pull request #80 from bartvdbraak/renovate/clap-4.x
fix(deps): update rust crate clap to 4.5.0
2024-02-15 11:38:09 +01:00
faceb388eb
Merge pull request #81 from bartvdbraak/renovate/azure-arm-deploy-2.x
chore(deps): update azure/arm-deploy action to v2
2024-02-15 11:38:02 +01:00
renovate[bot]
6e852a4d47
chore(deps): update azure/arm-deploy action to v2 2024-02-13 04:23:46 +00:00
renovate[bot]
0cd8d904ab
fix(deps): update rust crate clap to 4.5.0 2024-02-08 19:08:48 +00:00
renovate[bot]
60fd9d92f2
fix(deps): update rust crate tokio to 1.36.0 2024-02-02 14:24:10 +00:00
81b513ce31
Merge pull request #78 from bartvdbraak/fix/artifact-pattern
Fix path to pattern in download
2024-01-23 01:08:39 +01:00
dedca912f0 fix: change path to pattern in download 2024-01-23 01:05:04 +01:00
bea02e6bd8
Merge pull request #76 from bartvdbraak/fix/strip-fails
Fix strip command in release workflow
2024-01-23 00:55:27 +01:00
0b685a051a fix: strip command in release workflow always return 2024-01-23 00:53:04 +01:00
78bfcfa3e6
Merge pull request #75 from bartvdbraak/fix/upload-artifact-v4
Fix artifact path and improve packaging
2024-01-23 00:41:52 +01:00
43ba0e11ef fix: use dist folder as artifact 2024-01-23 00:37:01 +01:00
bb73a7b245
Merge pull request #74 from bartvdbraak/feat/release-0.2.5
Bump version to 0.2.5
2024-01-22 22:53:19 +01:00
8a9001b932 feat: add latest updates of cargo deps 2024-01-22 17:58:26 +01:00
a9cc49b1f9 feat: bump version to 0.2.5 2024-01-22 11:14:06 +01:00
ce1dad561a
Merge pull request #72 from bartvdbraak/renovate/actions-cache-4.x 2024-01-18 02:14:51 +01:00
renovate[bot]
1c35572673
chore(deps): update actions/cache action to v4 2024-01-17 20:12:56 +00:00
e592fdbfd9
Merge pull request #71 from bartvdbraak/renovate/clap-4.x 2024-01-16 22:41:52 +01:00
renovate[bot]
88a977aa99
fix(deps): update rust crate clap to 4.4.18 2024-01-16 21:21:02 +00:00
23ac8896b1
Merge pull request #70 from bartvdbraak/renovate/predicates-3.x
chore(deps): update rust crate predicates to 3.1.0
2024-01-16 03:52:17 +01:00
renovate[bot]
e92ae4208b
chore(deps): update rust crate predicates to 3.1.0 2024-01-15 21:10:46 +00:00
103de8085f
Merge pull request #69 from bartvdbraak/renovate/clap-4.x 2024-01-15 17:51:26 +01:00
renovate[bot]
5a026fab53
fix(deps): update rust crate clap to 4.4.17 2024-01-15 16:48:44 +00:00
5f319a0a11
Merge pull request #68 from bartvdbraak/renovate/assert_cmd-2.x 2024-01-12 08:07:02 +01:00
renovate[bot]
209b1b36c6
chore(deps): update rust crate assert_cmd to 2.0.13 2024-01-12 06:07:53 +00:00
6361df6205
Merge pull request #66 from bartvdbraak/renovate/assert_fs-1.x 2024-01-12 07:06:18 +01:00
a709179024
Merge pull request #67 from bartvdbraak/renovate/clap-4.x 2024-01-12 07:05:45 +01:00
renovate[bot]
af02c1b5a7
fix(deps): update rust crate clap to 4.4.16 2024-01-12 03:13:38 +00:00
renovate[bot]
c1df565bd7
chore(deps): update rust crate assert_fs to 1.1.1 2024-01-12 03:13:33 +00:00
046a628216
Merge pull request #65 from bartvdbraak/renovate/clap-4.x 2024-01-11 22:04:42 +01:00
renovate[bot]
98aba8f784
fix(deps): update rust crate clap to 4.4.15 2024-01-11 19:12:05 +00:00
42b13111a2
Merge pull request #64 from bartvdbraak/docs/refs-code-conduct-security
Add code of conduct and security documents
2024-01-10 15:52:23 +01:00
ea305f2cf3 feat: add security document 2024-01-10 15:41:58 +01:00
4f15b45e72 feat: add code of conduct document 2024-01-10 15:41:47 +01:00
14ae8e5a85
Merge pull request #63 from bartvdbraak/renovate/clap-4.x
fix(deps): update rust crate clap to 4.4.14
2024-01-10 15:31:57 +01:00
renovate[bot]
112e2cedb2
fix(deps): update rust crate clap to 4.4.14 2024-01-10 12:08:17 +00:00
738208b522
Merge pull request #61 from bartvdbraak/renovate/azure_security_keyvault-0.x
fix(deps): update rust crate azure_security_keyvault to 0.19.0
2024-01-10 13:07:37 +01:00
renovate[bot]
c12f15ce99 fix(deps): update rust crate azure_security_keyvault to 0.19.0 2024-01-10 12:58:49 +01:00
renovate[bot]
1572e40dd0 fix(deps): update rust crate azure_identity to 0.19.0 2024-01-10 12:58:49 +01:00
820f982c8a
Merge pull request #62 from bartvdbraak/renovate/serial_test-3.x 2024-01-07 19:51:30 +01:00
f1e942cd75
Merge pull request #58 from bartvdbraak/renovate/clap-4.x 2024-01-07 19:51:10 +01:00
renovate[bot]
74fe383e8e
chore(deps): update rust crate serial_test to v3 2024-01-06 23:13:51 +00:00
9af3ef474a
Merge pull request #59 from bartvdbraak/renovate/azure_core-0.x 2024-01-05 22:30:27 +01:00
renovate[bot]
22f938b010
fix(deps): update rust crate azure_core to 0.19.0 2024-01-05 21:15:36 +00:00
renovate[bot]
bb4d3b5ef3
fix(deps): update rust crate clap to 4.4.13 2024-01-04 19:31:53 +00:00
c9acd6c389
Merge pull request #57 from bartvdbraak/renovate/anyhow-1.x 2024-01-02 19:49:28 +01:00
renovate[bot]
d84131cde0
fix(deps): update rust crate anyhow to 1.0.79 2024-01-02 07:29:47 +00:00
a1e5d57285
Merge pull request #56 from bartvdbraak/renovate/anyhow-1.x 2023-12-31 09:28:23 +01:00
renovate[bot]
7065b88d20
fix(deps): update rust crate anyhow to 1.0.78 2023-12-31 00:47:55 +00:00
a60df7fb62
Merge pull request #55 from bartvdbraak/renovate/clap-4.x 2023-12-28 20:55:27 +01:00
renovate[bot]
9c6dce5041
fix(deps): update rust crate clap to 4.4.12 2023-12-28 19:48:38 +00:00
672badce58
Merge pull request #53 from bartvdbraak/renovate/anyhow-1.x 2023-12-27 22:33:29 +01:00
e94316208d
Merge pull request #54 from bartvdbraak/renovate/assert_fs-1.x 2023-12-27 20:41:44 +01:00
renovate[bot]
a3524d7b19
chore(deps): update rust crate assert_fs to 1.1.0 2023-12-27 18:53:22 +00:00
renovate[bot]
5ff0d583dd
fix(deps): update rust crate anyhow to 1.0.77 2023-12-27 01:53:28 +00:00
f69980326e
Merge pull request #51 from bartvdbraak/renovate/anyhow-1.x 2023-12-26 20:15:54 +01:00
50ff0c8b0f
Merge pull request #52 from bartvdbraak/renovate/rust-futures-monorepo 2023-12-26 20:15:01 +01:00
renovate[bot]
4b214976db
fix(deps): update rust crate futures to 0.3.30 2023-12-24 17:14:35 +00:00
renovate[bot]
98bf41c4c5
fix(deps): update rust crate anyhow to 1.0.76 2023-12-21 04:09:08 +00:00
1da54f1ccb
Merge pull request #50 from bartvdbraak/renovate/tokio-1.x 2023-12-19 20:21:44 +01:00
renovate[bot]
193795cb91
fix(deps): update rust crate tokio to 1.35.1 2023-12-19 19:15:43 +00:00
a61e0082cb
Merge pull request #48 from bartvdbraak/renovate/actions-download-artifact-4.x 2023-12-15 10:49:39 +01:00
28b4a3e49e
Merge pull request #49 from bartvdbraak/renovate/actions-upload-artifact-4.x 2023-12-15 10:48:20 +01:00
renovate[bot]
af81fca4ba
chore(deps): update actions/upload-artifact action to v4 2023-12-14 21:18:48 +00:00
renovate[bot]
4aa31ffdc1
chore(deps): update actions/download-artifact action to v4 2023-12-14 21:18:44 +00:00
c759fbf36e
Merge pull request #44 from bartvdbraak/renovate/azure_identity-0.x 2023-12-12 15:14:42 +01:00
9fbdf1a7d1 feat: consolidate error handling 2023-12-12 15:10:14 +01:00
7dd49a8744 chore(deps): update minor versions 2023-12-12 13:56:18 +01:00
renovate[bot]
01875fbf86 fix(deps): update rust crate azure_identity to 0.18.1 2023-12-12 13:48:36 +01:00
renovate[bot]
a6a7c1a933 fix(deps): update rust crate azure_security_keyvault to 0.18.0 2023-12-12 13:48:11 +01:00
renovate[bot]
2708a15294
fix(deps): update rust crate azure_core to 0.18.0 2023-12-12 09:48:24 +00:00
924893f00c
Merge pull request #46 from bartvdbraak/renovate/tokio-1.x 2023-12-12 10:46:30 +01:00
renovate[bot]
07263c7651
fix(deps): update rust crate tokio to 1.35.0 2023-12-09 00:15:30 +00:00
2e164b1c4f
Merge pull request #42 from bartvdbraak/renovate/clap-4.x 2023-12-05 08:01:28 +01:00
renovate[bot]
53d8a8e725
fix(deps): update rust crate clap to 4.4.11 2023-12-04 21:39:59 +00:00
bd17b8c824
Merge pull request #41 from bartvdbraak/feat/bump-to-0.2.4
Update packages and draft new release
2023-12-01 20:39:22 +01:00
939a49e761 docs: minor formulation changes 2023-12-01 20:30:56 +01:00
5adb3a2069 docs: correct flag used for vault name 2023-12-01 20:24:40 +01:00
9e735ea44d feat: update package version to 0.2.4 2023-12-01 16:56:01 +01:00
a706a50814 feat: update packages using cargo 2023-12-01 16:50:30 +01:00
90a56fb37b
Merge pull request #35 from bartvdbraak/dependabot/cargo/openssl-0.10.60
build(deps): bump openssl from 0.10.59 to 0.10.60
2023-12-01 16:49:14 +01:00
756cd7f0e5 feat: use matrix strategy for testing 2023-12-01 16:41:59 +01:00
dependabot[bot]
3d9cb6ba30
build(deps): bump openssl from 0.10.59 to 0.10.60
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.59 to 0.10.60.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.59...openssl-v0.10.60)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-01 15:13:56 +00:00
2aa6d29e36
Merge pull request #36 from bartvdbraak/renovate/actions-checkout-4.x
chore(deps): update actions/checkout action to v4
2023-12-01 15:57:55 +01:00
7c89f77530
Merge pull request #39 from bartvdbraak/renovate/microsoft.resources-resourcegroups-20230701.x
chore(deps): update resource microsoft.resources/resourcegroups to 2023-07-01
2023-12-01 15:56:59 +01:00
renovate[bot]
1d3389d497
chore(deps): update resource microsoft.resources/resourcegroups to 2023-07-01 2023-12-01 14:50:20 +00:00
renovate[bot]
716bafc7eb
chore(deps): update actions/checkout action to v4 2023-12-01 14:50:17 +00:00
9bd2de40a6
Merge pull request #40 from bartvdbraak/feat/e2e-bicep-precheck
Add Bicep Pre-check if we should skip deploying to Azure
2023-12-01 15:49:48 +01:00
3916f3dbb9 feat: add conditionals to tests 2023-12-01 15:44:47 +01:00
ae51c45e55 refactor: use github output variables 2023-12-01 14:42:48 +01:00
faf32aeea9 fix: use id as reference for output var 2023-12-01 14:26:12 +01:00
563c52178a feat: add pre-check before bicep jobs 2023-12-01 14:18:47 +01:00
b78ab280f1
Merge pull request #38 from bartvdbraak/feat/check-e2e-deploy-diff 2023-12-01 01:12:38 +01:00
8e19081300
fix: use github actions bot as identity 2023-12-01 01:07:35 +01:00
6bb67d26a3
fix: allow git write operations 2023-12-01 00:59:38 +01:00
4c0ad2ff5f fix: add git identity for github actions bot 2023-12-01 00:33:58 +01:00
9d83d41a36 fix: hanlde if first add git tag 2023-12-01 00:30:28 +01:00
d3ad568851 feat: add checks and git tags for azure deployed 2023-12-01 00:26:15 +01:00
fc01fd091e
Merge pull request #37 from bartvdbraak/renovate/microsoft.keyvault-vaults-20230701.x
chore(deps): update resource microsoft.keyvault/vaults to 2023-07-01
2023-12-01 00:20:06 +01:00
a2d5621aff
Merge pull request #34 from bartvdbraak/renovate/clap-4.x
fix(deps): update rust crate clap to 4.4.10
2023-12-01 00:05:23 +01:00
renovate[bot]
eecd5b5b39
fix(deps): update rust crate clap to 4.4.10 2023-11-30 23:01:17 +00:00
renovate[bot]
6721d58024
chore(deps): update resource microsoft.keyvault/vaults to 2023-07-01 2023-11-30 23:00:09 +00:00
bbeb3a3fe3
Merge pull request #33 from bartvdbraak/feat/31-e2e-tests-and-workflows
End-to-end test infrastructure and workflow
2023-11-30 23:59:52 +01:00
ce9aa2898f feat: test multiple jobs 2023-11-25 19:55:13 +01:00
b7b2a3de6a chore: add debug output and logging 2023-11-25 18:17:17 +01:00
068e4063fc fix: make sure environment variables are available 2023-11-22 05:24:02 +01:00
8432d03949 feat: add concurrency for bicep 2023-11-22 05:21:12 +01:00
38a15a3bcd feat: e2e tests within rust instead 2023-11-22 05:17:17 +01:00
7b40a0ae17 feat: add dns check to see if vault exists 2023-11-22 02:18:44 +01:00
cde1d2207c feat: e2e test for firewalled kv 2023-11-22 02:18:20 +01:00
c885abd540 fix: index was incorrect 2023-11-21 18:59:10 +01:00
d9522cb9af feat: additional e2e tests 2023-11-21 18:51:56 +01:00
bfb45cefa0 feat: add federated logins 2023-11-21 18:51:26 +01:00
3fd2ad2f7c fix: give execution permissions 2023-11-21 17:15:08 +01:00
c272558f4a fix: use correct artifact path 2023-11-21 17:02:17 +01:00
61ee03a3d6 chore: debug fs 2023-11-21 16:53:20 +01:00
dca1e14be4 fix: don't use param file 2023-11-21 14:56:03 +01:00
0c30fec375 feat: use bicepparams file 2023-11-21 14:54:22 +01:00
ea0f452eba fix: return to use oidc secrets 2023-11-21 14:50:36 +01:00
4acd2a2e36 feat: use build and shortened creds 2023-11-21 14:42:04 +01:00
84832c5ead fix: remove what-if and correct path, displaynames 2023-11-21 13:22:20 +01:00
dd3b46951c chore: remove unnecessary comments 2023-11-21 13:16:06 +01:00
2f4dace719 feat: end-to-end test workflow 2023-11-21 13:15:49 +01:00
3ed4444422 feat: bicep templates for azure resources 2023-11-21 13:15:33 +01:00
d4da767748
Merge pull request #29 from bartvdbraak/feat/logo-update
Add updated logo
2023-11-15 01:31:20 +01:00
03ea1e4987
refactor: embed logo without text 2023-11-15 01:24:34 +01:00
4304962280
feat: updated logo 2023-11-15 01:17:45 +01:00
15 changed files with 1731 additions and 497 deletions

View file

@ -1,5 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"reviewers": ["bartvdbraak"]
"reviewers": ["bartvdbraak"],
"packageRules": [
{
"matchPackagePrefixes": ["azure"],
"groupName": "Azure Dependencies",
"groupSlug": "azure-dependencies"
}
]
}

View file

@ -39,8 +39,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo test --all
- name: Run unit tests
run: cargo test --bins
build:
runs-on: ubuntu-latest
steps:

View file

@ -70,7 +70,7 @@ jobs:
experimental: false
- name: mac-arm64
os: macos-11.0
os: macos-latest
target: aarch64-apple-darwin
cross: true
experimental: true
@ -87,12 +87,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
- uses: actions/cache@v3
- uses: actions/cache@v4
if: startsWith(matrix.name, 'linux-')
with:
path: ~/.cargo/bin
@ -104,7 +104,6 @@ jobs:
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
# NB: sets CARGO_BUILD_TARGET evar - do not need --target flag in build
target: ${{ matrix.target }}
- uses: taiki-e/install-action@cross
@ -117,7 +116,7 @@ jobs:
run: |
echo "${{ needs.pre-check.outputs.version }}" > VERSION
- name: Package
- name: Archive and Package
shell: bash
run: |
set -euxo pipefail
@ -126,24 +125,19 @@ jobs:
bin="target/${{ matrix.target }}/release/keyweave${ext}"
strip "$bin" || true
dst="keyweave-${{ matrix.target }}"
mkdir "$dst"
mkdir -p "$dst" dist
cp "$bin" "$dst/"
if [[ "${{ matrix.name }}" == windows-* ]] ; then
mv "$dst/keyweave${ext}" dist/keyweave-${{ matrix.target }}.exe
else
tar cavf "$dst.tar.xz" "$dst"
mv "$dst.tar.xz" dist/
fi
- name: Archive (tar)
if: '! startsWith(matrix.name, ''windows-'')'
shell: bash
run: |
set -euxo pipefail
dst="keyweave-${{ matrix.target }}"
tar cavf "$dst.tar.xz" "$dst"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: builds
retention-days: 1
path: |
keyweave-*.tar.xz
keyweave-x86_64-pc-windows-gnu/keyweave.exe
name: dist-${{ matrix.target }}
path: dist
release:
needs: build
@ -158,21 +152,22 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: sign-tools-${{ hashFiles('.github/workflows/release.yml') }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: builds
pattern: dist-*
merge-multiple: true
- name: Checksums with SHA512 and SHA256
run: |
sha512sum keyweave-* | tee SHA512SUMS
sha256sum keyweave-* | tee SHA256SUMS
- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
@ -180,7 +175,7 @@ jobs:
fail_on_unmatched_files: true
files: |
keyweave-*.tar.xz
keyweave-*/keyweave.exe
keyweave-*.exe
*SUMS*
- name: Generate SHA256SUM input for Homebrew

104
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,104 @@
name: Tests
permissions:
id-token: write
contents: write
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
bicep-pre-check:
name: Bicep Pre-check
environment: bicep
runs-on: ubuntu-latest
outputs:
deployed_tag_exists: ${{ steps.check_tag.outputs.DEPLOYED_TAG_EXISTS }}
no_changes: ${{ steps.check_changes.outputs.NO_CHANGES }}
steps:
- uses: actions/checkout@v4
- name: Fetch complete history
run: |
git fetch --prune --unshallow --tags
- name: Check for deployed tag
id: check_tag
run: |
if git rev-parse --verify deployed >/dev/null 2>&1; then
echo "DEPLOYED_TAG_EXISTS=true" >> $GITHUB_OUTPUT
echo "LAST_DEPLOYED_COMMIT=$(git rev-list -n 1 deployed)" >> $GITHUB_OUTPUT
else
echo "DEPLOYED_TAG_EXISTS=false" >> $GITHUB_OUTPUT
fi
- name: Check for changes in bicep folder
id: check_changes
if: steps.check_tag.outputs.DEPLOYED_TAG_EXISTS == 'true'
run: |
if git diff --quiet ${{ steps.check_tag.outputs.LAST_DEPLOYED_COMMIT }} HEAD -- bicep/ ; then
echo "NO_CHANGES=true" >> $GITHUB_OUTPUT
else
echo "NO_CHANGES=false" >> $GITHUB_OUTPUT
fi
bicep:
name: Deploy Azure resources
needs: bicep-pre-check
if: needs.bicep-pre-check.outputs.deployed_tag_exists == 'false' || needs.bicep-pre-check.outputs.no_changes == 'false'
environment: bicep
runs-on: ubuntu-latest
concurrency:
group: bicep
env:
LOCATION: eastus
DEPLOYMENT_NAME: keyweave-${{ github.run_id }}
steps:
- uses: actions/checkout@v4
- uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID_BICEP }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy Bicep template
uses: azure/arm-deploy@v2
with:
scope: subscription
region: ${{ env.LOCATION }}
template: bicep/main.bicep
deploymentName: ${{ env.DEPLOYMENT_NAME }}
- name: Tag Deployment
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git tag -fa deployed -m "Deployed to Azure"
git push origin --tags --force
tests:
name: Run End-to-End Tests
needs: bicep
if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
strategy:
matrix:
include:
- filter: no_access
client-id-ref: AZURE_CLIENT_ID_NO_ACCESS
- filter: only_get
client-id-ref: AZURE_CLIENT_ID_GET
- filter: only_list
client-id-ref: AZURE_CLIENT_ID_LIST
- filter: get_and_list_access
client-id-ref: AZURE_CLIENT_ID_GET_LIST
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets[matrix.client-id-ref] }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Run ${{ matrix.filter }} tests
run: cargo test ${{ matrix.filter }}

128
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[bart@vanderbraak.nl](mailto:bart@vanderbraak.nl).
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.

1358
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package]
name = "keyweave"
version = "0.2.3"
version = "0.3.1"
edition = "2021"
authors = ["Bart van der Braak <bart@vanderbraak.nl>"]
keywords = ["azure", "keyvault", "env"]
@ -10,13 +10,20 @@ documentation = "https://docs.rs/keyweave"
repository = "https://github.com/bartvdbraak/keyweave/"
[dependencies]
anyhow = "1.0.75"
azure_identity = "0.17.0"
azure_security_keyvault = "0.17.0"
clap = { version = "4.4.8", features = ["derive"] }
futures = "0.3.29"
anyhow = "1.0.82"
azure_core = "0.21.0"
azure_identity = "0.21.0"
azure_security_keyvault = "0.21.0"
clap = { version = "4.5.4", features = ["derive"] }
futures = "0.3.30"
paris = { version = "1.5.15", features = ["macros"] }
tokio = {version = "1.34.0", features = ["full"]}
tokio = {version = "1.37.0", features = ["full"]}
[target.'cfg(all(target_os = "linux", any(target_env = "musl", target_arch = "arm", target_arch = "aarch64")))'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
[dev-dependencies]
assert_cmd = "2.0.14"
assert_fs = "1.1.1"
predicates = "3.1.0"
serial_test = "3.1.0"

View file

@ -3,9 +3,10 @@
[<img alt="github" src="https://img.shields.io/badge/github-bartvdbraak/keyweave-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/bartvdbraak/keyweave)
[<img alt="crates.io" src="https://img.shields.io/crates/v/keyweave.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](https://crates.io/crates/keyweave)
[<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-keyweave-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" height="20">](https://docs.rs/keyweave)
[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/bartvdbraak/keyweave/checks.yml?style=for-the-badge" height="20">](https://github.com/bartvdbraak/keyweave/actions/workflows/checks.yml)
[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/bartvdbraak/keyweave/checks.yml?style=for-the-badge&branch=main" height="20">](https://github.com/bartvdbraak/keyweave/actions/workflows/checks.yml)
[<img alt="test status" src="https://img.shields.io/github/actions/workflow/status/bartvdbraak/keyweave/tests.yml?style=for-the-badge&label=tests&branch=main" height="20">](https://github.com/bartvdbraak/keyweave/actions/workflows/tests.yml)
<img align="right" src="https://github.com/bartvdbraak/keyweave/assets/3996360/bed7f004-e897-46e5-98a4-c654251c0e17" alt="Cluster" width="40%">
<img align="right" src="https://github.com/bartvdbraak/keyweave/assets/3996360/5461f53a-5cef-4bde-908a-b8d3bc1c71c5" alt="Keyweave" width="30%">
Keyweave is an open-source tool crafted to seamlessly fetch secrets from Azure Key Vault and weave them into a convenient `.env` file. Developed in Rust, Keyweave stands out for its efficiency and user-friendly design, making it an ideal choice for managing your application's secrets.
@ -26,7 +27,7 @@ Before diving into Keyweave, ensure you have the following prerequisites:
az login --tenant "your-tenant-guid"
```
- Identity has `Get` and `List` Secret Permissions in the Access Policies of the Key Vault.
- The identity you logged in with has `Get` and `List` Secret Permissions in the Access Policies of the Key Vault.
## Installation
@ -68,7 +69,7 @@ cargo build --release
Once built, run Keyweave using Cargo:
```sh
cargo run -- --vault_name <VAULT_NAME> [--output <FILE>] [--filter <FILTER>]
cargo run -- --vault-name <VAULT_NAME> [--output <FILE>] [--filter <FILTER>]
```
## Usage
@ -76,17 +77,17 @@ cargo run -- --vault_name <VAULT_NAME> [--output <FILE>] [--filter <FILTER>]
With the binary on your `PATH`, run Keyweave as follows:
```sh
keyweave --vault_name <VAULT_NAME> [--output <FILE>] [--filter <FILTER>]
keyweave --vault-name <VAULT_NAME> [--output <FILE>] [--filter <FILTER>]
```
- `--vault_name <VAULT_NAME>`: Sets the name of the Azure Key Vault.
- `--vault-name <VAULT_NAME>`: Sets the name of the Azure Key Vault.
- `--output <FILE>`: (Optional) Sets the name of the output file (default: `.env`).
- `--filter <FILTER>`: (Optional) Filters the secrets to be retrieved by name.
## Example
### Example
```sh
keyweave --vault_name my-key-vault --output my-env-file.env --filter my-secret
keyweave --vault-name my-key-vault --output my-env-file.env --filter my-secret
```
## Documentation

31
SECURITY.md Normal file
View file

@ -0,0 +1,31 @@
# Security Policy
## Supported Versions
Use the latest version of Keyweave for the latest security updates.
## Reporting Vulnerabilities
To report a security issue, please email [bart@vanderbraak.nl](mailto:bart@vanderbraak.nl) with a detailed description and steps to reproduce. Do not file a public issue for security vulnerabilities.
### Response Timeline
We aim to respond to security reports within 48 hours, and to patch the issue within a reasonable timeframe depending on the severity.
### Responsible Disclosure
Please allow us a reasonable timeframe to address the issue before publicly disclosing it.
### Acknowledgements
We appreciate the responsible disclosure of issues by our users and will acknowledge contributors in our release notes.
## Security Best Practices
- Ensure you are running the latest version of Keyweave.
- Follow secure password and authentication practices.
## Contact Alternatives
If you are unable to send an email, please open an issue on GitHub without disclosing details such that we can establish a alternative form of communication.

85
bicep/main.bicep Normal file
View file

@ -0,0 +1,85 @@
targetScope = 'subscription'
/*
Parameters
*/
@allowed([
'D' // Development
'T' // Test
'A' // Acceptance
'P' // Production
])
param environment string = 'T'
param location string = 'westeurope'
param name object = {
tenantId: 'BVDB'
projectId: 'KEYWEAVE'
region: 'WEU'
}
/*
Variables
*/
var tags = {
project: 'keyweave'
}
var nameFormat = '${name.tenantId}-${name.projectId}-${environment}-${name.region}-{0}-{1:N0}'
/*
Resource Group
*/
resource ResourceGroup 'Microsoft.Resources/resourceGroups@2024-03-01' = {
name: format(nameFormat, 'RG', 1)
location: location
tags: tags
}
/*
Module for Log Analytics Workspace
*/
module LogAnalyticsWorkspace 'modules/law.bicep' = {
name: 'LogAnalyticsWorkspace'
scope: ResourceGroup
params: {
nameFormat: nameFormat
location: location
tags: tags
}
}
/*
Module for Managed Identities
*/
module ManagedIdentities 'modules/id.bicep' = {
name: 'ManagedIdentities'
scope: ResourceGroup
params: {
nameFormat: nameFormat
location: location
tags: tags
}
}
/*
Module for KeyVault
*/
module KeyVault 'modules/kv.bicep' = {
name: 'KeyVault'
scope: ResourceGroup
dependsOn: [
LogAnalyticsWorkspace
]
params: {
nameFormat: nameFormat
location: location
tags: tags
identities: ManagedIdentities.outputs.identities
}
}

33
bicep/modules/id.bicep Normal file
View file

@ -0,0 +1,33 @@
param nameFormat string
param location string
param tags object
param identityEnvironments array = [
'none'
'get'
'list'
'getlist'
]
resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = [for (environment, index) in identityEnvironments: {
name: format(nameFormat, 'ID', index+1)
location: location
tags: tags
}]
resource federatedCredential 'Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials@2023-01-31' = [for (environment, index) in identityEnvironments: {
name: environment
parent: managedIdentity[index]
properties: {
issuer: 'https://token.actions.githubusercontent.com'
subject: 'repo:bartvdbraak/keyweave:environment:test'
audiences: [
'api://AzureADTokenExchange'
]
}
}]
output identities array = [for (environment, index) in identityEnvironments: {
name: environment
id: managedIdentity[index].properties.principalId
}]

121
bicep/modules/kv.bicep Normal file
View file

@ -0,0 +1,121 @@
param nameFormat string
param location string
param tags object
param identities array
var accessPolicies = [for identity in identities: {
tenantId: tenant().tenantId
objectId: identity.id
permissions: {
secrets: contains(identity.name, 'get') && contains(identity.name, 'list') ? ['Get', 'List'] : contains(identity.name, 'get') ? ['Get'] : contains(identity.name, 'list') ? ['List'] : []
}
}]
/*
Log Analytics Workspace (existing)
*/
resource _logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' existing = {
name: format(nameFormat, 'LAW', 1)
}
/*
Key Vault
*/
resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' = {
name: replace(toLower(format(nameFormat, 'KVT', 1)), '-', '')
location: location
tags: tags
properties: {
sku: {
family: 'A'
name: 'standard'
}
tenantId: tenant().tenantId
enableSoftDelete: true
enablePurgeProtection: true
accessPolicies: accessPolicies
}
resource testSecret 'secrets' = {
name: 'testSecret'
properties: {
value: 'testSecretValue'
}
}
resource filterTestSecret 'secrets' = {
name: 'filterTestSecret'
properties: {
value: 'filterTestSecretValue'
}
}
}
/*
Key Vault
*/
resource keyVaultWithFirewall 'Microsoft.KeyVault/vaults@2023-07-01' = {
name: replace(toLower(format(nameFormat, 'KVT', 2)), '-', '')
location: location
tags: tags
properties: {
sku: {
family: 'A'
name: 'standard'
}
tenantId: tenant().tenantId
enableSoftDelete: true
enablePurgeProtection: true
accessPolicies: accessPolicies
networkAcls: {
defaultAction: 'Deny'
ipRules: []
}
}
resource testSecret 'secrets' = {
name: 'testSecret'
properties: {
value: 'testSecretValue'
}
}
resource filterTestSecret 'secrets' = {
name: 'filterTestSecret'
properties: {
value: 'filterTestSecretValue'
}
}
}
/*
Diagnostic Settings for Key Vaults
*/
resource keyVaultDiagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = {
name: 'keyVaultLogging'
scope: keyVault
properties: {
workspaceId: _logAnalyticsWorkspace.id
logs: [
{
category: 'AuditEvent'
enabled: true
}
]
}
}
resource keyVaultWithFirewallDiagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = {
name: 'keyVaultLogging'
scope: keyVaultWithFirewall
properties: {
workspaceId: _logAnalyticsWorkspace.id
logs: [
{
category: 'AuditEvent'
enabled: true
}
]
}
}

24
bicep/modules/law.bicep Normal file
View file

@ -0,0 +1,24 @@
param nameFormat string
param location string
param tags object
/*
Log Analytics Workspace
*/
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
name: format(nameFormat, 'LAW', 1)
location: location
tags: tags
properties: {
sku: {
name: 'PerGB2018'
}
features: {
enableLogAccessUsingOnlyResourcePermissions: true
}
workspaceCapping: {
dailyQuotaGb: json('0.025')
}
}
}

View file

@ -1,16 +1,31 @@
use anyhow::Result;
use azure_identity::DefaultAzureCredential;
use azure_identity::{DefaultAzureCredential, TokenCredentialOptions};
use azure_security_keyvault::prelude::KeyVaultGetSecretsResponse;
use azure_security_keyvault::KeyvaultClient;
use clap::Parser;
use futures::stream::StreamExt;
use paris::{error, Logger};
use std::error::Error;
use std::fmt;
use std::fs::File;
use std::io::Write;
use std::sync::Arc;
use tokio::sync::mpsc;
use tokio::sync::Semaphore;
#[derive(Debug)]
struct CustomError {
message: String,
}
impl fmt::Display for CustomError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.message)
}
}
impl Error for CustomError {}
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
struct Opts {
@ -27,6 +42,26 @@ struct Opts {
filter: Option<String>,
}
async fn check_vault_dns(vault_name: &str) -> Result<()> {
let vault_host = format!("{}.vault.azure.net", vault_name);
let lookup_result = { tokio::net::lookup_host((vault_host.as_str(), 443)).await };
match lookup_result {
Ok(_) => Ok(()),
Err(_err) => {
error!("DNS lookup failed for Key Vault: {}", vault_name);
error!(
"Please check that the Key Vault exists or that you have no connectivity issues."
);
Err(CustomError {
message: "An error occurred while fetching secrets".to_string(),
}
.into())
}
}
}
async fn fetch_secrets_from_key_vault(
client: &KeyvaultClient,
filter: Option<&str>,
@ -38,8 +73,33 @@ async fn fetch_secrets_from_key_vault(
let page = match page {
Ok(p) => p,
Err(err) => {
error!("Failed to fetch secrets page: {}", err);
return Err(err.into()); // Convert the error into anyhow::Error
Logger::new().newline(1);
match err.as_http_error() {
Some(err) => {
if err
.error_message()
.unwrap()
.contains("does not have secrets list permission on key vault")
{
error!("Make sure you have List permissions on the Key Vault.")
} else if err
.error_message()
.unwrap()
.contains("is not authorized and caller is not a trusted service")
{
error!("Make sure you're on the Key Vaults Firewall allowlist.")
} else {
error!("HTTP Error: {}", err);
}
}
_ => {
error!("Error: {}", err);
}
};
return Err(CustomError {
message: "An error occurred while fetching secrets".to_string(),
}
.into());
}
};
secret_values
@ -105,8 +165,8 @@ async fn fetch_and_send_secret(
let _ = tx.send((secret_id.clone(), bundle.value.clone())).await;
(secret_id, bundle.value)
}
Err(err) => {
error!("Error fetching secret: {}", err);
Err(_err) => {
error!("Error fetching secret. Make sure you have Get permissions on the Key Vault.");
(secret_id, String::new())
}
}
@ -117,15 +177,21 @@ fn create_env_file(secrets: Vec<(String, String)>, output_file: &str) -> Result<
Ok(f) => f,
Err(err) => {
error!("Failed to create output file: {}", err);
return Err(err.into());
return Err(CustomError {
message: "n Aerror occurred creating file".to_string(),
}
.into());
}
};
for (key, value) in secrets {
if let Some(secret_name) = key.split('/').last() {
if let Err(err) = writeln!(file, "{}={}", secret_name, value) {
error!("Failed to write to output file: {}: {}", output_file, err);
return Err(err.into());
if let Err(_err) = writeln!(file, "{}={}", secret_name, value) {
error!("Failed to write to output file: {}", output_file);
return Err(CustomError {
message: "An error occurred while writing secrets to file".to_string(),
}
.into());
}
}
}
@ -158,7 +224,7 @@ mod tests {
vec!["SECRET_KEY=secret_value1", "API_KEY=secret_value2",]
);
fs::remove_file(test_file)?; // Clean up the test file
fs::remove_file(test_file)?;
Ok(())
}
}
@ -166,12 +232,17 @@ mod tests {
#[tokio::main]
async fn main() -> Result<()> {
let opts: Opts = Opts::parse();
let mut log = Logger::new();
let mut log: Logger<'_> = Logger::new();
let vault_url = format!("https://{}.vault.azure.net", opts.vault_name);
log.loading("Detecting credentials.");
let credential = DefaultAzureCredential::default();
let credential_options = TokenCredentialOptions::default();
let credential =
DefaultAzureCredential::create(credential_options).map_err(|e| CustomError {
message: format!("Failed to create DefaultAzureCredential: {}", e),
})?;
let client = match KeyvaultClient::new(&vault_url, std::sync::Arc::new(credential)) {
Ok(c) => c,
Err(err) => {
@ -181,6 +252,8 @@ async fn main() -> Result<()> {
};
log.success("Detected credentials.");
check_vault_dns(&opts.vault_name).await?;
log.loading(format!(
"Fetching secrets from Key Vault: <blue>{}</>",
opts.vault_name

151
tests/e2e.rs Normal file
View file

@ -0,0 +1,151 @@
use assert_cmd::prelude::*;
use assert_fs::prelude::*;
use assert_fs::TempDir;
use predicates::prelude::*;
use serial_test::serial;
use std::process::Command;
static BINARY: &str = "keyweave";
static KEYVAULT: &str = "bvdbkeyweavetweukvt1";
static FIREWALL_KEYVAULT: &str = "bvdbkeyweavetweukvt2";
static NON_EXISTENT_KEYVAULT: &str = "bvdbkeyweavetweukvt3";
#[tokio::test]
#[serial]
async fn test_no_access_policies() {
let temp_dir = TempDir::new().unwrap();
let output_path = temp_dir.child(".env");
let mut cmd = Command::cargo_bin(BINARY).unwrap();
cmd.arg("--vault-name")
.arg(KEYVAULT)
.arg("--output")
.arg(output_path.path());
cmd.assert().failure().stderr(predicate::str::contains(
"Make sure you have List permissions on the Key Vault.",
));
temp_dir.close().unwrap();
}
#[tokio::test]
#[serial]
async fn test_only_get_access_policy() {
let temp_dir = TempDir::new().unwrap();
let output_path = temp_dir.child(".env");
let mut cmd = Command::cargo_bin(BINARY).unwrap();
cmd.arg("--vault-name")
.arg(KEYVAULT)
.arg("--output")
.arg(output_path.path());
cmd.assert().failure().stderr(predicate::str::contains(
"Make sure you have List permissions on the Key Vault.",
));
temp_dir.close().unwrap();
}
/// Test with only List access policy - expected to succeed with get errors.
#[tokio::test]
#[serial]
async fn test_only_list_access_policy() {
let temp_dir = TempDir::new().unwrap();
let output_path = temp_dir.child(".env");
let mut cmd = Command::cargo_bin(BINARY).unwrap();
cmd.arg("--vault-name")
.arg(KEYVAULT)
.arg("--output")
.arg(output_path.path());
cmd.assert().success().stderr(predicate::str::contains(
"Make sure you have Get permissions on the Key Vault.",
));
temp_dir.close().unwrap();
}
/// Test with both Get and List access policies - expected to pass.
#[tokio::test]
#[serial]
async fn test_get_and_list_access_policies() {
let temp_dir = TempDir::new().unwrap();
let output_path = temp_dir.child(".env");
let mut cmd = Command::cargo_bin(BINARY).unwrap();
cmd.arg("--vault-name")
.arg(KEYVAULT)
.arg("--output")
.arg(output_path.path());
cmd.assert().success();
output_path.assert(predicate::path::is_file());
output_path.assert(predicate::str::contains("testSecret=testSecretValue"));
output_path.assert(predicate::str::contains(
"filterTestSecret=filterTestSecretValue",
));
temp_dir.close().unwrap();
}
/// Test with both Get and List access policies and filter - expected to pass.
#[tokio::test]
#[serial]
async fn test_get_and_list_access_policies_filter() {
let temp_dir = TempDir::new().unwrap();
let output_path = temp_dir.child(".env");
let mut cmd = Command::cargo_bin(BINARY).unwrap();
cmd.arg("--vault-name")
.arg(KEYVAULT)
.arg("--output")
.arg(output_path.path())
.arg("--filter")
.arg("filter");
cmd.assert().success();
output_path.assert(predicate::path::is_file());
output_path.assert(predicate::str::contains(
"filterTestSecret=filterTestSecretValue",
));
temp_dir.close().unwrap();
}
/// Test with both Get and List access policies on a Key Vault with Firewall - expected to fail.
#[tokio::test]
#[serial]
async fn test_get_and_list_access_policies_firewall() {
let temp_dir = TempDir::new().unwrap();
let output_path = temp_dir.child(".env");
let mut cmd = Command::cargo_bin(BINARY).unwrap();
cmd.arg("--vault-name")
.arg(FIREWALL_KEYVAULT)
.arg("--output")
.arg(output_path.path());
cmd.assert().failure().stderr(predicate::str::contains(
"Make sure you're on the Key Vaults Firewall allowlist.",
));
temp_dir.close().unwrap();
}
/// Test with both Get and List access policies on a non-existent Key Vault - expected to fail.
#[tokio::test]
#[serial]
async fn test_get_and_list_access_policies_non_existent() {
let temp_dir = TempDir::new().unwrap();
let output_path = temp_dir.child(".env");
let mut cmd = Command::cargo_bin(BINARY).unwrap();
cmd.arg("--vault-name")
.arg(NON_EXISTENT_KEYVAULT)
.arg("--output")
.arg(output_path.path());
cmd.assert().failure().stderr(predicate::str::contains(
"Please check that the Key Vault exists or that you have no connectivity issues.",
));
temp_dir.close().unwrap();
}