├── .github ├── dependabot.yml └── workflows │ └── tailscale.yml ├── .gitignore ├── LICENSE ├── README.md ├── create-network-map.py ├── images ├── Animation.gif └── example.png ├── network_topology.html ├── policy.hujson ├── requirements.txt └── version-cache.json /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "pip" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /.github/workflows/tailscale.yml: -------------------------------------------------------------------------------- 1 | name: Sync Tailscale ACLs 2 | 3 | on: 4 | push: 5 | branches: ["main"] 6 | pull_request: 7 | branches: ["main"] 8 | 9 | permissions: 10 | # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. 11 | contents: write 12 | 13 | jobs: 14 | acls: 15 | runs-on: ubuntu-latest 16 | 17 | steps: 18 | - uses: actions/checkout@v4 19 | with: 20 | ref: ${{ github.head_ref }} 21 | 22 | - name: Deploy ACL 23 | if: github.event_name == 'push' 24 | id: deploy-acl 25 | uses: tailscale/gitops-acl-action@v1 26 | with: 27 | api-key: ${{ secrets.TS_API_KEY }} 28 | tailnet: ${{ secrets.TS_TAILNET }} 29 | action: apply 30 | 31 | - name: Test ACL 32 | if: github.event_name == 'pull_request' 33 | id: test-acl 34 | uses: tailscale/gitops-acl-action@v1 35 | with: 36 | api-key: ${{ secrets.TS_API_KEY }} 37 | tailnet: ${{ secrets.TS_TAILNET }} 38 | action: test 39 | 40 | # Rebuild HTML 41 | - name: Set up Python 3.10 42 | uses: actions/setup-python@v5 43 | with: 44 | python-version: "3.10" 45 | cache: "pip" # caching pip dependencies 46 | 47 | - name: Install dependencies 48 | run: | 49 | python -m pip install --upgrade pip 50 | pip install -r requirements.txt 51 | 52 | - name: Run Python script to generate network map 53 | run: python create-network-map.py 54 | 55 | # This will place the newly generated network map HTML file back into the repo 56 | - name: Update network map in repo 57 | uses: stefanzweifel/git-auto-commit-action@v5 58 | with: 59 | commit_message: Auto updating network_topology.html 60 | # Be aware of limitations here: https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#limitations--gotchas 61 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | go-example/ 2 | __pycache__/ 3 | .vscode/ 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tailscale Network Topology Mapper 2 | ### A visual way to view your ACL rules for Tailscale 3 | I occasionally find myself just wanting to get a glance of how my ACL rules look without reading through the code. This is also useful for showing how our policies are set up to people who are not devs by trade. 4 | 5 | ![alt text](./images/Animation.gif) 6 | 7 | # Initial Set Up 8 | 0. You will need Python3 and git installed. 9 | 1. `git clone https://github.com/SimplyMinimal/tailscale-network-topology-mapper` 10 | 2. `cd tailscale-network-topology-mapper` 11 | 3. `pip install -r requirements.txt` 12 | 4. Copy your ACL policy into the contents of the example `policy.hujson` 13 | 5. Edit `create-network-map.py` and change `COMPANY_DOMAIN="example.com"` to your actual company domain 14 | 15 | # Execution 16 | 6. Run `python create-network-map.py` to generate your network map. It should produce an updated `network_topology.html` file that you can open in your browser. 17 | 18 | You can filter down to specific groups or nodes using the filter bar at the top or by clicking on a node on the graph. 19 | 20 | ### Github Action Workflow 21 | If you would like to have the network map be automatically updated whenever you push an update to your ACL file then take a look at this example workflow: 22 | [.github/workflows/tailscale.yml](https://github.com/SimplyMinimal/tailscale-network-topology-mapper/blob/main/.github/workflows/tailscale.yml) 23 | 24 | ## Limitations 25 | * This project is in an early alpha stage. 26 | * It can only map what is available in the ACL policy file. It is not an active scanning tool that will seek out other hosts. 27 | * It only focuses on the ACL rules themselves but eventually this may start capturing ALL the available valid ACL sections. 28 | 29 | Pull requests welcome! :) 30 | 31 | ## Experimental Ideas and TODOs 32 | * Use `tailscale debug netmap` to build a more in-depth map 33 | * Allow switching between layers such as port level, host level, user/group level 34 | -------------------------------------------------------------------------------- /create-network-map.py: -------------------------------------------------------------------------------- 1 | import os 2 | import json 3 | import hjson 4 | from pyvis.network import Network 5 | 6 | # TODO: Update your company domain here 7 | COMPANY_DOMAIN="example.com" 8 | 9 | if "TS_COMPANY_DOMAIN" in os.environ: 10 | COMPANY_DOMAIN = os.environ["TS_COMPANY_DOMAIN"] 11 | print(f'Using {COMPANY_DOMAIN} as company domain') 12 | 13 | def load_json_or_hujson_file(filename): 14 | if not os.path.isfile(filename): 15 | print(f"Error: File '{filename}' not found.") 16 | return None 17 | 18 | with open(filename, 'r') as f: 19 | # Try loading as JSON 20 | try: 21 | data = json.load(f) 22 | return data 23 | except ValueError: 24 | # If loading as JSON fails, try loading as HuJSON 25 | f.seek(0) 26 | try: 27 | data = hjson.load(f) 28 | return data 29 | except Exception as e: 30 | print(f"Error decoding '{filename}' as HuJSON: {e}") 31 | return None 32 | 33 | 34 | # Step 1: Parse the ACL File using json 35 | acl_file_path = 'policy.hujson' 36 | acl_data = load_json_or_hujson_file(acl_file_path) 37 | if acl_data is None: 38 | print("Error: Could not parse ACL policy file") 39 | exit(1) 40 | 41 | # Step 2: Extract Hosts, Groups, and Tag Owners 42 | hosts = acl_data.get('hosts', {}) 43 | groups = acl_data.get('groups', {}) 44 | tag_owners = acl_data.get('tagOwners', {}) 45 | 46 | # Step 3: Extract ACL Rules 47 | acls = acl_data.get('acls', []) 48 | 49 | # Preprocess ACL rules to merge nodes with similar hostnames 50 | merged_acls = [] 51 | for rule in acls: 52 | src = set() 53 | dst = set() 54 | for node in rule['src']: 55 | if node.startswith('tag:'): 56 | src.add(node) # Preserve the entire tag format 57 | #src.add(node.split(':')[1]) # Extract tag name 58 | elif node.startswith('autogroup:'): 59 | src.add(node) # Preserve the entire autogroup format 60 | elif node.startswith('group:'): 61 | src.add(node) # Preserve the entire group format 62 | #src.add(node.split(':')[1]) # Extract group name 63 | else: 64 | hostname = node.split(':')[0] # Extract hostname 65 | src.add(hostname) 66 | for node in rule['dst']: 67 | if node.startswith('tag:'): 68 | dst.add(node) # Preserve the entire tag format 69 | #dst.add(node.split(':')[1]) # Extract tag name 70 | elif node.startswith('autogroup:'): 71 | dst.add(node) # Preserve the entire autogroup format 72 | #dst.add(node.split(':')[1]) # Extract group name 73 | elif node.startswith('group:'): 74 | dst.add(node) # Preserve the entire group format 75 | #dst.add(node.split(':')[1]) # Extract group name 76 | else: 77 | hostname = node.split(':')[0] # Extract hostname 78 | dst.add(hostname) 79 | merged_acls.append({'action': rule['action'], 'src': src, 'dst': dst}) 80 | 81 | # Step 4: Construct Network Topology Graph 82 | net = Network(height="800px", width="100%", notebook=True, directed=True, filter_menu=True,select_menu=True,neighborhood_highlight=True, cdn_resources='remote') 83 | 84 | # Define colors for different node types 85 | group_color = "#FFFF00" # Group color (Yellow) 86 | tag_color = "#00cc66" # Tag color (Green) 87 | host_color = "#ff6666" # Host color (Red) 88 | 89 | # TODO: Coalesce this into a smaller function 90 | # Add nodes and edges based on preprocessed ACL rules 91 | for rule in merged_acls: 92 | for src in rule['src']: 93 | if src.startswith('tag:'): 94 | net.add_node(src, color=tag_color) 95 | elif COMPANY_DOMAIN in src: 96 | net.add_node(src, color=group_color) 97 | elif src.startswith('autogroup:'): 98 | net.add_node(src, color=group_color) 99 | elif 'group:' in groups: 100 | net.add_node(src, color=group_color) 101 | else: 102 | net.add_node(src, color=host_color) 103 | 104 | for dst in rule['dst']: 105 | if dst.startswith('tag:'): 106 | net.add_node(dst, color=tag_color) 107 | elif COMPANY_DOMAIN in dst: 108 | net.add_node(dst, color=group_color) 109 | elif dst.startswith('autogroup:'): 110 | net.add_node(dst, color=group_color) 111 | elif 'group:' in groups: 112 | net.add_node(dst, color=group_color) 113 | else: 114 | net.add_node(dst, color=host_color) 115 | net.add_edge(src, dst, arrows={'to': {'enabled': True}}) # Specify arrow options as a dictionary 116 | 117 | 118 | # Step 5: Add a legend for the colors 119 | legend_html = """ 120 |
121 |

