Skip to content
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

docs/examples: Fix and add docs for Wasm C++ sandbox #13622

Merged
merged 29 commits into from
Oct 23, 2020

Conversation

phlax
Copy link
Member

@phlax phlax commented Oct 19, 2020

Signed-off-by: Ryan Northey ryan@synca.io

Commit Message: docs/examples: Fix and add docs for Wasm sandbox
Additional Description:

  • provide a pre-compiled wasm binary for example
  • provide recipe for updating wasm
  • fix verify.sh and composition permissions
  • add docs

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Fix #13605
[Optional Deprecated:]

@phlax phlax changed the title [WIP] docs: Add docs for WASM sandbox [WIP] docs: Add docs for Wasm sandbox Oct 19, 2020
@phlax phlax force-pushed the docs-add-wasm-sandbox-docs branch 2 times, most recently from a380c6e to 6d5fef5 Compare October 19, 2020 10:58
@phlax
Copy link
Member Author

phlax commented Oct 19, 2020

the sandbox here pretty much works. Ill update the docs next...

it includes a routine which:

  • brings up a composition with a pre-compiled wasm
  • checks content/headers
  • brings down composition
  • recompiles a new wasm
  • brings back up and rechecks

i think the recompiling is very helpful for end users of the sandbox but it adds 5mins+ to the CI

@phlax phlax force-pushed the docs-add-wasm-sandbox-docs branch from 2391148 to 6a8644b Compare October 19, 2020 12:55
@phlax phlax changed the title [WIP] docs: Add docs for Wasm sandbox [WIP] docs/examples: Fix and add docs for Wasm sandbox Oct 19, 2020
examples/wasm/BUILD Outdated Show resolved Hide resolved
examples/wasm/BUILD Outdated Show resolved Hide resolved
.azure-pipelines/pipelines.yml Outdated Show resolved Hide resolved
@phlax
Copy link
Member Author

phlax commented Oct 19, 2020

i have some small changes remaining, but docs are rendered here:

https://storage.googleapis.com/envoy-pr/13622/docs/start/sandboxes/wasm.html

configs/configgen.sh Outdated Show resolved Hide resolved
@phlax phlax marked this pull request as draft October 19, 2020 17:56
examples/wasm/BUILD Outdated Show resolved Hide resolved
examples/wasm/envoy_filter_http_wasm_example.cc Outdated Show resolved Hide resolved
@phlax
Copy link
Member Author

phlax commented Oct 20, 2020

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #13622 (comment) was created by @phlax.

see: more, trace.

@phlax phlax force-pushed the docs-add-wasm-sandbox-docs branch from 0a21a82 to 7496d6c Compare October 20, 2020 07:28
@phlax phlax marked this pull request as ready for review October 20, 2020 07:52
@phlax phlax changed the title [WIP] docs/examples: Fix and add docs for Wasm sandbox docs/examples: Fix and add docs for Wasm sandbox Oct 20, 2020
@phlax
Copy link
Member Author

phlax commented Oct 20, 2020

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #13622 (comment) was created by @phlax.

see: more, trace.

@phlax
Copy link
Member Author

phlax commented Oct 20, 2020

/retest

phlax added 22 commits October 23, 2020 13:55
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax force-pushed the docs-add-wasm-sandbox-docs branch from 2935235 to 3f761e8 Compare October 23, 2020 12:56
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool. Love seeing these working examples.

@mattklein123 mattklein123 merged commit 2dcbe20 into envoyproxy:master Oct 23, 2020
htuch pushed a commit that referenced this pull request Oct 23, 2020
When #13728 and #13622 got merged a function got duplicated, this removes it

Signed-off-by: Ryan Northey <ryan@synca.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add docs for Wasm Sandbox
3 participants