├── .github └── workflows │ ├── build_pdf.yml │ └── publish_pdf.yml ├── .gitignore ├── LICENSES ├── Apache-2.0.txt ├── CC-BY-4.0.txt ├── CC-BY-SA-4.0.txt └── CC0-1.0.txt ├── cards.tex ├── docs └── img │ ├── cards.svg │ ├── cards.svg.license │ ├── download.svg │ └── download.svg.license ├── readme.md ├── tex ├── additional_cards.tex ├── all_cards_on_one_page.tex ├── back.tex ├── categories.tex ├── coversheet.tex ├── img │ ├── access_secrets.pdf │ ├── access_secrets.pdf.license │ ├── cc-by.pdf │ ├── cc-by.pdf.license │ ├── cover_logo.pdf │ ├── delivery.pdf │ ├── delivery.pdf.license │ ├── monitoring.pdf │ ├── monitoring.pdf.license │ ├── recovery.pdf │ ├── recovery.pdf.license │ ├── resources.pdf │ ├── resources.pdf.license │ ├── tng │ │ ├── icon_ai.pdf │ │ ├── icon_coding.pdf │ │ ├── icon_devops.pdf │ │ ├── icon_github.pdf │ │ ├── icon_owasp.pdf │ │ ├── owasp_logo_white.pdf │ │ ├── qr-owasp-cumulus.pdf │ │ ├── qr-tng-cumulus.pdf │ │ ├── qr-tng-eop.pdf │ │ ├── tng_logo.pdf │ │ └── tng_logo_white.pdf │ ├── tng_access_secrets.pdf │ ├── tng_black.pdf │ ├── tng_delivery.pdf │ ├── tng_monitoring.pdf │ ├── tng_recovery.pdf │ └── tng_resources.pdf ├── lib │ ├── colors_CMYK.tex │ ├── colors_RGB.tex │ ├── constants.tex │ ├── imports.tex │ ├── layout.tex │ ├── logo.tex │ └── logo_for_back.tex ├── printer_friendly.tex ├── single_pages.tex └── single_pages_CMYK.tex └── utils ├── build_pdf.sh └── sync_mirror_repo.sh /.github/workflows/build_pdf.yml: -------------------------------------------------------------------------------- 1 | # © 2022,2023 TNG Technology Consulting 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | name: Build PDF artifact 6 | 7 | on: 8 | push: 9 | branch: ['*'] 10 | 11 | jobs: 12 | build_pdf: 13 | 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | 18 | - name: Check out repository code 19 | uses: actions/checkout@v3 20 | 21 | - name: Build PDF 22 | run: ./utils/build_pdf.sh 23 | 24 | - name: Publish build artifact 25 | uses: actions/upload-artifact@v3 26 | with: 27 | name: cumulus 28 | path: | 29 | tex/*.pdf 30 | tex/*.jpg 31 | -------------------------------------------------------------------------------- /.github/workflows/publish_pdf.yml: -------------------------------------------------------------------------------- 1 | # © 2022,2023 TNG Technology Consulting 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | name: Build and publish PDF artifact 6 | 7 | on: 8 | push: 9 | tags: 10 | - 'release/v*' 11 | 12 | jobs: 13 | publish_pdf: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | steps: 18 | 19 | - name: Check out repository code 20 | uses: actions/checkout@v3 21 | 22 | - name: Build PDF 23 | run: ./utils/build_pdf.sh 24 | 25 | - name: Create release 26 | uses: ncipollo/release-action@v1 27 | with: 28 | artifacts: "tex/*.pdf,tex/*.jpg" 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # © 2022,2023 TNG Technology Consulting 2 | # 3 | # SPDX-License-Identifier: CC0-1.0 4 | 5 | *.aux 6 | *.fdb_latexmk 7 | *.fls 8 | *.log 9 | *.out 10 | tex/*.pdf 11 | tex/*.jpg 12 | tex/version.tex 13 | 14 | -------------------------------------------------------------------------------- /LICENSES/Apache-2.0.txt: -------------------------------------------------------------------------------- 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, and distribution as defined by Sections 1 through 9 of this document. 10 | 11 | "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. 12 | 13 | "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 14 | 15 | "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. 16 | 17 | "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. 18 | 19 | "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. 20 | 21 | "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). 22 | 23 | "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. 24 | 25 | "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." 26 | 27 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 28 | 29 | 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 30 | 31 | 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 32 | 33 | 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: 34 | 35 | (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and 36 | 37 | (b) You must cause any modified files to carry prominent notices stating that You changed the files; and 38 | 39 | (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and 40 | 41 | (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. 42 | 43 | You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 44 | 45 | 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 46 | 47 | 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 48 | 49 | 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 50 | 51 | 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 52 | 53 | 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. 54 | 55 | END OF TERMS AND CONDITIONS 56 | 57 | APPENDIX: How to apply the Apache License to your work. 58 | 59 | To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. 60 | 61 | Copyright [yyyy] [name of copyright owner] 62 | 63 | Licensed under the Apache License, Version 2.0 (the "License"); 64 | you may not use this file except in compliance with the License. 65 | You may obtain a copy of the License at 66 | 67 | http://www.apache.org/licenses/LICENSE-2.0 68 | 69 | Unless required by applicable law or agreed to in writing, software 70 | distributed under the License is distributed on an "AS IS" BASIS, 71 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 72 | See the License for the specific language governing permissions and 73 | limitations under the License. 74 | -------------------------------------------------------------------------------- /LICENSES/CC-BY-4.0.txt: -------------------------------------------------------------------------------- 1 | Creative Commons Attribution 4.0 International 2 | 3 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. 4 | 5 | Using Creative Commons Public Licenses 6 | 7 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. 8 | 9 | Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. 10 | 11 | Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. 12 | 13 | Creative Commons Attribution 4.0 International Public License 14 | 15 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. 16 | 17 | Section 1 – Definitions. 18 | 19 | a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. 20 | 21 | b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. 22 | 23 | c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. 24 | 25 | d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. 26 | 27 | e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. 28 | 29 | f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. 30 | 31 | g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. 32 | 33 | h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. 34 | 35 | i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. 36 | 37 | j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. 38 | 39 | k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. 40 | 41 | Section 2 – Scope. 42 | 43 | a. License grant. 44 | 45 | 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: 46 | 47 | A. reproduce and Share the Licensed Material, in whole or in part; and 48 | 49 | B. produce, reproduce, and Share Adapted Material. 50 | 51 | 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 52 | 53 | 3. Term. The term of this Public License is specified in Section 6(a). 54 | 55 | 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 56 | 57 | 5. Downstream recipients. 58 | 59 | A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. 60 | 61 | B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 62 | 63 | 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). 64 | 65 | b. Other rights. 66 | 67 | 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 68 | 69 | 2. Patent and trademark rights are not licensed under this Public License. 70 | 71 | 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. 72 | 73 | Section 3 – License Conditions. 74 | 75 | Your exercise of the Licensed Rights is expressly made subject to the following conditions. 76 | 77 | a. Attribution. 78 | 79 | 1. If You Share the Licensed Material (including in modified form), You must: 80 | 81 | A. retain the following if it is supplied by the Licensor with the Licensed Material: 82 | 83 | i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); 84 | 85 | ii. a copyright notice; 86 | 87 | iii. a notice that refers to this Public License; 88 | 89 | iv. a notice that refers to the disclaimer of warranties; 90 | 91 | v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; 92 | 93 | B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and 94 | 95 | C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 96 | 97 | 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 98 | 99 | 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 100 | 101 | 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. 102 | 103 | Section 4 – Sui Generis Database Rights. 104 | 105 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: 106 | 107 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; 108 | 109 | b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and 110 | 111 | c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. 112 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. 113 | 114 | Section 5 – Disclaimer of Warranties and Limitation of Liability. 115 | 116 | a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. 117 | 118 | b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. 119 | 120 | c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. 121 | 122 | Section 6 – Term and Termination. 123 | 124 | a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. 125 | 126 | b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 127 | 128 | 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 129 | 130 | 2. upon express reinstatement by the Licensor. 131 | 132 | c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. 133 | 134 | d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. 135 | 136 | e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. 137 | 138 | Section 7 – Other Terms and Conditions. 139 | 140 | a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. 141 | 142 | b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. 143 | 144 | Section 8 – Interpretation. 145 | 146 | a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. 147 | 148 | b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. 149 | 150 | c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. 151 | 152 | d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. 153 | 154 | Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. 155 | 156 | Creative Commons may be contacted at creativecommons.org. 157 | -------------------------------------------------------------------------------- /LICENSES/CC-BY-SA-4.0.txt: -------------------------------------------------------------------------------- 1 | Creative Commons Attribution-ShareAlike 4.0 International 2 | 3 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. 4 | 5 | Using Creative Commons Public Licenses 6 | 7 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. 8 | 9 | Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. 10 | 11 | Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. 12 | 13 | Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. 14 | 15 | Creative Commons Attribution-ShareAlike 4.0 International Public License 16 | 17 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. 18 | 19 | Section 1 – Definitions. 20 | 21 | a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. 22 | 23 | b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. 24 | 25 | c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. 26 | 27 | d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. 28 | 29 | e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. 30 | 31 | f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. 32 | 33 | g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. 34 | 35 | h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. 36 | 37 | i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. 38 | 39 | j. Licensor means the individual(s) or entity(ies) granting rights under this Public License. 40 | 41 | k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. 42 | 43 | l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. 44 | 45 | m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. 46 | 47 | Section 2 – Scope. 48 | 49 | a. License grant. 50 | 51 | 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: 52 | 53 | A. reproduce and Share the Licensed Material, in whole or in part; and 54 | 55 | B. produce, reproduce, and Share Adapted Material. 56 | 57 | 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 58 | 59 | 3. Term. The term of this Public License is specified in Section 6(a). 60 | 61 | 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 62 | 63 | 5. Downstream recipients. 64 | 65 | A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. 66 | 67 | B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. 68 | 69 | C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 70 | 71 | 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). 72 | 73 | b. Other rights. 74 | 75 | 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 76 | 77 | 2. Patent and trademark rights are not licensed under this Public License. 78 | 79 | 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. 80 | 81 | Section 3 – License Conditions. 82 | 83 | Your exercise of the Licensed Rights is expressly made subject to the following conditions. 84 | 85 | a. Attribution. 86 | 87 | 1. If You Share the Licensed Material (including in modified form), You must: 88 | 89 | A. retain the following if it is supplied by the Licensor with the Licensed Material: 90 | 91 | i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); 92 | 93 | ii. a copyright notice; 94 | 95 | iii. a notice that refers to this Public License; 96 | 97 | iv. a notice that refers to the disclaimer of warranties; 98 | 99 | v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; 100 | 101 | B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and 102 | 103 | C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 104 | 105 | 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 106 | 107 | 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 108 | 109 | b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. 110 | 111 | 1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. 112 | 113 | 2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. 114 | 115 | 3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. 116 | 117 | Section 4 – Sui Generis Database Rights. 118 | 119 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: 120 | 121 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; 122 | 123 | b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and 124 | 125 | c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. 126 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. 127 | 128 | Section 5 – Disclaimer of Warranties and Limitation of Liability. 129 | 130 | a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. 131 | 132 | b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. 133 | 134 | c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. 135 | 136 | Section 6 – Term and Termination. 137 | 138 | a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. 139 | 140 | b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 141 | 142 | 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 143 | 144 | 2. upon express reinstatement by the Licensor. 145 | 146 | c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. 147 | 148 | d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. 149 | 150 | e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. 151 | 152 | Section 7 – Other Terms and Conditions. 153 | 154 | a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. 155 | 156 | b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. 157 | 158 | Section 8 – Interpretation. 159 | 160 | a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. 161 | 162 | b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. 163 | 164 | c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. 165 | 166 | d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. 167 | 168 | Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. 169 | 170 | Creative Commons may be contacted at creativecommons.org. 171 | -------------------------------------------------------------------------------- /LICENSES/CC0-1.0.txt: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | -------------------------------------------------------------------------------- /cards.tex: -------------------------------------------------------------------------------- 1 | % © 2022 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: CC-BY-4.0 4 | % 5 | % Access & Secrets 6 | \AccessSecrets{2}{Missing access review}{We grant permissions to 3rd parties (e.g. CI/CD systems), but do not review them regularly.} 7 | \AccessSecrets{3}{Long-living secrets}{Our secrets are long-lived and can be reused when they get leaked.} 8 | \AccessSecrets{4}{No password policy}{We don't enforce strong passwords for cloud access, so brute-forcing is possible.} 9 | \AccessSecrets{5}{Access to credentials}{We (as developers) have access to technical credentials.} 10 | \AccessSecrets{6}{Slow credential rotation}{We don't propagate changes in permissions quickly enough throughout the whole system.} 11 | \AccessSecrets{7}{Repudiation}{We can't trace back whether authenticated users/developers granted themselves additional permissions.} 12 | \AccessSecrets{8}{No least privilege}{We don't restrict permissions (developers, technical users) to the minimum, allowing for a privilege escalation.} 13 | \AccessSecrets{9}{Privilege escalation}{Our Identity and Access Management lets authenticated users/developers grant themselves additional permissions.} 14 | \AccessSecrets{10}{No MFA}{We don't enforce MFA for developer access.} 15 | \AccessSecrets{J}{Secrets in artifacts}{Our deployment artifacts contain secrets that can be extracted.} 16 | \AccessSecrets{Q}{Complex IAM}{Our Identity and Access Management is too complex.} 17 | \AccessSecrets{K}{Poor secrets management}{We don't use an established solution for credential management.} 18 | \AccessSecrets{A}{Secrets in source code}{Our source code contains secrets.} 19 | % 20 | % Delivery 21 | \Delivery{2}{No SBOM}{We don't know the versions of our dependencies or whether they are up to date.} 22 | \Delivery{3}{Bundled devDependencies}{We include unneeded dependencies when deploying our system (test, build, compile-time dependencies).} 23 | \Delivery{4}{Dependency confusion}{We don't know the source repository of our dependencies.} 24 | \Delivery{5}{Rogue dependencies}{We don't know how a new version of a dependency changes our system.} 25 | \Delivery{6}{Unattended updates}{Our system can be re-deployed by a change in an external dependency.} 26 | \Delivery{7}{Missing vulnerability scans}{We don't know whether our dependencies introduce security issues.} 27 | \Delivery{8}{Outdated dependencies}{We use outdated dependencies of our runtime platform (OS, container image, serverless runtime).} 28 | \Delivery{9}{Dubious dependencies}{We use untrustworthy dependencies (unmaintained, used by too few people, developed by single developers, ...).} 29 | \Delivery{10}{Missing network control}{We don't limit ingress or egress when running CI pipelines.} 30 | \Delivery{J}{Insufficient SCM}{We don't know when someone injects code into our codebase.} 31 | \Delivery{Q}{No source code integrity}{We are not certain which code/artifacts we are deploying.} 32 | \Delivery{K}{Silent pipeline runs}{We won't notice when a deployment is started from a developer account.} 33 | \Delivery{A}{Silent pipeline changes}{We won't notice when someone alters the deploy pipeline.} 34 | % 35 | % Recovery 36 | \Recovery{2}{-}{-} 37 | \Recovery{3}{No restore}{We have backups but do not check regularly whether we can restore them or not.} 38 | \Recovery{4}{No infrastructure backups}{We have no backups for our infrastructure (IaC and its state).} 39 | \Recovery{5}{No backups of data}{We have no backups of our application data.} 40 | \Recovery{6}{No backups of secrets}{We have no backups for our secrets.} 41 | \Recovery{7}{No infrastructure rollback}{We cannot restore our infrastructure to a previous state.} 42 | \Recovery{8}{No application rollback}{We cannot restore our application to a previous state.} 43 | \Recovery{9}{No system rollback}{We cannot restore our complete environment to a previous state.} 44 | \Recovery{10}{Unsafe data deletions}{We don't create backups before deleting important data.} 45 | \Recovery{J}{No backup redundancy}{All our backups can be destroyed at once, due to lack of redundancy.} 46 | \Recovery{Q}{Missing backup integrity}{We can't tell whether our backup has been modified.} 47 | \Recovery{K}{Broad delete permissions}{We can have the same person deleting resources and their backups.} 48 | \Recovery{A}{No disaster recovery plan}{We have no disaster recovery plan.} 49 | % 50 | % Monitoring 51 | \Monitoring{2}{-}{-} 52 | \Monitoring{3}{-}{-} 53 | \Monitoring{4}{-}{-} 54 | \Monitoring{5}{Information disclosure}{We don't restrict access to the sensitive parts of our logs.} 55 | \Monitoring{6}{Insufficient traceability}{We can't easily identify useful information in logs.} 56 | \Monitoring{7}{Missing cost alerting}{We won't get an alert if an end user generates huge cloud bills for us.} 57 | \Monitoring{8}{No log integrity}{We don't notice if an authenticated attacker/developer deactivates or manipulates our tools for traceability.} 58 | \Monitoring{9}{No audits for prod access}{We don't know if an authenticated attacker/developer accessed the production environment.} 59 | \Monitoring{10}{Insufficient monitoring}{We cannot react to problems in time because our monitoring has blind spots.} 60 | \Monitoring{J}{Unclear alerts}{We need too long to figure out what an alert means.} 61 | \Monitoring{Q}{No incident response plan}{We do not know how to react when our monitoring sends alerts.} 62 | \Monitoring{K}{Inaccessible logs}{We can't access our logs if the production environment goes down.} 63 | \Monitoring{A}{Secrets in logs}{We write secrets/personal data to our logs.} 64 | % 65 | % Resources 66 | \Resources{2}{-}{-} 67 | \Resources{3}{-}{-} 68 | \Resources{4}{Unreachable contacts}{We can't get contacted by our cloud provider in case of emergency.} 69 | \Resources{5}{Non-compliance}{We don't regularly check compliance with our internal policy for using/configuring cloud resources.} 70 | \Resources{6}{Missing rate limits}{We have not configured any rate limits for our services.} 71 | \Resources{7}{Missing resource limits}{We have no configured resource limits.} 72 | \Resources{8}{Excessive capabilities}{We can deploy applications with excessive capabilities.} 73 | \Resources{9}{Single point of failure}{Our whole system can be affected by a single rogue service.} 74 | \Resources{10}{Missing ingress control}{We don't control ingress traffic.} 75 | \Resources{J}{Missing egress control}{We don't control egress traffic.} 76 | \Resources{Q}{Missing env separation}{Our production and staging environments are connected, either directly or indirectly (e.g. via CI/CD).} 77 | \Resources{K}{Public resources}{Our cloud resources are publicly exposed without any need.} 78 | \Resources{A}{No cloud policy}{We have no clear policy for using/configuring cloud resources.} 79 | -------------------------------------------------------------------------------- /docs/img/cards.svg.license: -------------------------------------------------------------------------------- 1 | © 2023 TNG Technology Consulting 2 | 3 | SPDX-License-Identifier: CC-BY-4.0 4 | -------------------------------------------------------------------------------- /docs/img/download.svg: -------------------------------------------------------------------------------- 1 | 2 | 17 | 37 | 39 | 40 | 42 | image/svg+xml 43 | 45 | 46 | 47 | 48 | 49 | 51 | 58 | 67 | 72 | 73 | 74 | 82 | 89 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /docs/img/download.svg.license: -------------------------------------------------------------------------------- 1 | © 2023 TNG Technology Consulting 2 | 3 | SPDX-License-Identifier: CC-BY-4.0 4 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | 6 | 7 | # OWASP Cumulus - *Threat modeling the clouds*[](https://github.com/OWASP/cumulus/releases/latest) 8 | 9 | ![Cumulus Cards](docs/img/cards.svg) 10 | 11 | Cumulus is the easy way to bring security into cloud and devOps teams. 12 | 13 | As a variant of the card game Elevation of Privilege it follows the idea to threat model a system via gamification. 14 | This lightweight and low-barrier approach helps you find threats to your devOps or cloud project and teaches the developers a security oriented mindset. 15 | 16 | Find the latest release [here](https://github.com/OWASP/cumulus/releases/latest). 17 | 18 | ## Threat Modeling 19 | The idea of threat modeling via serious games goes back to the card game [Elevation of Privilege](https://shostack.org/games/elevation-of-privilege) by [Adam Shostack](https://github.com/adamshostack). 20 | The basic idea is to bring the developers on a table and get them start discussing the security of their system. 21 | For this, a card game serves as a guide through a catalogue of threats. 22 | It is designed to be low-barrier and naturally embeddable within agile development processes. 23 | 24 | While the original game approaches security in general and another variant, Cornucopia by the OWASP Foundation, targets (web) application security in particular, we had the feeling that the specific needs of devOps team working in cloud environments have been missing. 25 | Cumulus seeks to fill this gap and provides a custom card deck with threats to cloud systems. 26 | 27 | Threats are classified into the categories (which are also the suits in this game): 28 | * Access & Secrets 29 | * Delivery 30 | * Recovery 31 | * Monitoring 32 | * Resources 33 | 34 | This game does explicitly **not** try to replace Elevation of Privilege or Cornucopia. 35 | It should rather be seen as part of a triplet of threat modeling card decks, reflecting different aspects of modern software development projects. 36 | 37 | ## Rules of the game 38 | Cumulus ist trick-taking card game, similar to spades. 39 | 40 | The objective is to collect as many points as possible, either by taking a trick or by finding threats. 41 | At the end of the game the winner is the player with the most points. 42 | 43 | In preparation of the game an architectural overview is generated. 44 | Ideally, this is in the form of a data flow diagram, but in the end every overview which is understood by the players is fine. 45 | Additionally, the players agree on a starting suit, i.e. 46 | a threat category. 47 | 48 | After distributing the cards amongst the players, the game starts. 49 | The first dealer is the player holding the lowest card in the starting suit. 50 | The dealer plays a card in the starting suit.Each other players has to follow the suit during that round. 51 | If that is not possible, the player can choose any card on hand. 52 | The winner of the round takes the trick and is the one who played the highest value card in the round's suit or the highest trump card. 53 | 54 | Trumps are cards from the suit *Access & Secrets*. 55 | 56 | The winner then receives a point, starts a new round and chooses the new suit. 57 | Each time a new card is played, all players are asked to think about whether that particular threat, mentioned on the current card, applies to their system in some form. 58 | If a threat is found (and the team agrees that this is a topic to look at),it is written down and the finder receives an extra point. 59 | 60 | ## Acknowledgements 61 | The original and wonderful idea of conducting threat modeling via serious games goes back to [Adam Shostack](https://github.com/adamshostack), working for Microsoft at that time. 62 | He invented the game [Elevation of Privilege](https://shostack.org/games/elevation-of-privilege) which is the blue print for Cumulus. 63 | 64 | Another great game following Elevation of Privilege's approach to threat modeling is [Cornucopia](https://owasp.org/www-project-cornucopia/) developed by the [OWASP Foundation](https://owasp.org/). 65 | 66 | Both card games are great tools to help development teams increase the security of the system they are building. 67 | 68 | However, we felt the need for a threat modeling card game targeting devOps/cloud projects in particular. 69 | Out of this idea, Cumulus arose. 70 | 71 | ## Online Version 72 | There exists an [online version](https://github.com/tng/elevation-of-privilege) of this card game (and also Elevation of Privilege and Cornucopia) for remote or geographically distributed teams. 73 | This can easily be self-hosted. 74 | 75 | You can find it under: 76 | 77 | [https://github.com/tng/elevation-of-privilege](https://github.com/tng/elevation-of-privilege) 78 | 79 | ## Contributing 80 | Contributions to the card deck are very much appreciated. 81 | In the end, this card deck is intended to be a community project. 82 | 83 | Changes to the threat formulations are welcome as pull requests to [cards.tex](https://github.com/OWASP/cumulus/blob/main/cards.tex). 84 | 85 | ## Versioning 86 | The card deck follows [semantic versioning](https://semver.org/). 87 | Version changes mean: 88 | 89 | - *patch version*: Non-semantic changes: layout, typos, minor re-wordings, ... 90 | - *minor version*: Semantic changes: rephrasings, additional cards... 91 | - *major version*: Substantial semantic changes: new categories, ... 92 | 93 | ## Licensing 94 | The card game (including the threat formulations and the released PDF files are distributed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/). 95 | When distributing this game, mentioning [TNG Technology Consulting](https://www.tngtech.com/en/index.html) is highly appreciated. 96 | 97 | All utils files (shell scripts, LaTeX code for layouting) are distributed under [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0). 98 | -------------------------------------------------------------------------------- /tex/additional_cards.tex: -------------------------------------------------------------------------------- 1 | % © 2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | % 6 | % empty 7 | -------------------------------------------------------------------------------- /tex/all_cards_on_one_page.tex: -------------------------------------------------------------------------------- 1 | % © 2022 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | \documentclass[parskip]{scrartcl}% 6 | \usepackage[paperheight=610mm,paperwidth=918.5mm,top=0mm,left=0mm,right=0mm,bottom=0mm]{geometry}% 7 | \input{lib/imports.tex}% 8 | \input{lib/constants.tex}% 9 | \input{lib/colors_RGB.tex}% 10 | % 11 | \setboolean{doPrintEmptyCards}{true}% 12 | \pgfmathsetmacro{\bleed}{0}% 13 | \pgfmathsetmacro{\internalpadding}{0}% 14 | \pgfmathsetmacro{\cardwidthPrint}{\cardwidth}% 15 | \pgfmathsetmacro{\cardheightPrint}{\cardheight}% 16 | % 17 | \begin{document}% 18 | Cumulus\\% 19 | \input{lib/layout.tex}% 20 | \hspace{-3.5mm}% 21 | \input{../cards.tex}% 22 | \end{document}% 23 | -------------------------------------------------------------------------------- /tex/back.tex: -------------------------------------------------------------------------------- 1 | % © 2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | \documentclass[parskip]{scrartcl}% 6 | \usepackage[paperheight=126mm,paperwidth=76mm,top=0mm,left=0mm]{geometry}% 7 | \input{lib/imports.tex}% 8 | \input{lib/constants.tex}% 9 | \input{lib/colors_CMYK.tex} 10 | \input{lib/logo_for_back.tex} 11 | % 12 | % Background 13 | \newcommand{\Background}{% 14 | % Background fill 15 | \fill[fill=ColorBack!80,rounded corners=0] (0,0) rectangle (2*\cardwidth,2*\cardheight);% 16 | }% 17 | % 18 | \newcommand{\Frame}{% 19 | % Inner bounding box 20 | \draw[white, rounded corners=\cardroundingradius] (\bleed+\internalpadding,\bleed+\internalpadding) rectangle (\cardwidth-\internalpadding+\bleed,\cardheight-\internalpadding+\bleed);% 21 | }% 22 | % 23 | \begin{document}% 24 | $ $\\% 25 | % 26 | \begin{tikzpicture}% 27 | \begin{scope}[xshift=0, yshift=0, local bounding box=scopeAinner]% 28 | \clip [rounded corners=0] (0, 0) rectangle ++(\cardwidthPrint,\cardheightPrint);% 29 | % 30 | \Background 31 | \Frame 32 | \Logo 33 | \node[text centered, text width=(\cardwidth-2*\textpadding)*1cm,below right,inner sep=0] at (\textpadding+\bleed,0.7*\cardheight)% 34 | {% 35 | \resizebox{!}{1cm}{\Huge \color{ColorBackPrimary} cumulus}% 36 | };% 37 | \node[text centered, text width=(\cardwidth-2*\textpadding)*1cm,below right,inner sep=0] at (\textpadding+\bleed,0.55*\cardheight)% 38 | {% 39 | \huge{\color{ColorBackPrimary} threat modeling the clouds} 40 | };% 41 | \end{scope}% 42 | \end{tikzpicture}\\% 43 | \end{document}% 44 | -------------------------------------------------------------------------------- /tex/categories.tex: -------------------------------------------------------------------------------- 1 | % © 2022,2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | \newcommand{\Category}[4]{% 6 | % Card value and icon 7 | \node[text width=(\cardwidth-2*\textpadding)*1cm,below right,inner sep=0, align=left] at (0.15*\cardwidth,#1*\cardheight)% 8 | {% 9 | \includegraphics[width=1cm]{#2} 10 | };% 11 | \node[text width=(\cardwidth-2*\textpadding)*1cm,below right,inner sep=0, align=left] at (0.35*\cardwidth,#1*\cardheight-0.03*\cardheight)% 12 | {% 13 | {\textfontsize{\textbf{#3}}} 14 | };% 15 | \node[text width=(\cardwidth-1.5*\textpadding)*1cm,below right,inner sep=0, align=right] at (0.1*\cardwidth,#1*\cardheight-0.08*\cardheight)% 16 | {% 17 | {\detailsfontsize{#4}} 18 | };% 19 | }% 20 | % 21 | \begin{tikzpicture}% 22 | \begin{scope}[xshift=0, yshift=0, local bounding box=scopeAinner]% 23 | \clip [rounded corners=0] (0, 0) rectangle ++(\cardwidthPrint,\cardheightPrint);% 24 | % 25 | \Frame 26 | \Category{0.97}{\IconAccessSecrets}{\CategoryAccessSecrets}{Threats related to IAM and secrets management} 27 | \Category{0.77}{\IconDelivery}{\CategoryDelivery}{Build and ship software, and its supply chain} 28 | \Category{0.57}{\IconRecovery}{\CategoryRecovery}{Backup and restore} 29 | \Category{0.4}{\IconMonitoring}{\CategoryMonitoring}{Logs, alerts and traceability} 30 | \Category{0.23}{\IconResources}{\CategoryResources}{Threats to resources and their configuration} 31 | \end{scope}% 32 | \end{tikzpicture}\\% 33 | -------------------------------------------------------------------------------- /tex/coversheet.tex: -------------------------------------------------------------------------------- 1 | % © 2022,2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | % Background 6 | \newcommand{\CoverBackground}{% 7 | % Background fill 8 | \fill[fill=ColorCoverLogo1,rounded corners=0] (0,0) rectangle (2*\cardwidth,2*\cardheight);% 9 | % Background number 10 | \node[text width=\cardwidth, anchor=north] at (-3.0+\bleed,1.2*\cardheight+\bleed)% 11 | {% 12 | \rotatebox{45}{\resizebox{!}{10cm}{\Huge \textbf{\color{ColorCoverLogo2} C}}}% 13 | };% 14 | }% 15 | % 16 | % Cover Logo 17 | \newcommand{\CoverLogo}{% 18 | \node[text width=(0.7*\cardwidth)*1cm,below right,inner sep=0, align=left] at (0.25*\cardwidth+\bleed, 0.97*\cardheight+\bleed)% 19 | {% 20 | \includegraphics[width=0.8\textwidth]{img/cover_logo.pdf}% 21 | };% 22 | }% 23 | % 24 | % Title 25 | \newcommand{\CoverTitle}{% 26 | \node[text centered, text width=(\cardwidth)*1cm,below right,inner sep=0] at (\bleed,0.7*\cardheight+\bleed)% 27 | {% 28 | \resizebox{!}{1cm}{\Huge cumulus}% 29 | };% 30 | \node[text centered, text width=(\cardwidth)*1cm,below right,inner sep=0] at (\bleed,0.55*\cardheight+\bleed)% 31 | {% 32 | {\huge threat modeling the clouds}% 33 | };% 34 | }% 35 | % 36 | % Version 37 | \newcommand{\CoverVersion}{% 38 | \node[text width=(0.75*\cardheight)*1cm,below right,inner sep=0, align=left, rotate=90] at (0.075*\cardwidth+\bleed, 0.05*\cardheight+\bleed)% 39 | {% 40 | {\large \color{ColorCoverLogo3} \makeatletter\input{version.tex}}% 41 | };% 42 | }% 43 | % 44 | % CC Licensing 45 | \newcommand{\CoverLicense}{% 46 | \node[text width=(0.7*\cardwidth)*1cm,below right,inner sep=0, align=left] at (0.25*\cardwidth+\bleed, 0.125*\cardheight+\bleed)% 47 | {% 48 | \includegraphics[width=0.8\textwidth]{img/cc-by.pdf}% 49 | };% 50 | }% 51 | % 52 | \begin{tikzpicture}% 53 | \begin{scope}[xshift=0, yshift=0, local bounding box=scopeAinner]% 54 | \clip [rounded corners=0] (0, 0) rectangle ++(\cardwidthPrint,\cardheightPrint);% 55 | % 56 | \CoverBackground 57 | \CoverTitle 58 | \CoverVersion 59 | \CoverLogo 60 | \CoverLicense 61 | \end{scope}% 62 | \end{tikzpicture}\\% 63 | -------------------------------------------------------------------------------- /tex/img/access_secrets.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/access_secrets.pdf -------------------------------------------------------------------------------- /tex/img/access_secrets.pdf.license: -------------------------------------------------------------------------------- 1 | SPDX-License-Identifier: CC0-1.0 2 | -------------------------------------------------------------------------------- /tex/img/cc-by.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/cc-by.pdf -------------------------------------------------------------------------------- /tex/img/cc-by.pdf.license: -------------------------------------------------------------------------------- 1 | © https://creativecommons.org/ 2 | 3 | SPDX-License-Identifier: CC-BY-SA-4.0 4 | -------------------------------------------------------------------------------- /tex/img/cover_logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/cover_logo.pdf -------------------------------------------------------------------------------- /tex/img/delivery.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/delivery.pdf -------------------------------------------------------------------------------- /tex/img/delivery.pdf.license: -------------------------------------------------------------------------------- 1 | SPDX-License-Identifier: CC0-1.0 2 | -------------------------------------------------------------------------------- /tex/img/monitoring.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/monitoring.pdf -------------------------------------------------------------------------------- /tex/img/monitoring.pdf.license: -------------------------------------------------------------------------------- 1 | SPDX-License-Identifier: CC0-1.0 2 | -------------------------------------------------------------------------------- /tex/img/recovery.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/recovery.pdf -------------------------------------------------------------------------------- /tex/img/recovery.pdf.license: -------------------------------------------------------------------------------- 1 | SPDX-License-Identifier: CC0-1.0 2 | -------------------------------------------------------------------------------- /tex/img/resources.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/resources.pdf -------------------------------------------------------------------------------- /tex/img/resources.pdf.license: -------------------------------------------------------------------------------- 1 | SPDX-License-Identifier: CC0-1.0 2 | -------------------------------------------------------------------------------- /tex/img/tng/icon_ai.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/icon_ai.pdf -------------------------------------------------------------------------------- /tex/img/tng/icon_coding.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/icon_coding.pdf -------------------------------------------------------------------------------- /tex/img/tng/icon_devops.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/icon_devops.pdf -------------------------------------------------------------------------------- /tex/img/tng/icon_github.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/icon_github.pdf -------------------------------------------------------------------------------- /tex/img/tng/icon_owasp.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/icon_owasp.pdf -------------------------------------------------------------------------------- /tex/img/tng/owasp_logo_white.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/owasp_logo_white.pdf -------------------------------------------------------------------------------- /tex/img/tng/qr-owasp-cumulus.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/qr-owasp-cumulus.pdf -------------------------------------------------------------------------------- /tex/img/tng/qr-tng-cumulus.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/qr-tng-cumulus.pdf -------------------------------------------------------------------------------- /tex/img/tng/qr-tng-eop.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/qr-tng-eop.pdf -------------------------------------------------------------------------------- /tex/img/tng/tng_logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/tng_logo.pdf -------------------------------------------------------------------------------- /tex/img/tng/tng_logo_white.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng/tng_logo_white.pdf -------------------------------------------------------------------------------- /tex/img/tng_access_secrets.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng_access_secrets.pdf -------------------------------------------------------------------------------- /tex/img/tng_black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng_black.pdf -------------------------------------------------------------------------------- /tex/img/tng_delivery.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng_delivery.pdf -------------------------------------------------------------------------------- /tex/img/tng_monitoring.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng_monitoring.pdf -------------------------------------------------------------------------------- /tex/img/tng_recovery.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng_recovery.pdf -------------------------------------------------------------------------------- /tex/img/tng_resources.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OWASP/cumulus/61eccfea18e8a5bd608ea70b8d9b8117d103d5a3/tex/img/tng_resources.pdf -------------------------------------------------------------------------------- /tex/lib/colors_CMYK.tex: -------------------------------------------------------------------------------- 1 | % © 2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | % 6 | % Colors 7 | \definecolor{ColorAccessSecrets1}{cmyk}{0.022, 0.583, 0.613, 0.000}% 8 | \definecolor{ColorAccessSecrets2}{cmyk}{0.030, 0.380, 0.367, 0.001}% 9 | \definecolor{ColorAccessSecrets3}{cmyk}{0.023, 0.213, 0.150, 0.000}% 10 | % 11 | \definecolor{ColorDelivery1}{cmyk}{0.579, 0.040, 0.013, 0.000}% 12 | \definecolor{ColorDelivery2}{cmyk}{0.438, 0.016, 0.024, 0.000}% 13 | \definecolor{ColorDelivery3}{cmyk}{0.227, 0.008, 0.029, 0.000}% 14 | % 15 | \definecolor{ColorRecovery1}{cmyk}{0.663, 0.000, 0.490, 0.083}% 16 | \definecolor{ColorRecovery2}{cmyk}{0.504, 0.000, 0.360, 0.000}% 17 | \definecolor{ColorRecovery3}{cmyk}{0.259, 0.008, 0.175, 0.000}% 18 | % 19 | \definecolor{ColorMonitoring1}{cmyk}{0.029, 0.326, 0.727, 0.000}% 20 | \definecolor{ColorMonitoring2}{cmyk}{0.033, 0.222, 0.521, 0.001}% 21 | \definecolor{ColorMonitoring3}{cmyk}{0.022, 0.096, 0.252, 0.000}% 22 | % 23 | \definecolor{ColorResources1}{cmyk}{0.428, 0.614, 0.000, 0.000}% 24 | \definecolor{ColorResources2}{cmyk}{0.293, 0.439, 0.000, 0.000}% 25 | \definecolor{ColorResources3}{cmyk}{0.125, 0.213, 0.006, 0.000}% 26 | % 27 | \definecolor{ColorCoverLogo1}{cmyk}{0.689, 0.385, 0.097, 0.021}% 28 | \definecolor{ColorCoverLogo2}{cmyk}{0.497, 0.238, 0.088, 0.009}% 29 | \definecolor{ColorCoverLogo3}{cmyk}{0.227, 0.008, 0.029, 0.000}% 30 | % 31 | \definecolor{ColorBack}{cmyk}{0.009, 0.006, 0.000, 0.579}% 32 | \definecolor{ColorBackPrimary}{cmyk}{0.000, 0.000, 0.000, 0.000}% 33 | -------------------------------------------------------------------------------- /tex/lib/colors_RGB.tex: -------------------------------------------------------------------------------- 1 | % © 2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | % Colors 6 | \definecolor{ColorAccessSecretsBase}{HTML}{EB5C4A}% 7 | \colorlet{ColorAccessSecrets1}{ColorAccessSecretsBase!80}% 8 | \colorlet{ColorAccessSecrets2}{ColorAccessSecretsBase!55}% 9 | \colorlet{ColorAccessSecrets3}{ColorAccessSecretsBase!25}% 10 | % 11 | \definecolor{ColorDeliveryBase}{HTML}{3CB7F0}% 12 | \colorlet{ColorDelivery1}{ColorDeliveryBase!80}% 13 | \colorlet{ColorDelivery2}{ColorDeliveryBase!55}% 14 | \colorlet{ColorDelivery3}{ColorDeliveryBase!25}% 15 | % 16 | \definecolor{ColorRecoveryBase}{HTML}{0DB080}% 17 | \colorlet{ColorRecovery1}{ColorRecoveryBase!80}% 18 | \colorlet{ColorRecovery2}{ColorRecoveryBase!55}% 19 | \colorlet{ColorRecovery3}{ColorRecoveryBase!25}% 20 | % 21 | \definecolor{ColorMonitoringBase}{HTML}{F5A52B}% 22 | \colorlet{ColorMonitoring1}{ColorMonitoringBase!80}% 23 | \colorlet{ColorMonitoring2}{ColorMonitoringBase!55}% 24 | \colorlet{ColorMonitoring3}{ColorMonitoringBase!25}% 25 | % 26 | \definecolor{ColorResourcesBase}{HTML}{A54FC2}% 27 | \colorlet{ColorResources1}{ColorResourcesBase!80}% 28 | \colorlet{ColorResources2}{ColorResourcesBase!55}% 29 | \colorlet{ColorResources3}{ColorResourcesBase!25}% 30 | % 31 | \definecolor{ColorCoverLogoBase}{HTML}{2C6AA8}% 32 | \colorlet{ColorCoverLogo1}{ColorCoverLogoBase!80}% 33 | \colorlet{ColorCoverLogo2}{ColorCoverLogoBase!55}% 34 | \colorlet{ColorCoverLogo3}{ColorCoverLogoBase!25}% 35 | -------------------------------------------------------------------------------- /tex/lib/constants.tex: -------------------------------------------------------------------------------- 1 | % © 2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | % 6 | % Dimensions 7 | \pgfmathsetmacro{\cardroundingradius}{2.3mm}% 8 | \pgfmathsetmacro{\bleed}{0.3}% 9 | \pgfmathsetmacro{\internalpadding}{0.4}% 10 | \pgfmathsetmacro{\cardwidth}{7}% 11 | \pgfmathsetmacro{\cardheight}{12}% 12 | \pgfmathsetmacro{\cardwidthPrint}{\cardwidth+2*\bleed}% 13 | \pgfmathsetmacro{\cardheightPrint}{\cardheight+2*\bleed}% 14 | \pgfmathsetmacro{\textpadding}{0.75}% 15 | \pgfmathsetmacro{\textpadding}{0.75}% 16 | \pgfmathsetmacro{\additionalpadding}{0.75}% 17 | % 18 | % Fonts 19 | \newcommand{\detailsfontsize}{\large}% 20 | \newcommand{\textfontsize}{\Large}% 21 | \newcommand{\summaryfontsize}{\huge}% 22 | \newcommand{\valuefontsize}{\Huge}% 23 | -------------------------------------------------------------------------------- /tex/lib/imports.tex: -------------------------------------------------------------------------------- 1 | % © 2022 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | \usepackage{tikz}% 6 | \usepackage{graphicx}% 7 | \usepackage{svg}% 8 | \usepackage[onehalfspacing]{setspace}% 9 | \usepackage[none]{hyphenat}% 10 | \usepackage{hyperref}% 11 | \usepackage{ifthen}% 12 | \usepackage{fontsize}% 13 | \usepackage{enumitem}% 14 | % font 15 | \usepackage[sfdefault]{josefin}% 16 | \usepackage[T1]{fontenc}% 17 | \pagestyle{empty}% 18 | % 19 | \newboolean{doPrintEmptyCards}% 20 | \setboolean{doPrintEmptyCards}{false}% 21 | \newboolean{doPrintSummary}% 22 | \setboolean{doPrintSummary}{true}% 23 | \newboolean{doPrintLogoInColor}% 24 | \setboolean{doPrintLogoInColor}{true}% 25 | -------------------------------------------------------------------------------- /tex/lib/layout.tex: -------------------------------------------------------------------------------- 1 | % © 2022,2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | \input{lib/logo.tex}% 6 | % 7 | % Categories 8 | \newcommand{\CategoryAccessSecrets}{access\,\&\,secrets}% 9 | \newcommand{\CategoryDelivery}{delivery}% 10 | \newcommand{\CategoryRecovery}{recovery}% 11 | \newcommand{\CategoryMonitoring}{monitoring}% 12 | \newcommand{\CategoryResources}{resources}% 13 | % 14 | % Icons 15 | \newcommand{\IconAccessSecrets}{img/access_secrets.pdf}% 16 | \newcommand{\IconDelivery}{img/delivery.pdf}% 17 | \newcommand{\IconRecovery}{img/recovery.pdf}% 18 | \newcommand{\IconMonitoring}{img/monitoring.pdf}% 19 | \newcommand{\IconResources}{img/resources.pdf}% 20 | % 21 | % TNG Logo 22 | \newcommand{\LogoAccessSecrets}{img/tng_access_secrets.pdf}% 23 | \newcommand{\LogoDelivery}{img/tng_delivery.pdf}% 24 | \newcommand{\LogoRecovery}{img/tng_recovery.pdf}% 25 | \newcommand{\LogoMonitoring}{img/tng_monitoring.pdf}% 26 | \newcommand{\LogoResources}{img/tng_resources.pdf}% 27 | \newcommand{\LogoBlack}{img/tng_black.pdf}% 28 | % 29 | % Map card values to strings 30 | \newcommand{\valueasstring}[1]{% 31 | \ifthenelse{\equal{#1}{2}}{two}% 32 | {\ifthenelse{\equal{#1}{3}}{three}% 33 | {\ifthenelse{\equal{#1}{4}}{four}% 34 | {\ifthenelse{\equal{#1}{5}}{five}% 35 | {\ifthenelse{\equal{#1}{6}}{six}% 36 | {\ifthenelse{\equal{#1}{7}}{seven}% 37 | {\ifthenelse{\equal{#1}{8}}{eight}% 38 | {\ifthenelse{\equal{#1}{9}}{nine}% 39 | {\ifthenelse{\equal{#1}{10}}{ten}% 40 | {\ifthenelse{\equal{#1}{J}}{jack}% 41 | {\ifthenelse{\equal{#1}{Q}}{queen}% 42 | {\ifthenelse{\equal{#1}{K}}{king}% 43 | {\ifthenelse{\equal{#1}{A}}{ace}% 44 | {}}}}}}}}}}}}}}% 45 | % 46 | % 47 | \newcommand{\Frame}{% 48 | % Inner bounding box 49 | \draw[rounded corners=\cardroundingradius] (\bleed+\internalpadding,\bleed+\internalpadding) rectangle (\cardwidth-\internalpadding+\bleed,\cardheight-\internalpadding+\bleed);% 50 | }% 51 | % 52 | % Card background 53 | \newcommand{\Background}[3]{% 54 | % Background fill 55 | \fill[fill=#1,rounded corners=0] (0,0) rectangle (\cardwidthPrint,\cardheightPrint);% 56 | % Background number 57 | \node[text width=\cardwidth, anchor=north] at (-3.0+\bleed,1.2*\cardheight+\bleed)% 58 | {% 59 | \rotatebox{45}{\resizebox{!}{10cm}{\Huge \textbf{\color{#2} #3}}}% 60 | };% 61 | \Frame 62 | }% 63 | % 64 | % Card category & values 65 | \newcommand{\CategoryValue}[3]{% 66 | % Card value and icon 67 | \node[text width=(0.1*\cardwidth)*1cm,below right,inner sep=0, align=center] at (0.1*\cardwidth+\bleed,0.95*\cardheight+\bleed)% 68 | {% 69 | \resizebox{!}{1cm}{\valuefontsize\textbf{#1}}\\% 70 | \includegraphics[width=1cm]{#3} 71 | };% 72 | % Card value string 73 | \node[text width=(0.4*\cardwidth)*1cm,below right,inner sep=0, align=right] at (0.5*\cardwidth+\bleed,0.95*\cardheight+\bleed)% 74 | {% 75 | \resizebox{!}{0.2cm}{\tiny \valueasstring{#1}/#2}% 76 | };% 77 | }% 78 | % 79 | % Card Text 80 | \newcommand{\CardText}[1]{% 81 | \node[text centered, text width=(\cardwidth-2*\textpadding-\additionalpadding)*1cm,below right,inner sep=0] at (\textpadding+\additionalpadding+\bleed,0.7*\cardheight+\bleed)% 82 | {% 83 | {\textfontsize #1}% 84 | };% 85 | }% 86 | % 87 | % Card Summary 88 | \newcommand{\CardSummary}[2]{% 89 | \ifthenelse{\boolean{doPrintSummary}}{% 90 | \node[text width=(0.75*\cardheight)*1cm,below right,inner sep=0, align=left, rotate=90] at (0.09*\cardwidth+\bleed, 0.065*\cardheight+\bleed)% 91 | {% 92 | {\summaryfontsize \color{#2} #1}% 93 | };% 94 | }{}% 95 | }% 96 | % 97 | % Cards 98 | \newcommand{\GenericCard}[9]{% 99 | \ifthenelse{\boolean{doPrintEmptyCards} \or \not \equal{#8}{-}}% 100 | {% 101 | \begin{tikzpicture}% 102 | \begin{scope}[xshift=0, yshift=0, local bounding box=scopeAinner]% 103 | \clip [rounded corners=0] (0, 0) rectangle ++(\cardwidthPrint,\cardheightPrint);% 104 | % 105 | \Background{#2}{#3}{#7}% 106 | \CategoryValue{#7}{#1}{#5}% 107 | \CardText{#9}% 108 | \CardSummary{#8}{#4}% 109 | \Logo{#6}% 110 | \end{scope}% 111 | \end{tikzpicture}% 112 | }{\hspace{-0.75mm}}% 113 | }% 114 | \newcommand{\AccessSecrets}[3]{\GenericCard{\CategoryAccessSecrets}{ColorAccessSecrets1}{ColorAccessSecrets2}{ColorAccessSecrets3}{\IconAccessSecrets}{\LogoAccessSecrets}{#1}{#2}{#3}}% 115 | \newcommand{\Delivery}[3]{\GenericCard{\CategoryDelivery}{ColorDelivery1}{ColorDelivery2}{ColorDelivery3}{\IconDelivery}{\LogoDelivery}{#1}{#2}{#3}}% 116 | \newcommand{\Recovery}[3]{\GenericCard{\CategoryRecovery}{ColorRecovery1}{ColorRecovery2}{ColorRecovery3}{\IconRecovery}{\LogoRecovery}{#1}{#2}{#3}}% 117 | \newcommand{\Monitoring}[3]{\GenericCard{\CategoryMonitoring}{ColorMonitoring1}{ColorMonitoring2}{ColorMonitoring3}{\IconMonitoring}{\LogoMonitoring}{#1}{#2}{#3}}% 118 | \newcommand{\Resources}[3]{\GenericCard{\CategoryResources}{ColorResources1}{ColorResources2}{ColorResources3}{\IconResources}{\LogoResources}{#1}{#2}{#3}}% 119 | -------------------------------------------------------------------------------- /tex/lib/logo.tex: -------------------------------------------------------------------------------- 1 | % © 2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | % Categories 6 | % 7 | % Logo 8 | \newcommand{\Logo}[1]{}% 9 | % 10 | -------------------------------------------------------------------------------- /tex/lib/logo_for_back.tex: -------------------------------------------------------------------------------- 1 | % © 2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | %% 5 | % Logo for the back 6 | \newcommand{\OWASPLogo}{% 7 | \node[text width=(\cardwidth-2*\textpadding)*1cm,below right,inner sep=0, align=left] at (0.15*\cardwidth+\bleed,0.18*\cardheight+\bleed)% 8 | {% 9 | \includegraphics[width=0.9\textwidth]{img/tng/owasp_logo_white.pdf} 10 | };% 11 | }% 12 | % 13 | \newcommand{\Logo}{% 14 | \OWASPLogo% 15 | }% 16 | % 17 | -------------------------------------------------------------------------------- /tex/printer_friendly.tex: -------------------------------------------------------------------------------- 1 | % © 2022-2023 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | 5 | \documentclass[parskip]{scrartcl} 6 | \usepackage[a4paper,top=45.6mm,left=15mm]{geometry} 7 | \input{lib/imports.tex} 8 | \input{lib/constants.tex} 9 | % 10 | \setboolean{doPrintSummary}{false}% 11 | \setboolean{doPrintLogoInColor}{false}% 12 | \pgfmathsetmacro{\cardwidth}{6} 13 | \pgfmathsetmacro{\cardheight}{10.29} 14 | \pgfmathsetmacro{\additionalpadding}{0}% 15 | \pgfmathsetmacro{\bleed}{0}% 16 | \pgfmathsetmacro{\internalpadding}{0}% 17 | \pgfmathsetmacro{\cardwidthPrint}{\cardwidth}% 18 | \pgfmathsetmacro{\cardheightPrint}{\cardheight}% 19 | % 20 | \definecolor{ColorAccessSecrets1}{HTML}{FFFFFF} 21 | \definecolor{ColorAccessSecrets2}{HTML}{FFFFFF} 22 | \definecolor{ColorAccessSecrets3}{HTML}{FFFFFF} 23 | \definecolor{ColorDelivery1}{HTML}{FFFFFF} 24 | \definecolor{ColorDelivery2}{HTML}{FFFFFF} 25 | \definecolor{ColorDelivery3}{HTML}{FFFFFF} 26 | \definecolor{ColorRecovery1}{HTML}{FFFFFF} 27 | \definecolor{ColorRecovery2}{HTML}{FFFFFF} 28 | \definecolor{ColorRecovery3}{HTML}{FFFFFF} 29 | \definecolor{ColorMonitoring1}{HTML}{FFFFFF} 30 | \definecolor{ColorMonitoring2}{HTML}{FFFFFF} 31 | \definecolor{ColorMonitoring3}{HTML}{FFFFFF} 32 | \definecolor{ColorResources1}{HTML}{FFFFFF} 33 | \definecolor{ColorResources2}{HTML}{FFFFFF} 34 | \definecolor{ColorResources3}{HTML}{FFFFFF} 35 | % 36 | \begin{document} 37 | \input{lib/layout.tex} 38 | \hspace{-6mm} 39 | \input{../cards.tex} 40 | \end{document} 41 | -------------------------------------------------------------------------------- /tex/single_pages.tex: -------------------------------------------------------------------------------- 1 | % © 2022 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | \documentclass[parskip]{scrartcl}% 6 | \usepackage[paperheight=126mm,paperwidth=76mm,top=0mm,left=0mm]{geometry}% 7 | \input{lib/imports.tex}% 8 | \input{lib/constants.tex}% 9 | \input{lib/colors_RGB.tex}% 10 | % 11 | \begin{document}% 12 | $ $\\% 13 | \input{lib/layout.tex}% 14 | \input{coversheet.tex}% 15 | \input{additional_cards.tex} 16 | \input{categories.tex}% 17 | \input{../cards.tex}% 18 | \end{document}% 19 | -------------------------------------------------------------------------------- /tex/single_pages_CMYK.tex: -------------------------------------------------------------------------------- 1 | % © 2022 TNG Technology Consulting 2 | % 3 | % SPDX-License-Identifier: Apache-2.0 4 | % 5 | \documentclass[parskip]{scrartcl}% 6 | \usepackage[paperheight=126mm,paperwidth=76mm,top=0mm,left=0mm]{geometry}% 7 | \usepackage[cmyk]{xcolor} 8 | \input{lib/imports.tex}% 9 | \input{lib/constants.tex}% 10 | \input{lib/colors_CMYK.tex}% 11 | % 12 | \begin{document}% 13 | $ $\\% 14 | \input{lib/layout.tex}% 15 | \input{coversheet.tex}% 16 | \input{additional_cards.tex} 17 | \input{categories.tex}% 18 | \input{../cards.tex}% 19 | \end{document}% 20 | -------------------------------------------------------------------------------- /utils/build_pdf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | # © 2022 TNG Technology Consulting 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | function get_current_version() { 8 | local tag_at_head 9 | local version_name 10 | tag_at_head="$(git name-rev --name-only --tags HEAD | sed 's/^undefined$//')" 11 | version_name="${tag_at_head:-snapshot/"$(git rev-parse --short HEAD)"}" 12 | echo "${version_name}" 13 | } 14 | 15 | function clean_tmp_files() { 16 | git clean -dfX || true 17 | } 18 | 19 | function write_version_file() { 20 | local version="${1}" 21 | 22 | echo "(version ${version})" > tex/version.tex 23 | } 24 | 25 | function compile() { 26 | local pdf_base_name="${1}" 27 | local tex_file="${2}" 28 | 29 | local repo_base_dir 30 | local container_work_dir 31 | local container_image 32 | repo_base_dir="$(git rev-parse --show-toplevel)" 33 | container_work_dir="/tmp" 34 | container_image="leplusorg/latex:alpine" 35 | 36 | docker run \ 37 | --rm \ 38 | -t \ 39 | --user="$(id -u):$(id -g)" \ 40 | --net=none \ 41 | -v "${repo_base_dir}:${container_work_dir}" \ 42 | "${container_image}" \ 43 | latexmk \ 44 | -halt-on-error \ 45 | -outdir="${container_work_dir}/tex" \ 46 | -jobname="${pdf_base_name}" \ 47 | -pdf \ 48 | "${container_work_dir}/tex/${tex_file}" 49 | } 50 | 51 | function cut_pdf_pages() { 52 | local file_name="${1}" 53 | local pages_to_keep="${2}" 54 | 55 | local repo_base_dir 56 | local container_work_dir 57 | local container_image 58 | repo_base_dir="$(git rev-parse --show-toplevel)" 59 | container_work_dir="/work" 60 | container_image="pdftk/pdftk:latest" 61 | 62 | docker run \ 63 | --rm \ 64 | -t \ 65 | --user="$(id -u):$(id -g)" \ 66 | --net=none \ 67 | -v "${repo_base_dir}:${container_work_dir}" \ 68 | "${container_image}" \ 69 | "${file_name}" \ 70 | cat "${pages_to_keep}" \ 71 | output "${file_name}.tmp" 72 | 73 | mv "${file_name}.tmp" "${file_name}" 74 | } 75 | 76 | function compile_and_cut() { 77 | local pdf_base_name="${1}" 78 | local tex_file="${2}" 79 | local pages_to_keep="${3}" 80 | 81 | compile "${pdf_base_name}" "${tex_file}" && \ 82 | cut_pdf_pages "tex/${pdf_base_name}.pdf" "${pages_to_keep}" 83 | } 84 | 85 | function convert_pdf_to_jpg() { 86 | local pdf_file="${1}" 87 | local jpg_file="${2}" 88 | 89 | local repo_base_dir 90 | local container_work_dir 91 | local container_image 92 | repo_base_dir="$(git rev-parse --show-toplevel)" 93 | container_work_dir="/img" 94 | container_image="elifesciences/imagemagick" 95 | 96 | docker run \ 97 | --rm \ 98 | -t \ 99 | --user="$(id -u):$(id -g)" \ 100 | --net=none \ 101 | -v "${repo_base_dir}:${container_work_dir}" \ 102 | "${container_image}" \ 103 | -resize 4350 \ 104 | -density 240 \ 105 | -background white \ 106 | -flatten \ 107 | "${container_work_dir}/${pdf_file}" \ 108 | "${container_work_dir}/${jpg_file}" 109 | } 110 | 111 | 112 | # main 113 | current_version="$(get_current_version)" 114 | echo "Building version ${current_version}" 115 | 116 | clean_tmp_files 117 | write_version_file "${current_version}" 118 | compile_and_cut "cumulus" single_pages.tex "2-end" 119 | compile_and_cut "cumulus_CMYK" single_pages_CMYK.tex "2-end" 120 | compile_and_cut "back" back.tex "2-2" 121 | compile "cumulus_printer-friendly" printer_friendly.tex 122 | compile "cumulus_unified" all_cards_on_one_page.tex && convert_pdf_to_jpg "tex/cumulus_unified.pdf" "tex/cumulus_cards.jpg" 123 | 124 | -------------------------------------------------------------------------------- /utils/sync_mirror_repo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | REPO_ROOT="$(git rev-parse --show-toplevel)" 4 | MIRROR_REMOTE="mirror" 5 | MAIN_BRANCH="main" 6 | 7 | FILES_NOT_IN_SYNC=( 8 | "readme.md" 9 | "tex/additional_cards.tex" 10 | "tex/lib/logo.tex" 11 | "tex/lib/logo_for_back.tex" 12 | "tex/additional_cards.tex" 13 | "tex/img/cover_logo.pdf" 14 | "docs/img/cards.svg" 15 | ) 16 | 17 | 18 | assert_correct_remote_configured() { 19 | git remote get-url "${MIRROR_REMOTE}" || ( echo "No remote with name '${MIRROR_REMOTE}' configured" && exit 1 ) 20 | } 21 | 22 | reset_file_to_origin() { 23 | local filename="${1}" 24 | 25 | git reset "origin/${MAIN_BRANCH}" "${filename}" 26 | git checkout -- "${filename}" 27 | } 28 | 29 | commit_and_push_changes() { 30 | local mirror_remote_url 31 | mirror_remote_url="$(git remote get-url "${MIRROR_REMOTE}" | cut -d: -f2)" 32 | 33 | for src_file in "${FILES_NOT_IN_SYNC[@]}" 34 | do 35 | git add "${REPO_ROOT}/$src_file" 36 | done 37 | 38 | git commit -m "Sync changes from '${mirror_remote_url}'" 39 | } 40 | 41 | sync_mirror_repo() { 42 | git checkout "${MAIN_BRANCH}" 43 | 44 | git fetch --all 45 | git pull --rebase origin "${MAIN_BRANCH}" 46 | git merge --strategy-option=theirs "${MIRROR_REMOTE}/${MAIN_BRANCH}" 47 | for src_file in "${FILES_NOT_IN_SYNC[@]}" 48 | do 49 | reset_file_to_origin "${REPO_ROOT}/$src_file" 50 | done 51 | 52 | commit_and_push_changes 53 | 54 | git checkout - 55 | } 56 | 57 | 58 | # main 59 | 60 | assert_correct_remote_configured 61 | sync_mirror_repo 62 | --------------------------------------------------------------------------------