Legend

122 |
123 | Group
124 |
125 | Tag
126 |
127 | Host 128 |
129 | """ 130 | 131 | # Inject the legend HTML into the network visualization 132 | net.show_buttons() 133 | net.write_html("network_topology.html") 134 | with open("network_topology.html", "a") as f: 135 | f.write(legend_html) 136 | -------------------------------------------------------------------------------- /images/Animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimplyMinimal/tailscale-network-topology-mapper/3d4a9a21c58a04f614203e1b2963579b62943817/images/Animation.gif -------------------------------------------------------------------------------- /images/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimplyMinimal/tailscale-network-topology-mapper/3d4a9a21c58a04f614203e1b2963579b62943817/images/example.png -------------------------------------------------------------------------------- /network_topology.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 |
208 |

209 |
210 | 211 | 213 | 219 | 224 | 225 | 226 |
227 |

228 |
229 | 252 | 253 | 254 | 255 | 256 |
257 | 258 |
259 |
260 |
261 | 309 |
310 |
311 | 312 |
313 |
314 |
315 | 316 | 317 |
318 |
319 |
320 | 330 |
331 |
332 | 340 |
341 |
342 | 349 |
350 |
351 | 352 |
353 |
354 | 355 |
356 |
357 |
358 | 359 |
360 |
361 | 362 | 363 | 364 |
365 | 366 | 367 | 601 | 602 | 603 |
604 |

Legend

605 |
606 | Group
607 |
608 | Tag
609 |
610 | Host 611 |
612 | -------------------------------------------------------------------------------- /policy.hujson: -------------------------------------------------------------------------------- 1 | // THIS IS AN EXAMPLE POLICY FILE 2 | // PLEASE PROVIDE YOUR OWN POLICY FILE 3 | { 4 | // Declare static groups of users. 5 | "groups": { 6 | //users that can access all resources 7 | "group:system_admin": [ 8 | "sysadmin1@example.com", 9 | "sysadmin2@example.com" 10 | ], 11 | 12 | // Database Admins 13 | "group:dba": ["dba1@example.com"], 14 | 15 | // Site Reliability Engineers 16 | "group:sre": ["sre@example.com"], 17 | 18 | // General Employees 19 | "group:all staff": ["all staff@example.com"], 20 | "group:dev team": ["dev team@example.com"] 21 | }, 22 | 23 | "hosts": { 24 | "uat1": "100.101.102.103", 25 | "production-backend": "104.105.106.0/24", 26 | "web-server": "108.109.110.112", 27 | }, 28 | 29 | // ************************************** 30 | // ************* Tag Groups ************* 31 | // 32 | // Define the tags which can be applied to devices and by which users. 33 | "tagOwners": { 34 | // Resources 35 | "tag:webserver": [], 36 | "tag:database": ["johndoe@example.com"], 37 | "tag:domain-controller": ["janedoe@example.com"], 38 | "tag:production": ["infrastructure@example.com"], 39 | "tag:linux-server": ["johndoe@example.com"], 40 | "tag:windows-server": ["janedoe@example.com"], 41 | "tag:security": ["johndoe@example.com"], 42 | "tag:ci": ["johndoe@example.com"], 43 | "tag:prod": [], 44 | }, 45 | 46 | // ************************************** 47 | // ************* ACL Access ************* 48 | // 49 | "acls": [ 50 | // Give Security appliances access to network 51 | { 52 | "action": "accept", 53 | "src": ["tag:security"], 54 | "dst": ["*:*"], 55 | }, 56 | 57 | // Allow all connections. 58 | // INFR team can access anything 59 | { 60 | "action": "accept", 61 | "src": ["group:system_admin"], 62 | "dst": ["*:*"], 63 | }, 64 | 65 | // all employees can access their own devices 66 | { 67 | "action": "accept", 68 | "src": ["autogroup:member"], 69 | "dst": ["autogroup:self:*"], 70 | }, 71 | 72 | // All employees can reach the domain controller 73 | // Domain Controller can hit all client machines 74 | { 75 | "action": "accept", 76 | "src": ["group:all staff"], 77 | "dst": ["tag:domain-controller:*"], 78 | }, 79 | { 80 | "action": "accept", 81 | "src": ["tag:domain-controller"], 82 | "dst": ["group:all staff:*"], 83 | }, 84 | 85 | // allow domain controllers to talk to other domain controllers 86 | { 87 | "action": "accept", 88 | "src": ["tag:domain-controller"], 89 | "dst": ["tag:domain-controller:*"], 90 | }, 91 | 92 | // Allow database access to dba 93 | { 94 | "action": "accept", 95 | "src": ["group:dba", 96 | "tag:database" 97 | ], 98 | "dst": ["tag:database:*"], 99 | }, 100 | 101 | // Grant Dev Team and their pipeline access 102 | { 103 | "action": "accept", 104 | "src": ["group:dev team" , "tag:ci"], 105 | "dst": ["uat1:22"], 106 | }, 107 | 108 | // Grant prod access to other resources tagged prod 109 | { 110 | "action": "accept", 111 | "src": ["tag:prod"], 112 | "dst": ["tag:prod:*"], 113 | }, 114 | 115 | { 116 | "action": "accept", 117 | "src": ["tag:webserver", "group:sre"], 118 | "dst": ["tag:database:*"], 119 | }, 120 | ], 121 | } 122 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pyvis>=0.3.2 2 | hjson>=3.1.0 -------------------------------------------------------------------------------- /version-cache.json: -------------------------------------------------------------------------------- 1 | {"PrevETag":"b66e0085926b647019d8127cd18ac3f90c5505b65f4ef551d2740c930f831ae9"} 2 | --------------------------------------------------------------------------------