forked from onnovalkering/brane
-
Notifications
You must be signed in to change notification settings - Fork 10
Separating out the Policy Store, Policy Reasoner and API #270
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
39 commits
Select commit
Hold shift + click to select a range
202b867
refactor: Separating out the Policy Store, Policy Reasoner and API
Lut99 8bfc9f4
Added an actually working Dockerfile.let now (at least on Linux)
Lut99 fee4e8c
Fixed dangling links in docs
Lut99 a3db81c
Clippy fixes
Lut99 d9a697b
Fixed serde to equal minimum version everywhere
Lut99 9a12649
fixup! refactor: Separating out the Policy Store, Policy Reasoner and…
DanielVoogsgerd b491b17
temp: Patch policy-reasoner and policy-store to use WIP branches
DanielVoogsgerd 798acbc
chore(deps): Update rand
DanielVoogsgerd 975a60d
chore(deps): Lower minimal versions
DanielVoogsgerd 797de2b
fix: Replace manual async methods with native async methods
DanielVoogsgerd c65f05f
refactor: Remove From<&?String> implementations for Mergestrategy
DanielVoogsgerd cf036f1
chore: Remove littered commented code
DanielVoogsgerd 0a2ec3b
style: Format macros
DanielVoogsgerd c2880e2
style: Spelling corrections
DanielVoogsgerd 801d521
refactor: Move test modules to bottom of file
DanielVoogsgerd 1d459da
refactor: Convert errors to thiserror
DanielVoogsgerd 066a2b3
refactor: Small optimizations
DanielVoogsgerd 05f45c2
fix: Remove dependency on policy store for http status conversions
DanielVoogsgerd 7e56884
refactor: Switch compiler error handling to anyhow
DanielVoogsgerd 707473a
refactor: small improvements
DanielVoogsgerd 69464bd
refactor: Remove assert_workflow_context
DanielVoogsgerd c1eb4b8
refactor: Add and use FromStr<BuiltinFunctions>
DanielVoogsgerd ac5ebc9
fix(tracing): Use tracing::enabled! macro
DanielVoogsgerd e014d4e
chore: Switch to predefined BLOCK_SEPARATOR
DanielVoogsgerd b2f7949
chore(shr): Create retain_unique_in_order
DanielVoogsgerd cbe2584
refactor: Small idiomatic rust stuff
DanielVoogsgerd 9e16baf
fix: Replace Reference::as_str with Deref impl
DanielVoogsgerd d131717
chore(deps): Bump axum to version 0.8
DanielVoogsgerd f2812e6
chore: Upgrade tonic to version 0.13
DanielVoogsgerd 942fc1b
Removed `[patch]` section
Lut99 49cb75a
fix(ci): add lockfile
DanielVoogsgerd 956adb8
Pushed `tokio-stream` to `0.1.16`
Lut99 841864d
Bumped MSRV for many crates to 1.82
Lut99 8dfaabf
(Theoretically) fixed problem with Haskell not compiling
Lut99 f1f0a9f
Fixed tests not passing
Lut99 904c406
Really fixed `brane-chk` compilation this time
Lut99 c60ebc7
Fixed nightly `mismatched_lifetime_syntaxes` warnings
Lut99 20a0e58
Fixed nightly Clippy warnings
Lut99 fbc6fb4
Fixed `brane-chk` copying `eflint-repl` from the wrong dir
Lut99 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
Large diffs are not rendered by default.
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 was deleted.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # DOCKERFILE.let for BRANE | ||
| # by Tim Müller | ||
| # | ||
| # Contains the Dockerfile for building a `branelet` binary in a container. | ||
| # | ||
| # This is necessary when running a non-released Brane (i.e., no precompiled binaries) and on a | ||
| # system that has a newer GLIBC than would run in the container. | ||
| # | ||
| # The easiest way to use it is through `make brane-let-docker` | ||
| # | ||
|
|
||
|
|
||
| # NOTE: Ensure this is the same as used by `brane-cli`! | ||
| FROM ubuntu:20.04 | ||
| LABEL org.opencontainers.image.source=https://github.com/BraneFramework/brane | ||
|
|
||
| # Define some build args | ||
| ARG USERID=1000 | ||
| ARG GROUPID=1000 | ||
|
|
||
| # Setup a user mirroring the main one | ||
| RUN if [ -z "$(getent group "$GROUPID")" ]; then groupadd -g "$GROUPID" brane; fi | ||
| RUN useradd -u "$USERID" -g "$GROUPID" -m brane | ||
|
|
||
| # Install build dependencies | ||
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y \ | ||
| gcc g++ \ | ||
| make cmake \ | ||
| perl curl \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install rust | ||
| USER brane | ||
| RUN bash -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y" \ | ||
| && echo ". /home/brane/.cargo/env" >> /home/brane/.profile | ||
|
|
||
| # Copy over relevant crates & other files | ||
| USER root | ||
| COPY . /build | ||
| RUN mkdir -p /build/target \ | ||
| && chown -R brane:$(getent group "$GROUPID" | cut -d: -f1) /build | ||
|
|
||
| # Build the binary | ||
| WORKDIR /build | ||
| USER brane | ||
| RUN --mount=type=cache,id=cargoidx,uid=$USERID,target=/home/brane/.cargo/registry \ | ||
| --mount=type=cache,id=braneletcache,uid=$USERID,target=/build/target \ | ||
| . /home/brane/.profile \ | ||
| && cargo build \ | ||
| --release \ | ||
| --package brane-let \ | ||
| && cp ./target/release/branelet /home/brane/branelet | ||
|
|
||
| # Done | ||
| ENTRYPOINT ["cp", "/home/brane/branelet", "/output/branelet"] | ||
DanielVoogsgerd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
Oops, something went wrong.
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.