Skip to content

Commit a584525

Browse files
authored
Merge pull request #39 from fastly/dora-use-stores
v0.4.0 – rewrite: use Config and Secret Stores, enable local development
2 parents fe76cf7 + c756186 commit a584525

14 files changed

+718
-403
lines changed

.github/workflows/test.yml

+15-29
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ jobs:
1010
environment: test
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Install Rust
15-
uses: actions-rs/toolchain@v1
15+
uses: dtolnay/rust-toolchain@stable
1616
with:
1717
toolchain: ${{ matrix.rust-toolchain }}
18-
- name: Add wasm32-wasi Rust target
19-
run: rustup target add wasm32-wasi --toolchain ${{ matrix.rust-toolchain }}
18+
targets: wasm32-wasi
19+
components: clippy, rustfmt
20+
- name: Install audit
21+
run: cargo install cargo-audit
22+
shell: bash
2023
- name: Cache cargo registry
2124
uses: actions/cache@v3
2225
with:
@@ -32,33 +35,16 @@ jobs:
3235
with:
3336
path: target
3437
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
35-
- name: Install fmt
36-
run: rustup component add rustfmt
37-
shell: bash
38-
- name: Install clippy
39-
run: rustup component add clippy
40-
shell: bash
41-
- name: Install audit
42-
run: cargo install cargo-audit
43-
shell: bash
44-
- name: Prepare to store metadata
45-
run: mkdir -p src/well-known
46-
shell: bash
47-
- name: Store JWKS metadata
48-
run: echo "${{ secrets.JWKS_JSON }}" > src/well-known/jwks.json
49-
shell: bash
50-
- name: Store OIDC metadata
51-
run: echo "${{ secrets.OIDC_METADATA_JSON }}" > src/well-known/openid-configuration.json
52-
shell: bash
38+
- name: Store secrets
39+
run: |
40+
echo "${{ secrets.CLIENT_ID }}" > .secrets.client_id
41+
echo "${{ secrets.CLIENT_SECRET }}" > .secrets.client_secret
42+
dd if=/dev/random bs=32 count=1 | base64 > .secret.nonce_secret
5343
- name: Check binaries and format
5444
run: RUSTFLAGS="--deny warnings" cargo check --bins --target wasm32-wasi && cargo fmt -- --check
55-
shell: bash
56-
- name: clippy
45+
- name: Run clippy
5746
run: cargo clippy
58-
shell: bash
59-
- name: audit
47+
- name: Run audit
6048
run: cargo audit
61-
shell: bash
62-
- name: build
49+
- name: Run build
6350
run: cargo build
64-
shell: bash

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/pkg
66
.DS_Store
77
.tmp*
8+
.secret*

0 commit comments

Comments
 (0)