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: Add fly.io deploy guide #2039

Merged
merged 8 commits into from Mar 12, 2024
Merged

docs: Add fly.io deploy guide #2039

merged 8 commits into from Mar 12, 2024

Conversation

oguzhand95
Copy link
Member

@oguzhand95 oguzhand95 commented Mar 8, 2024

No description provided.

@oguzhand95 oguzhand95 added area/documentation Improvements or additions to documentation kind/chore labels Mar 8, 2024
@oguzhand95 oguzhand95 self-assigned this Mar 8, 2024
@oguzhand95 oguzhand95 marked this pull request as ready for review March 11, 2024 14:07
@charithe charithe changed the title chore(docs): Add deploying to fly.io section to the docs docs: Add deploying to fly.io section to the docs Mar 11, 2024
@charithe charithe changed the title docs: Add deploying to fly.io section to the docs docs: Add fly.io deploy guide Mar 11, 2024
Copy link
Contributor

@charithe charithe left a comment

Choose a reason for hiding this comment

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

Have you tried LiteFS as well? I think it should work with our sqlite driver.

docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/serverless-faas.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
Copy link
Contributor

@charithe charithe left a comment

Choose a reason for hiding this comment

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

This is great! One final thing: have you tried out LiteFS with multiple Cerbos instances? I think we need to configure the Fly proxy to redirect writes to the primary so it's worth testing that the proxy works correctly and the changes get propagated to the other instances. You'll probably need to set the compile.cacheDuration to a smaller period so that the other instances can see the changes to policies in the database.

It'd be good to add an example of using cerbosctl to add policies to LiteFS as well.

docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
oguzhand95 and others added 4 commits March 12, 2024 17:46
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
@charithe
Copy link
Contributor

OK, sorry, I forgot that Cerbos is on gRPC and not Connect. The proxy won't be of much use because all gRPC requests are POSTs and it would just end up forwarding all requests to the primary.

Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
charithe
charithe previously approved these changes Mar 12, 2024
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
docs/modules/deployment/pages/cloud-platforms.adoc Outdated Show resolved Hide resolved
oguzhand95 and others added 3 commits March 12, 2024 18:57
Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Signed-off-by: Charith Ellawala <charith@cerbos.dev>
@oguzhand95 oguzhand95 merged commit db7a0b5 into cerbos:main Mar 12, 2024
15 checks passed
@oguzhand95 oguzhand95 deleted the docs branch March 12, 2024 18:32
charithe added a commit to charithe/cerbos that referenced this pull request Mar 13, 2024
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Signed-off-by: Charith Ellawala <charith@cerbos.dev>
Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
Co-authored-by: Charith Ellawala <charith@cerbos.dev>
charithe added a commit that referenced this pull request Mar 13, 2024
Backport of #2039

Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Signed-off-by: Charith Ellawala <charith@cerbos.dev>
Co-authored-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation kind/chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants