Repository navigation
docs: update onboarding docs #27
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
30 commits
Select commit
Hold shift + click to select a range
1fc8ff5
docs: add missing onboarding dos & replace placeholders
yanksyoon 96d94c7
docs: fix formatting
yanksyoon d0ee877
docs: work on todo placeholder contents
yanksyoon b847294
docs: address initial review feedback
yanksyoon d516615
Update lychee.toml
yanksyoon 3792efa
docs: address Copilot review comments
yanksyoon f1c23ab
Apply batched suggestions from code review
yanksyoon 391a271
docs: remove unnecessary heading
yanksyoon 92ff900
docs: link update tunnel credentials
yanksyoon 7031da2
docs: add description of COS
yanksyoon b1c86ad
docs: add COS link and description
yanksyoon b703ebe
docs: remove terraform docs
yanksyoon 6afb5be
docs: imporve cloudflared-route relation wording
yanksyoon bc4d00e
docs: move validation step to according paragraph
yanksyoon ce3bde2
docs: remove unnecessary prerequisites section
yanksyoon 454d88a
docs: add env var details
yanksyoon 5036c9a
Merge branch 'docs/update-onboarding-docs' of https://github.com/cano…
yanksyoon 50a3993
Apply batched suggestions from code review
yanksyoon a5a96ef
docs: add pair and track upgrade recommendations
yanksyoon 78bcc40
docs: link to juju secrets reference
yanksyoon f0a7947
docs: remove terraform docs
yanksyoon d89c545
docs: add reference to juju hooks docs
yanksyoon fb11c8f
docs: revert templated setup
yanksyoon 30e3264
docs: add explanation on charm integration interface
yanksyoon f2c0b95
docs: explain secret and hostname configuration
yanksyoon f3dc0f2
docs: focus advanced tutorial on multiple tunnels
yanksyoon 3f7e82a
docs: categorize configurator guidance
yanksyoon 3048f22
docs: keep security index focused
yanksyoon 8d5066d
Merge branch 'docs/update-onboarding-docs' of https://github.com/cano…
yanksyoon a07823e
docs: address pull request feedback
yanksyoon 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
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
| @@ -1,2 +1,8 @@ | ||
| AI | ||
| Cloudflare | ||
| cloudflare-configurator | ||
| cloudflared | ||
| configurator | ||
| Diataxis | ||
| nameserver | ||
| redeployments |
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
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 |
|---|---|---|
| @@ -1,28 +1,22 @@ | ||
| .. meta:: | ||
| :description: Understand the architectural design decisions and code structure of the __charm_name__ charm. | ||
| :description: Understand the architectural design decisions and code structure of the Cloudflared charms. | ||
|
|
||
| .. _explanation_charm_design: | ||
|
|
||
| Charm design | ||
| ============ | ||
|
|
||
| .. TODO: Remember to update this file for your charm!! | ||
| This document should offer perspective and opinion about the charm was designed, | ||
| and why those design decisions were made. | ||
| The project separates tunnel execution from configuration management. | ||
| ``cloudflared`` is a subordinate machine charm. It attaches to a principal | ||
| application through ``juju-info`` and manages one or more parallel | ||
| ``charmed-cloudflared`` snap instances on that machine. | ||
|
|
||
| Some guiding questions as you consider the content for this page: | ||
| * What are the user's questions about the charm? What are the use cases? | ||
| * What questions do you want the user to be asking about the charm and its design? Why would they want to read this document? What are the questions that this document is trying to answer? | ||
| * What sort of framing do the users need to understand this content? | ||
| * What is the relationship between the user and the charm (or its code)? | ||
| * What is the starting point for the user's thinking? | ||
| * How does the code come together to operate the underlying software/workload? | ||
| The ``cloudflare-configurator`` charm is the configuration provider. It reads the | ||
| public ``domain``, optional ``nameserver``, and the Juju secret named by | ||
| ``tunnel-token``. It sends the tunnel token and resolver through | ||
| ``cloudflared-route`` and publishes the configured HTTPS URL through ``ingress``. | ||
|
|
||
| There's no specific template or structure to follow here -- you should provide your | ||
| own perspective about the charm design. If a Mermaid diagram of the charm would enhance | ||
| the text, then include it in this document. | ||
|
|
||
| Some guiding points on the Mermaid diagram: | ||
| Limit the scope of this diagram to the charm only. | ||
| How is the charm containerized, and what pieces are of particular interest to the user? | ||
| Include those separate pieces in this diagram. | ||
| This design keeps secret and routing configuration in one charm while allowing | ||
| the workload charm to remain reusable with either a relation provider or its | ||
| direct ``tunnel-token`` configuration. The Cloudflare-side origin route is | ||
| outside the charm boundary and remains managed through Cloudflare. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,18 @@ | ||
| .. meta:: | ||
| :description: Understand the security design, risks, and best practices for the __charm_name__ charm. | ||
| :description: Understand the security design, risks, and best practices for the Cloudflared charms. | ||
|
|
||
| .. _explanation_security: | ||
|
|
||
| Security overview | ||
| ================= | ||
|
|
||
| .. TODO: Remember to update this file for your charm!! | ||
| Elaborate on topics such as common risks, good practices, built-in protection, etc. | ||
| Are there upstream security docs that we can point to? If so, include a | ||
| sentence like: | ||
| For details regarding upstream __charm_name__ configuration and broader security | ||
| considerations, please refer to the upstream documentation (include a link here). | ||
| Tunnel credentials are stored in Juju secrets. The secret must contain a | ||
| ``tunnel-token`` key and must be granted to the application that consumes it. | ||
|
|
||
| In most cases, it will be appropriate to include a specific heading for risks. | ||
| Include a subheading for best practices for the user to follow to avoid or limit risks. | ||
|
|
||
| In some cases a product will have particular information security implications | ||
| (concerned with potential for information loss, incorrect retention, unlawful disclosure | ||
| and so on). Notes on these should be gathered separately in the overview topic, or | ||
| in a topic of their own. | ||
|
|
||
| This document outlines the security design of the __charm_name__ charm along common risks | ||
| and best practices. | ||
| The configurator reads the secret and sends the token through the | ||
| ``cloudflared-route`` relation. The subordinate writes the token to the | ||
| ``charmed-cloudflared`` snap configuration on the principal application's | ||
| machine. | ||
|
|
||
| For Cloudflare-specific tunnel security guidance, see the `Cloudflare Tunnel documentation | ||
| <https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/>`_. |
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 |
|---|---|---|
| @@ -1,13 +1,16 @@ | ||
| .. meta:: | ||
| :description: How to back up and restore the __charm_name__ charm and its associated data. | ||
| :description: How to back up and restore Cloudflared charm configuration. | ||
|
|
||
| .. _how_to_back_up_restore: | ||
|
|
||
| How to back up and restore | ||
| =========================== | ||
|
|
||
| .. TODO: Remember to update this file for your charm!! | ||
| If applicable, use this placeholder to provide information on how to | ||
| back up and restore the charm. Some questions to answer: | ||
| * Does this charm have a database that needs to be backed up? | ||
| * Are there are upstream docs we can link here? | ||
| The charms do not manage an application database or other persistent application | ||
| data. A backup should preserve the Juju model definition, application | ||
| configuration, relation topology, and the Cloudflare-side tunnel configuration. | ||
|
|
||
| Keep the tunnel token in a Juju secret. Preserve the secret and its grant to | ||
| ``cloudflare-configurator`` without exporting the token into a public backup. | ||
| When restoring into a new model, recreate the secret, grant it to the | ||
| application, and reapply the ``domain`` and ``nameserver`` configuration. |
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.
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.