-
Notifications
You must be signed in to change notification settings - Fork 169
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
default router policies unless init --no-router-policies #1522
Comments
I'd certainly prefer that quickstart created usable policies. another option is when creating a service to check if it is accessible/usable and output a message with commands to configure policies. Something like this:
|
Relevant console issue: openziti/ziti-console#181 |
@ekoby You'd prefer default policies or referring users who want default policies to the quickstart? Not sure if "prefer that quickstart created" or "prefer that over quickstart-created." |
@ekoby Now it seems obvious, and I agree that quickstarts should create default policies. |
With the new "deployments" (aka prod-type), the question to me is, should THOSE do this sort of thing too? I think it's clear that the user should be prompted during intstall that some bootstrapping type script can optionally insert the policies. Kubernetes and docker are harder to do this in. Those should probably output a banner after running, showing the user exactly what to run next if they want default policies and that we STRONGLY recommend them. or something like that. i don't think unattended installations need any sort of 'option' though, there shouldn't be some env var saying "BOOTSTRAP_POLICIES" - the automation should just know it's needed and do it and that should be left up to the operator |
Still, many new users face a broader friction point: services don't work until they determine they need router policies. This is pointless friction because most users will never need anything more granular than permissive default router policies. This leads me to the two implementation alternatives that have surfaced up to this point.
Here's a hypothetical immutableEntities:
- name: default
type: edge-router-policy
edge-router-roles: public
identity-roles: all
- name: default
type: service-edge-router-policy
edge-router-roles: all
service-roles: all This file is configured in the controller's config.yml like this. The immutableEntities:
- include: ./immutable.yml |
The consensus is prod deployments shall never create default router policies. Quickstarts already create default router policies. |
Everyone who learns how to Ziti stumbles immediately on the fact that the controller does not automatically create a blanket, default ERP, and SERP.
A controller, when initializing, should always do the equivalent of these two commands unless the
--no-router-policies
flag is set.The text was updated successfully, but these errors were encountered: