Skip to content

Commit 71410b1

Browse files
committed
Version 1.0.0
1 parent 288d9a4 commit 71410b1

File tree

10 files changed

+69
-17
lines changed

10 files changed

+69
-17
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-docs:
13+
name: Build and Test
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
otp: ['28', '27']
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Erlang/OTP
23+
uses: erlef/setup-beam@v1
24+
with:
25+
otp-version: ${{ matrix.otp }}
26+
rebar3-version: '3'
27+
28+
- name: Compile
29+
run: rebar3 compile
30+
31+
- name: Run ex_doc
32+
run: rebar3 ex_doc
33+
34+
- name: Run dialyzer
35+
run: rebar3 dialyzer

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.rebar3
2+
doc
23
_build
34
_checkouts
45
_vendor

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
## [1.0.0] - 2025-10-21
12+
1113
### Added
1214

1315
- Initial implementation of keychain API for managing TLS certificates and keys
@@ -24,5 +26,5 @@ and this project adheres to
2426
- `tls_options/1` - Get TLS options for a specific domain
2527
- `read_cert/2` - Read primary client certificate in DER format
2628

27-
28-
[Unreleased]: https://github.com/grisp/grisp_keychain/compare/404eb05fcd0654c496caaca6f961142305792d99...HEAD
29+
[Unreleased]: https://github.com/grisp/grisp_keychain/compare/1.0.0...HEAD
30+
[1.0.0]: https://github.com/grisp/grisp_keychain/releases/tag/1.0.0

rebar.config

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
{"LICENSE.md", #{title => "License"}}
1616
]},
1717
{main, "README.md"},
18-
{source_url, <<"https://github.com/grisp/grisp_keychain">>}
18+
{homepage_url, "https://github.com/grisp/grisp_keychain"},
19+
{source_url, <<"https://github.com/grisp/grisp_keychain">>},
20+
{api_reference, true}
1921
]}.
2022

2123
{hex, [{doc, ex_doc}]}.
24+
25+
{dialyzer, [
26+
{plt_extra_apps, [ssl, public_key, crypto]}
27+
]}.

rebar.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[].

src/grisp_keychain.app.src

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application, grisp_keychain, [
2-
{description, "An OTP application"},
3-
{vsn, "0.1.0"},
2+
{description, "Common layer to access secrets and identities on GRiSP devices"},
3+
{vsn, semver},
44
{registered, []},
55
{mod, {grisp_keychain_app, []}},
66
{applications, [
@@ -12,5 +12,16 @@
1212
]},
1313
{modules, []},
1414
{licenses, ["Apache-2.0"]},
15-
{links, []}
15+
{links, [
16+
{"Homepage", "https://www.grisp.io"},
17+
{"Changelog", "https://github.com/grisp/grisp_keychain/blob/main/CHANGELOG.md"},
18+
{"GitHub", "https://github.com/grisp/grisp_keychain"}
19+
]},
20+
{files, [
21+
"LICENSE",
22+
"README.md",
23+
"rebar.*",
24+
"include",
25+
"src"
26+
]}
1627
]}.

src/grisp_keychain.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ read_cert(primary, der) ->
6767
%--- Internal Functions --------------------------------------------------------
6868

6969
-doc false.
70+
-dialyzer({nowarn_function, delegate_call/2}).
7071
-spec delegate_call(Function :: atom(), Args :: [term()]) -> term().
7172

7273
delegate_call(Function, Args) ->

src/grisp_keychain_app.erl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
%%%-------------------------------------------------------------------
2-
%% @doc grisp_keychain public API
3-
%% @end
4-
%%%-------------------------------------------------------------------
5-
61
-module(grisp_keychain_app).
72

83
-behaviour(application).

src/grisp_keychain_filesystem.erl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
-module(grisp_keychain_filesystem).
22

3+
-moduledoc """
4+
Filesystem `api_module` for grisp_keychain
5+
6+
Implements the keychain API for direct filesystem based access to certificates and keys.
7+
""".
38

49
%--- Includes ------------------------------------------------------------------
510

@@ -20,7 +25,7 @@
2025
%--- API Functions -------------------------------------------------------------
2126

2227
-spec tls_options(DomainName :: atom() | string() | binary() | undefined)
23-
-> ssl:tls_client_option().
28+
-> [ssl:tls_client_option()].
2429

2530
tls_options(DomainName) ->
2631
{CertsKeys, ClientTrustedCerts} =

src/grisp_keychain_sup.erl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
%%%-------------------------------------------------------------------
2-
%% @doc grisp_keychain top level supervisor.
3-
%% @end
4-
%%%-------------------------------------------------------------------
5-
61
-module(grisp_keychain_sup).
72

83
-behaviour(supervisor).

0 commit comments

Comments
 (0)