-
Notifications
You must be signed in to change notification settings - Fork 9
feat: 暗号整数をEnclave内で復号し平均計算するPostgreSQLエクステンションを作成 #621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
203 commits
Select commit
Hold shift + click to select a range
5f7f9d7
`cargo pgx new encrypted_sql_ops`
laysakura 28a3753
adds `example/encrypted-sql-ops/pg-extension` as a workspace member
laysakura 3c629f4
Moves profile settings to workspace root following the cargo warning:
laysakura 0f350fa
adds README.md to show motivation and usage
laysakura a3f1543
set version to 0.1.0
laysakura 29dd2fb
just ported laysakura/sgx-kungfu
laysakura 488f8da
moves average state calculation into -enclave
laysakura 8843173
Serialize, Deserialize for AvgState
laysakura 4d23619
extensions definition
laysakura 328b29a
adds example/encrypted-sql-ops/enclave
laysakura 51ec92b
adds `EnclaveError` and `EnclaveResult`
laysakura 5e6117f
updates Cargo.toml
laysakura 6b05016
makes EncInteger::as_slice public (used in -enclave crate for decrypt…
laysakura 2b4587c
things for conditional compilation
laysakura 9f735f1
updates Cargo.lock
laysakura 7795eea
adds EncInteger and decrypt(), encrypt() functions
laysakura 417d481
changes module names in cargo
laysakura 0a6f9c7
removes files from extension which should be implemented in module
laysakura 81bd6cc
fix: example build from std env
laysakura fdbf2e8
AvgState needs to be indirectly referred from `CREATE AGGREGATEION` s…
laysakura 8e8e730
adds `AvgState` in module
laysakura f4cfdf6
Moves AvgState to encrypted-sql-ops-enclave
laysakura 0137e27
adds `EncInteger`
laysakura 2362509
moves `EncInteger` to ecall-types
laysakura a3263f9
wip
laysakura 8510c4a
updates lib.rs
laysakura e6d77ff
register_ecalls!
laysakura 85a72b8
adds ecall command numbrers
laysakura c020b94
adds .vscode/ in .gitignore
laysakura 215212d
adds host/enclace input/output to workflow
laysakura 4d22423
exclude pg-extension from cargo workspace
laysakura 68a93c5
deletes unused file
laysakura cefac08
build: pg-extension is not a member of cargo workflow
laysakura cdf96cf
rename ecall related types
laysakura c6da5e0
wip: writing workflow
laysakura db537ba
wip: writing workflow
laysakura b06cb8f
fix: `feature = ["sgx", "std"]` のケースで `localstd` が二重定義される問題を修正
laysakura 6afe83b
refactor: EnclaveEngine -> StateRuntimeEnclaveEngine
laysakura 95b10e8
feat: adds BasicEnclaveEngine and key-vault-enclave uses it
laysakura ff11981
refactor: decrypt -> new; ciphertext -> ecall_input
laysakura c8338cf
refactor: remove StateRuntimeEnclaveEngine::handle_without_runtime
laysakura b877f42
refactor: BasicEnclaveEngine::{handle_without_runtime -> handle}
laysakura 61d33b1
refactor: BasicEnclaveEngine::{decrypt -> new}
laysakura 252d0d6
refactor: BasicEnclaveEngine only requires ConfigGetter for context
laysakura ca13f98
fix: takes self
laysakura ccdeba0
fix: ServerStopper::handle signature
laysakura 701b979
fix: import
laysakura d2a5654
fix: import
laysakura cd04468
fix: rewrites register_ecall! to support both {Basic, StateRuntime}En…
laysakura ea8ffaa
Merge remote-tracking branch 'origin/refactor/EnclaveEngine-handle_wi…
laysakura e24cf15
registers ENCINTEGER_FROM command
laysakura 23dad39
wip: adding init to extension
laysakura 8107e1f
Merge branch 'build/dev-docker-non-root' into feature/encrypted-AVG-S…
laysakura 364f6ee
adds pgx image
laysakura ebce9f9
removes unnecessary list from doc
laysakura a8bbbf3
fix: libreadline-dev is necessary
laysakura 2080c18
doc: updates how to use pgx
laysakura ee0a967
fix: unnecessary feature flag
laysakura 09fed4f
Merge remote-tracking branch 'origin/main' into feature/encrypted-AVG…
laysakura 194c7b5
build: somehow needs extra import (for trait funciton) in anonify-dev…
laysakura d0cfcac
Merge remote-tracking branch 'origin/main' into feature/encrypted-AVG…
laysakura 8a0c885
updates rust channel to pass pgx build
laysakura a79065a
Merge remote-tracking branch 'origin/main' into feature/encrypted-AVG…
laysakura b97f897
fix: checkout main crypto.rs (recovered from compile error)
laysakura 26746ef
build: pgx's Cargo.lock is also necessary
laysakura 2f67f67
build: freeze ed25519-delek version with the same one as frame-host's…
laysakura da8153b
fix: encrypted-sql-ops-pg-extension compiles :tada:
laysakura d8a2af3
fix: sql load order
laysakura 263d37e
Merge remote-tracking branch 'origin/feature/PJ_ROOT_DIR-envvar' into…
laysakura 5caa54e
fix: compile errors
laysakura b1a4350
Merge branch 'feature/PJ_ROOT_DIR-envvar' into feature/encrypted-AVG-…
laysakura 8417d46
Merge branch 'feature/PJ_ROOT_DIR-envvar' into feature/encrypted-AVG-…
laysakura 33f5aa4
build: encrypted_sql_ops.enclave.so
laysakura 2a50306
fix: now compiles example/encrypted-sql-ops/enclave :tada:
laysakura bd69736
Merge remote-tracking branch 'origin/main' into feature/encrypted-AVG…
laysakura 28a21bb
fix: initial lib name should be anonifyenclave
laysakura a80f50c
build: encrypted-sql-ops-pg image
laysakura 4210bff
fix: more build-arg
laysakura d63b623
fix: cargo pgx build should be on second stage
laysakura e8a555b
fix: path
laysakura 26cfca4
build: adds anonify-dev-pgx image
laysakura 5cbfdb3
fix: no source codes in image
laysakura 1329b7c
fix: path
laysakura 19ef2ff
build: pgx image already built
laysakura 335a99c
implements ecall_cmd()
laysakura cf4ec5c
fix: type
laysakura 0d05eed
adds info log
laysakura b8a989a
fix: typo
laysakura 8e57adc
use log instead
laysakura db93513
fix compile error
laysakura f0952d8
pgx::log available
laysakura 0a07c8c
fix
laysakura ef15924
fix
laysakura 7f377bf
fix: SgxEnclave got dropped
laysakura b35d9da
fix
laysakura d7bce52
fix: dependencies
laysakura 437d7e5
uses global()
laysakura 6cfa407
fix
laysakura ae82418
deref
laysakura 4cab969
fix
laysakura b938c7e
impl handle()
laysakura 0334df7
doc cooment
laysakura c89fad0
fix import
laysakura d8dc630
fix: compile
laysakura b4e9e81
fix: impl set_ecall_output()
laysakura 24588b0
doc comment
laysakura 45228e6
updates Cargo.lock
laysakura 9eaea3a
fix: namespace
laysakura 77f34fe
refactor: mod structures
laysakura dff36e0
wip: compiles
laysakura 8ed14aa
refactor: compiles
laysakura ff07f6e
refactor: build but `initcond` is wrong
laysakura aceb39b
compiles
laysakura 89aa7de
fix: runs to SELECT
laysakura 4d7e2fd
runs well
laysakura 9f5dce6
wip
laysakura bb3452e
wip
laysakura d039340
example/encrypted-sql-ops/enclave compiles
laysakura 1f02ba5
Merge remote-tracking branch 'origin/main' into feature/encrypted-AVG…
laysakura b0e1cf3
Merge branch 'feature/encrypted-AVG-SQL-roadmap4' of ssh://github.com…
laysakura 6dfbf22
build: uses latest
laysakura fc946da
ci: kick build of encrypted-sql-ops-pg
laysakura aad5f07
fix: ci def
laysakura 674271c
build: pull
laysakura cb3c0ec
fix: pull
laysakura 899d2ea
uses base image
laysakura 1d9684f
fix
laysakura 3af9145
wip
laysakura 8c265d7
updates image
laysakura a491e9d
pgx
laysakura f4dee3b
fix
laysakura 608869a
rust-toolchain
laysakura 36d3813
do not add rust channel in dockerfile
laysakura df6c6a3
use latest
laysakura 03301bc
cargo.lock
laysakura 00a006c
uses esop
laysakura c1f7aef
adds toolchain
laysakura fd3dee3
uses PlainI32 for internal members
laysakura 804fccd
PlainAvgState has enc/dec methods
laysakura 8ea5174
wip
laysakura f401979
wip
laysakura 4f27328
wip
laysakura e6e6b01
impl enc/dec
laysakura ce53ad7
impl EncIntegerAvgStateFuncCmdHandler
laysakura b4eaf02
PlainI32 -> PlainInteger
laysakura 1c56837
compiles
laysakura 6cd2673
may finish impl
laysakura 8d8184b
ci: merge from main
laysakura 45e6e84
build: revert docker-compose.yml
laysakura 1caa30b
fix
laysakura 3155c63
fix
laysakura 979f5ea
fix
laysakura 039230d
updates readme
laysakura 4e2f0f9
rm
laysakura d81197b
fmt
laysakura 42c7a63
fix extension name to pass `cargo pgx test`
laysakura 3637786
adds case with 0 record avg
laysakura d763380
adds e2e for esop
laysakura 39ff8b8
comment-out test
laysakura 13d39f6
fix dockerfile name
laysakura 4f77c79
fix
laysakura 6f410f7
command
laysakura 173e0e3
refactor
laysakura fca0bc2
feat: faster fixuid
laysakura f340488
ci: build base images
laysakura 3e1f27a
fix
laysakura a746ecd
skip fixuid
laysakura f0b1e9f
chown only necessary dir
laysakura c374708
fix: ENTRYPOINT launches interactive shell so `docker run` or `docker…
laysakura f63b314
build images
laysakura a4984e6
Merge remote-tracking branch 'origin/main' into feature/encrypted-AVG…
laysakura d9634ac
should pass e2e
laysakura 0978c2d
buid base images
laysakura c07c365
e2e-esop
laysakura b937d4a
fix condition
laysakura a1cd3a8
fix: copy
laysakura 5858dda
exit status
laysakura c139243
log
laysakura 5559fda
condition always
laysakura 2f371e0
fix
laysakura f2c1041
log
laysakura 590681a
build esop
laysakura 24a1ad4
x
laysakura 805b002
fix name
laysakura 34ee43c
fix: needs this var
laysakura 825e400
revive
laysakura 2c37580
fin azure-pipeline
laysakura e0953a0
refactor: use into()
laysakura 1c3f279
refactor: use into()
laysakura a48b03f
fix test code and add unit test to CI
laysakura 6719f60
fix: typo
laysakura 06771c7
clippy for encrypted-sql-ops crates
laysakura 1bd119f
clippy for encrypted-sql-ops-pg-extension
laysakura 30e5fff
follow repo's unit test manner
laysakura 4c39f3f
fix clippy target
laysakura 46aa090
fix clippy errors
laysakura 488d05c
fix: compile error on `make DEBUG=1 TEST=1 ENCLAVE_DIR=tests/units/en…
laysakura a0152c3
esop-docker-compose.yml as utility
laysakura 767d02b
adds integration test to CI
laysakura d428ef1
fix: pass UID & GID
laysakura 05289cd
fix: CI user is root so need to specify anonify-dev user for container
laysakura 5965881
fix: chown anonify dir
laysakura c987589
ci: revert
laysakura File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,3 +12,4 @@ docker/ | |
| !docker/entrypoint | ||
|
|
||
| .dockerignore | ||
| .git | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.