Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ jobs:
name: run Sakura in background
run: |
cd ${GITHUB_REPOSITORY#*/}
export INTERNAL_API_KEY=test-internal-api-key && export SAKURA_REGISTRATION_KEY=sakura-key && export ONSEN_REGISTRATION_KEY=onsen-key
chmod +x /tmp/Ainari_debug_build_result/ainari/hanami
chmod +x /tmp/Ainari_debug_build_result/ainari/miko
chmod +x /tmp/Ainari_debug_build_result/ainari/ryokan
Expand Down Expand Up @@ -492,6 +493,7 @@ jobs:
name: run Sakura in background
run: |
cd ${GITHUB_REPOSITORY#*/}
export INTERNAL_API_KEY=test-internal-api-key && export SAKURA_REGISTRATION_KEY=sakura-key && export ONSEN_REGISTRATION_KEY=onsen-key
chmod +x /tmp/Ainari_debug_build_result/ainari/hanami
chmod +x /tmp/Ainari_debug_build_result/ainari/miko
chmod +x /tmp/Ainari_debug_build_result/ainari/ryokan
Expand Down
130 changes: 48 additions & 82 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,24 @@
}
],
"results": {
".github/workflows/build_test.yml": [
{
"type": "Secret Keyword",
"filename": ".github/workflows/build_test.yml",
"hashed_secret": "ff5d8691559e63dd27a5970c7ac29cd638374c7c",
"is_verified": false,
"line_number": 401
}
],
".vscode/launch.json": [
{
"type": "Secret Keyword",
"filename": ".vscode/launch.json",
"hashed_secret": "baed55b8f6cf47ebc9d02cbc4945ebedb22cb05a",
"is_verified": false,
"line_number": 43
}
],
"deploy/k8s/ainari/templates/hanami/hanami-certificate.yaml": [
{
"type": "Secret Keyword",
Expand All @@ -138,7 +156,16 @@
"filename": "deploy/k8s/ainari/templates/hanami/hanami-deployment.yaml",
"hashed_secret": "a1b78300299f72872366d7a0c32a5f19512c9d32",
"is_verified": false,
"line_number": 72
"line_number": 82
}
],
"deploy/k8s/ainari/templates/internal-api-key-secret.yaml": [
{
"type": "Secret Keyword",
"filename": "deploy/k8s/ainari/templates/internal-api-key-secret.yaml",
"hashed_secret": "4bd5d8c8ea23b9df9875444c45a4c044026409b6",
"is_verified": false,
"line_number": 7
}
],
"deploy/k8s/ainari/templates/miko/miko-certificate.yaml": [
Expand All @@ -156,14 +183,14 @@
"filename": "deploy/k8s/ainari/templates/miko/miko-deployment.yaml",
"hashed_secret": "a8fd869cf678cfd350b2aa8fb2bc4e030c75e11d",
"is_verified": false,
"line_number": 61
"line_number": 66
},
{
"type": "Secret Keyword",
"filename": "deploy/k8s/ainari/templates/miko/miko-deployment.yaml",
"hashed_secret": "298bddaea9b4590f81a8c8c5629e7a6417415c64",
"is_verified": false,
"line_number": 67
"line_number": 72
}
],
"deploy/k8s/ainari/templates/omamori/omamori-certificate.yaml": [
Expand All @@ -190,7 +217,7 @@
"filename": "deploy/k8s/ainari/templates/omamori/omamori-deployment.yaml",
"hashed_secret": "b42d97659f427e4287f30f0cd8bdc2ac5d3b10b5",
"is_verified": false,
"line_number": 72
"line_number": 77
}
],
"deploy/k8s/ainari/templates/onsen/onsen-deployment.yaml": [
Expand All @@ -199,7 +226,7 @@
"filename": "deploy/k8s/ainari/templates/onsen/onsen-deployment.yaml",
"hashed_secret": "a191d9cb43e3f682b350dcdc74b2167ff78ed3b4",
"is_verified": false,
"line_number": 70
"line_number": 80
}
],
"deploy/k8s/ainari/templates/ryokan/ryokan-certificate.yaml": [
Expand All @@ -217,14 +244,14 @@
"filename": "deploy/k8s/ainari/templates/ryokan/ryokan-deployment.yaml",
"hashed_secret": "04f5ffaec2d0437e26b1e224de6915e15247989f",
"is_verified": false,
"line_number": 84
"line_number": 94
},
{
"type": "Secret Keyword",
"filename": "deploy/k8s/ainari/templates/ryokan/ryokan-deployment.yaml",
"hashed_secret": "8ecbfb09891f75ade7c286346fe355113e680af7",
"is_verified": false,
"line_number": 90
"line_number": 100
}
],
"deploy/k8s/ainari/templates/sakura/sakura-certificate.yaml": [
Expand All @@ -242,14 +269,14 @@
"filename": "deploy/k8s/ainari/templates/sakura/sakura-deployment.yaml",
"hashed_secret": "1db3a3e51c405b71091fd7885f714805187b5785",
"is_verified": false,
"line_number": 80
"line_number": 90
},
{
"type": "Secret Keyword",
"filename": "deploy/k8s/ainari/templates/sakura/sakura-deployment.yaml",
"hashed_secret": "845e1c68668309b563d8a17950b9529de8b3616e",
"is_verified": false,
"line_number": 86
"line_number": 96
}
],
"deploy/k8s/ainari/templates/torii/torii-certificate.yaml": [
Expand All @@ -267,16 +294,7 @@
"filename": "deploy/k8s/ainari/templates/torii/torii-deployment.yaml",
"hashed_secret": "88f7f6dda5e81f2e7958ef4d21771d2c66f2351a",
"is_verified": false,
"line_number": 72
}
],
"deploy/k8s/ainari/values.yaml": [
{
"type": "Secret Keyword",
"filename": "deploy/k8s/ainari/values.yaml",
"hashed_secret": "9139236dfe89960fee34d53b6089795fe376682e",
"is_verified": false,
"line_number": 25
"line_number": 77
}
],
"deploy/k8s/wg_gen.py": [
Expand All @@ -302,6 +320,15 @@
"line_number": 42
}
],
"docs/deployer/config/omamori_config.md": [
{
"type": "Base64 High Entropy String",
"filename": "docs/deployer/config/omamori_config.md",
"hashed_secret": "0bf3d51a345fd1d424906e5d194e126b42648b5f",
"is_verified": false,
"line_number": 38
}
],
"docs/user/rest_api/open_api_docu_hanami.json": [
{
"type": "Base64 High Entropy String",
Expand Down Expand Up @@ -510,74 +537,13 @@
"line_number": 234
}
],
"example_configs/ainari/hanami.toml": [
{
"type": "Secret Keyword",
"filename": "example_configs/ainari/hanami.toml",
"hashed_secret": "3da541559918a808c2402bba5012f6c60b27661c",
"is_verified": false,
"line_number": 10
}
],
"example_configs/ainari/miko.toml": [
{
"type": "Secret Keyword",
"filename": "example_configs/ainari/miko.toml",
"hashed_secret": "3da541559918a808c2402bba5012f6c60b27661c",
"is_verified": false,
"line_number": 9
}
],
"example_configs/ainari/omamori.toml": [
{
"type": "Secret Keyword",
"filename": "example_configs/ainari/omamori.toml",
"hashed_secret": "3da541559918a808c2402bba5012f6c60b27661c",
"is_verified": false,
"line_number": 10
},
{
"type": "Base64 High Entropy String",
"filename": "example_configs/ainari/omamori.toml",
"hashed_secret": "0bf3d51a345fd1d424906e5d194e126b42648b5f",
"is_verified": false,
"line_number": 19
}
],
"example_configs/ainari/onsen.toml": [
{
"type": "Secret Keyword",
"filename": "example_configs/ainari/onsen.toml",
"hashed_secret": "3da541559918a808c2402bba5012f6c60b27661c",
"is_verified": false,
"line_number": 14
}
],
"example_configs/ainari/ryokan.toml": [
{
"type": "Secret Keyword",
"filename": "example_configs/ainari/ryokan.toml",
"hashed_secret": "3da541559918a808c2402bba5012f6c60b27661c",
"is_verified": false,
"line_number": 10
}
],
"example_configs/ainari/sakura.toml": [
{
"type": "Secret Keyword",
"filename": "example_configs/ainari/sakura.toml",
"hashed_secret": "3da541559918a808c2402bba5012f6c60b27661c",
"is_verified": false,
"line_number": 11
}
],
"example_configs/ainari/torii.toml": [
{
"type": "Secret Keyword",
"filename": "example_configs/ainari/torii.toml",
"hashed_secret": "3da541559918a808c2402bba5012f6c60b27661c",
"is_verified": false,
"line_number": 10
"line_number": 18
}
],
"src/binaries/omamori/src/database/simple_crypto_table.rs": [
Expand Down Expand Up @@ -606,5 +572,5 @@
}
]
},
"generated_at": "2025-11-25T22:35:33Z"
"generated_at": "2025-12-03T20:28:38Z"
}
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"env": {
"RUST_BACKTRACE": "full",
"RUST_LOG": "debug,h2=info",
"INTERNAL_API_KEY": "test-internal-api-key",
"SAKURA_REGISTRATION_KEY": "sakura-key",
},
},
{
Expand All @@ -54,6 +56,8 @@
"sourceLanguages": ["rust"],
"env": {
"RUST_LOG": "debug,h2=info",
"INTERNAL_API_KEY": "test-internal-api-key",
"SAKURA_REGISTRATION_KEY": "sakura-key",
},
},
{
Expand All @@ -69,6 +73,8 @@
"env": {
"RUST_BACKTRACE": "full",
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
"SAKURA_REGISTRATION_KEY": "sakura-key",
},
},
{
Expand All @@ -83,6 +89,8 @@
"sourceLanguages": ["rust"],
"env": {
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
"SAKURA_REGISTRATION_KEY": "sakura-key",
},
},
{
Expand All @@ -102,6 +110,7 @@
"AINARI_ADMIN_PASSPHRASE": "asdfasdf",
"RUST_BACKTRACE": "full",
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
},
},
{
Expand All @@ -120,6 +129,7 @@
"AINARI_ADMIN_NAME": "asdf",
"AINARI_ADMIN_PASSPHRASE": "asdfasdf",
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
},
},
{
Expand All @@ -135,6 +145,8 @@
"env": {
"RUST_BACKTRACE": "full",
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
"ONSEN_REGISTRATION_KEY": "onsen-key",
},
},
{
Expand All @@ -149,6 +161,8 @@
"sourceLanguages": ["rust"],
"env": {
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
"ONSEN_REGISTRATION_KEY": "onsen-key",
},
},
{
Expand All @@ -164,6 +178,7 @@
"env": {
"RUST_BACKTRACE": "full",
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
},
},
{
Expand All @@ -178,6 +193,7 @@
"sourceLanguages": ["rust"],
"env": {
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
},
},
{
Expand All @@ -193,6 +209,7 @@
"env": {
"RUST_BACKTRACE": "full",
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
},
},
{
Expand All @@ -207,6 +224,7 @@
"sourceLanguages": ["rust"],
"env": {
"RUST_LOG": "debug",
"INTERNAL_API_KEY": "test-internal-api-key",
},
},
{
Expand All @@ -222,6 +240,8 @@
"env": {
"RUST_BACKTRACE": "full",
"RUST_LOG": "debug,h2=info",
"INTERNAL_API_KEY": "test-internal-api-key",
"ONSEN_REGISTRATION_KEY": "onsen-key",
},
},
{
Expand All @@ -236,6 +256,8 @@
"sourceLanguages": ["rust"],
"env": {
"RUST_LOG": "debug,h2=info",
"INTERNAL_API_KEY": "test-internal-api-key",
"ONSEN_REGISTRATION_KEY": "onsen-key",
},
},
{
Expand Down
5 changes: 4 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ test-hanami:
RUN apt-get update && \
apt-get install -y protobuf-compiler libsqlite3-dev libssl-dev
# only one test-thread to avoid conflicts between tests, which access the same singleton
RUN cargo test -- --test-threads=1
RUN export INTERNAL_API_KEY=test-internal-api-key && \
export SAKURA_REGISTRATION_KEY=sakura-key && \
export ONSEN_REGISTRATION_KEY=sakura-key && \
cargo test -- --test-threads=1


generate-docs:
Expand Down
Loading