# How to write a design document Source: https://infisical.com/documentation/engineering/how-to-write-design-doc Learn how to write a design document at Infisical ## **Why write a design document?** Writing a design document helps you efficiently solve broad, complex engineering problems at Infisical. While planning is important, we are a startup, so speed and urgency should be your top of mind. Keep the process lightweight and time boxed so that we can get the most out of it. **Writing a design will help you:** * **Understand the problem space:** Deeply understand the problem you're solving to make sure it is well scoped. * **Stay on the right path:** Without proper planning, you risk cycling between partial implementation and replanning, encountering roadblocks that force you back to square one. A solid plan minimizes wasted engineering hours. * **An opportunity to collaborate:** Bring relevant engineers into the discussion to develop well-thought-out solutions and catch potential issues you might have overlooked. * **Faster implementation:** A well-thought-out plan will help you catch roadblocks early and ship quickly because you know exactly what needs to get implemented. **When to write a design document:** * **Write a design doc**: If the feature is not well defined, high-security, or will take more than **1 full engineering week** to build. * **Skip the design doc**: For small, straightforward features that can be built quickly with informal discussions. If you are unsure when to create a design doc, chat with @maidul. ## **What to Include in your Design Document** Every feature/problem is unique, but your design docs should generally include the following sections. If you need to include additional sections, feel free to do so. 1. **Title** * A descriptive title. * Name of document owner and name of reviewer(s). 2. **Overview** * A high-level summary of the problem and proposed solution. Keep it brief (max 3 paragraphs). 3. **Context** * Explain the problem's background, why it's important to solve now, and any constraints (e.g., technical, sales, or timeline-related). What do we get out of solving this problem? (needed to close a deal, scale, performance, etc.). * Consider whether this feature has notable sales implications (e.g., affects pricing, customer commitments, go-to-market strategy, or competitive positioning) that would require Sales team input and approval. 4. **Solution** * Provide a big-picture explanation of the solution, followed by detailed technical architecture. * Use diagrams/charts where needed. * Write clearly so that another engineer could implement the solution in your absence. * Break down the solution into meaningful, logical chunks that can be implemented independently. Consider: * Core infrastructure vs feature-specific implementations * Backend services that can be built and tested in isolation * Data model changes that can be implemented in phases * API endpoints that can be versioned and rolled out gradually This breakdown will inform your milestones and help reviewers understand the implementation strategy. If you find yourself planning PRs that are 3,000+ lines long, it might be a sign that you need to break down the work further. While PR size isn't the primary factor in determining breakdown, it can be a useful indicator that a chunk of work might be too large to review effectively. 5. **Milestones** * Break the project into phases with clear start and end dates estimates. Use a table or bullet points. * Each milestone should align with the logical chunks identified in the Solution section. 6. **FAQ** * Common questions or concerns someone might have while reading your document that can be quickly addressed. ## **How to Write a Design Doc** * **Keep it Simple**: Use clear, simple language. Opt for short sentences, bullet points, and concrete examples over fluff writing. * **Use Visuals**: Add diagrams and charts for clarity to convey your ideas. * **Make it Self-Explanatory**: Ensure that anyone reading the document can understand and implement the plan without needing additional context. Before sharing your design docs with others, review your design doc as if you were a teammate seeing it for the first time. Anticipate questions and address them. ## **Process from start to finish** 1. **Research/Discuss** * Before you start writing, take some time to research and get a solid understanding of the problem space. Look into how other well-established companies are tackling similar challenges, if they are. Talk through the problem and your initial solution with other engineers on the team—bounce ideas around and get their feedback. If you have ideas on how the system could if implemented in Infisical, would it effect any downstream features/systems, etc? Once you've got a general direction, you might need to test a some theories. This is where quick proof of concepts (POCs) come in handy, but don't get too caught up in the details. The goal of a POC is simply to validate a core idea or concept so you can get to the rest of your planning. 2. **Write the Doc** * Based on your research/discussions, write the design doc and include all relevant sections. Your goal is to come up with a convincing plan on why this is the correct why to solve the problem at hand. 3. **Assign Reviewers** * Ask a relevant engineer(s) to review your document. Their role is to identify blind spots, challenge assumptions, and ensure everything is clear. Once you and the reviewer are on the same page on the approach, update the document with any missing details they brought up. 4. **Team Review and Feedback** * Invite the relevant engineers to a design doc review meeting and give them 10-15 minutes to read through the document. After everyone has had a chance to review it, open the floor up for discussion. Address any feedback or concerns raised during this meeting. If significant points were overlooked during your initial planning, you may need to revisit the drawing board. Your goal is to think about the feature holistically and minimize the need for drastic changes to your design doc later on. 5. **Sales Approval (When Applicable)** * If your design document has notable sales implications, get explicit approval from the Sales team before proceeding to implementation. This includes features that: * Affect pricing models or billing structures * Impact customer commitments or contractual obligations * Change core product functionality that's actively being sold * Introduce new capabilities that could affect competitive positioning * Modify user experience in ways that could impact customer acquisition or retention * Share the design document with the Sales team to ensure alignment between the proposed technical approach and sales strategy, pricing models, and market positioning. # On call rotation Source: https://infisical.com/documentation/engineering/oncall Learn about call rotation at Infisical Infisical is mission-critical software, which means minimizing service disruptions is a top priority. To make sure we can react to any issues that come up, we have an on-call rotation that helps us to provide responsive, 24x7x365 support to our customers. Being part of the on-call rotation is an opportunity to deepen the understanding of our infrastructure, deployment pipelines, and customer-facing systems. Having this broader understanding of our system not only helps us design better software but also enhances the overall stability of our platform. ### On-Call Overview **Rotation Details** Each engineer will be on call once a week, from **Thursday to Thursday**, including weekends. During this time, the on-call engineer is expected to be available at all times to respond to service disruption alerts. While being on call, you are responsible for acting as the first line of defense for critical incidents and answering customer support inquiries. During your working hours, you must respond to all support tickets or involve relevant team members with sufficient context. Outside of working hours, you are expected to be available for any high-severity pager alerts and critical support inquiries by customers. ### Responsibilities While On Call During your working hours, prioritize the following in this order: 1. **Responding to Alerts:** * Monitor and respond promptly to all PagerDuty alerts. * Investigate incidents, determine root causes, and mitigate issues. * Refer to runbooks or any relevant documentation to resolve alarms quickly. 2. **Customer Support:** * Actively monitor all support inquiries in [**Pylon**](https://app.usepylon.com/issues) and respond to incoming tickets. * Debug and resolve customer issues. If you encounter a problem outside your expertise, collaborate with the relevant teammates to resolve it. This is an opportunity to learn and build context for future incidents. 3. **Sprint work:** * Since the current on-call workload does not require all of your working hours, you are expected to work on the sprint items assigned to you. If the on-call workload increases significantly, inform Maidul to make adjustments. 4. **Continuous Improvement:** * Take note of recurring patterns, inefficiencies, and opportunities where we can automate to reduce on-call burdens in the future. Outside of working hours, you are expected to be available and respond to any high-severity pager alerts and critical support inquiries by customers. ### Before You Get On Call * **Set Up PagerDuty:** Ensure you have the PagerDuty mobile app installed, configured, and notifications enabled for Infisical services. * **Access Required Tools:** Verify access to internal network, runbooks on Notion, [https://grafana.infisical.com](https://grafana.infisical.com/), access to aws accounts and any other access you may require. * **AWS Permissions:** You will be granted sufficient AWS permissions before the start of your on-call shift in case you need to access production accounts. ### At the End of Your Shift * Post an on-call summary in the Slack channel `#on-call-summaries` at the end of your shift using the following [template](/documentation/engineering/oncall-summery-template). Include notable findings, support inquires and incidents you encountered. This will helps the rest of the team stay in the loop and open discussions on how to prevent similar issues in the future. * Do a **handoff meeting/slack huddle** with the next engineer on call to summarize any outstanding work, unresolved issues, or any incidents that require follow-up. Ensure the next on-call engineer is fully briefed so they can pick up where you left off. **Include Maidul in this hand off call.** ### When to escalate an incident If you are paged for incident that you cannot resolve after attempting to debug and mitigate the issue, you should not hesitate to escalate and page others in. It’s better to get help sooner rather than later to minimize the impact on customers. * **Paging relevant teammate:** If you’ve tried resolving an issue on your own and need additional help, page another engineer who might be relevant through PagerDuty. * **Escalating to Maidul:** You can page Maidul at any time if you think it would be helpful. ### How to be successful on you rotations * Be on top of all changes that get merged into main. This will help you be aware of any changes that might cause issues. * When responding to support inquiries, double check your replies and make sure they are well written and typo-free. Always acknowledge inquiries quickly to make customers feel valued, and suggest a meeting or huddle if you need more clarity on their issues. * When customers raise support inquiries, always consider what could have been done to make the inquiry self-serve. Could adding a tooltip next to the relevant feature provide clarity? Maybe the documentation could be more detailed or better organized? * Document all of your notable support/findings/incidents/feature requests during on call so that it is easy to create your on call summary at the end of your on call shift. ### Resources * [Pylon for support tickets](https://app.usepylon.com/issues) * [AWS Portal](https://infisical.awsapps.com/start/) * [View metrics on Grafana](https://grafana.infisical.com/) * [Metabase](https://analytics.internal.infisical.com/) * [Run books](https://www.notion.so/Runbooks-19e534883d6b4621b8c712194edbb687?pvs=21) * [On call summary template](/documentation/engineering/oncall-summery-template) # Compensation Source: https://infisical.com/handbook/compensation This guide explains how various compensation processes work at Infisical. ## Probation period We are fully committed to ensuring that you are set up for success, but also understand that it may take some time to determine whether or not there is a long term fit between you and Infisical. The first 3 months of your employment with Infisical is a probation period. During this time, you can choose to end your contract with 1 week's notice. If we chose to end your contract, Infisical will pay you 4 weeks' pay, but usually ask you to finish on the same day. People in sales roles, such as Account Executives, have a 6 month probation period - this is to account for the fact that it can be difficult to establish whether or not someone is able to close contracts within their first 3 months, given sales cycles. Your manager is responsible for monitoring and specifically reviewing your performance throughout this initial period. If under-performance is a concern, or if there is any hesitation regarding the future at Infisical, this should be discussed immediately with you and your manager. ## Severance At Infisical, average performance gets a generous severance. If Infisical decides to end your contract after the first 3 months of employment have been completed, we will give you 10 weeks' pay. It is likely we will ask you to stop working immediately. If the decision to leave is yours, then we just require 1 month of notice. We have structured notice in this way as we believe it is in neither Infisical's nor your interest to lock you into a role that is no longer right for you due to financial considerations. This extended notice period only applies in the case of under-performance or a change in business needs - if your contract is terminated due to gross misconduct then you may be dismissed without notice. If this policy conflicts with the requirements of your local jurisdiction, then those local laws will take priority. # Hiring Source: https://infisical.com/handbook/hiring The guide to hiring at Infisical. Infisical is actively growing and we are hiring for many positions at any given time. This page describes some details of the hiring process we have. ## Strategy Infisical recruitment strategy relies on 100% inbound interest by default. Many of our team members have previously used Infisical or contributed to our [open source project](https://github.com/Infisical/infisical). This allows us to hire the best candidates who are most interested in working at Infisical. ## Geography Infisical is a remote-first company, and we have team members across the whole globe. That being said, there are some legal and accounting limitations that we need to abide by. As a result, we are currently only open to hiring from the following countries: * Australia * Austria * Belgium * Brazil * Canada * Chile * Costa Rica * Denmark * Finland * France * Germany * India * Ireland * Israel * Italy * Japan * Kenya * Latvia * Luxembourg * Mexico * Netherlands * New Zealand * Philippines * Poland * Portugal * Singapore * South Africa * South Korea * Spain * Switzerland * Sweden * UAE * United Kingdom * United States # Meetings Source: https://infisical.com/handbook/meetings The guide to meetings at Infisical. ## "Let's schedule a meeting about this" Being a remote-first company, we try to be as async as possible. When an issue arises, it's best to create a public Slack thread and tag all the necessary team members. Otherwise, if you were to "put a meeting on a calendar", the decision making process will inevitable slow down by at least a day (e.g., trying to find the right time for folks in different time zones is not always straightforward). In other words, we have almost no (recurring) meetings and prefer written communication or quick Slack huddles. ## Daily Standup Towards the end of each day, everyone on the Engineering and GTM teams should document their progress in the respective Slack standup channels, ensuring the team stays informed of important updates. On the engineering side, if you are working on something that takes longer than 1-2 days, please add an estimated completion date (ECD) for that item in standup specifying when it will be pushed to production. ## Weekly All-hands All-hands is the single recurring meeting that we run every Monday at 8:00am PT. Typically, we would discuss everything important that happened during the previous week and plan out the week ahead. This is also an opportunity to bring up any important topics in front of the whole company (but feel free to post those in Slack too). # Onboarding Source: https://infisical.com/handbook/onboarding This guide explains the onboarding process for new joiners at Infisical. Welcome to Infisical! The first few days of every new joiner are going to be packed with learning lots of new information, meeting new teammates, and understanding Infisical on a deeper level. Plus, our team is remote-first and spread across the globe (from San Francisco to Philippines), so having a great onboarding experience is very important for the new joiner to feel part of the team and be excited about what we're doing as a company. ## Onboarding buddy Every new joiner at Infisical will have an onboarding buddy—a teammate in a similar time zone who’s there to help you settle in. They are your go-to person for any questions that come up. Of course, everyone on the team is happy to help, but it’s always nice to have a dedicated person who’s there for you. Don’t hesitate to reach out to your buddy if you’re unsure about something or need a hand! Your onboarding buddy will set up regular syncs for your first two months—ideally at least 2-3 times a week. If you’re joining the engineering team, your onboarding buddy will: 1. Walk you through Infisical’s development process and share any best practices to keep in mind when tackling tickets. 2. Be your go-to person if you are blocked or need to think through your sprint task. 3. Help you ship something small on day one! ## Onboarding Checklist Your hiring manager will send you an onboarding checklist doc for your first day. # Infisical Company Handbook Source: https://infisical.com/handbook/overview This handbook explains how we work at Infisical. Welcome! This handbook explains how we work and what we stand for at Infisical. Given that Infisical's core is open source, we decided to make this handbook also availably publicly to everyone. You can treat it as a living document as more pages and information will be added over time. # Spending Money Source: https://infisical.com/handbook/spending-money The guide to spending money at Infisical. Fairly frequently, you might run into situations when you need to spend company money. # Expensing Meals As a perk of working at Infisical, we cover some of your meal expenses. **HQ team members**: meals and unlimited snacks are provided **on-site** at no cost. **Remote team members**: a food stipend is allocated based on location. # Trivial expenses We don't want you to be slowed down because you're waiting for an approval to purchase some SaaS. For trivial expenses – **Just do it**. This means expenses that are: 1. Non-recurring AND less than \$75/month in total. 2. Recurring AND less than \$20/month. Please spend money in a way that you think is in the best interest of the company. # Travel If you need to travel on Infisical’s behalf for in-person onboarding, meeting customers, and offsites, again please spend money in the best interests of the company. We do not pre-approve your travel expenses, and trust team members to make the right decisions here. Some guidance: * Please find a flight ticket that is reasonably priced. We all travel economy by default – we cannot afford for folks to fly premium or business class. Feel free to upgrade using your personal money/airmiles if you’d like to. * Feel free to pay for the Uber/subway/bus to and from the airport with your Brex card. * For business travel, Infisical will cover reasonable expenses for breakfast, lunch, and dinner. * When traveling internationally, Infisical does not cover roaming charges for your phone. You can expense a reasonable eSIM, which usually is no more than \$20. Note that this only applies to business travel. It is not applicable for personal travel or day-to-day commuting. # Equipment Infisical is a remote first company so we understand the importance of having a comfortable work setup. To support this, we provide allowances for essential office equipment. ### 1. Desk & Chair Most people already have a comfortable desk and chair, but if you need an upgrade, we offer the following allowances. While we're not yet able to provide the latest and greatest, we strive to be reasonable given the stage of our company. **Desk**: \$150 USD **Chair**: \$150 USD ### 2. Laptop Each team member will receive a company-issued Macbook Pro before they start their first day. ### 3. Notes 1. All equipment purchased using company allowances remains the property of Infisical. 2. Keep all receipts for equipment purchases and submit them for reimbursement. 3. If you leave Infisical, you may be required to return company-owned equipment. Please note that we're unable to offer a split payment option where the Infisical pays half and you pay half for equipment exceeding the allowance. This is because we don't yet have a formal HR department to handle such logistics. For any equipment related questions, please reach out to Maidul. # Brex We use Brex as our primary credit card provider. Don't have a company card yet? Reach out to Maidul. ### Budgets You will generally have multiple budgets assigned to you. "General Company Expenses" primarily covers quick SaaS purchases (not food). Remote team members should have a "Lunch Stipend" budget that applies to food. If your position involves a lot of travel, you may also have a "Travel" budget that applies to expenses related to business travel (e.g., you can not use it for transportation or food during personal travel). ### Saving receipts Make sure you keep copies for all receipts. If you expense something on a company card and cannot provide a receipt, this may be deducted from your pay. You should default to using your company card in all cases - it has no transaction fees. If using your personal card is unavoidable, please reach out to Maidul to get it reimbursed manually. ### ​Need a one-off budget increase? You can do this directly within Brex - just request the amount and duration for the relevant budget in the app, and your hiring manager will automatically be notified for approval. # Training For engineers, you’re welcome to take an approved Udemy course. Please reach out to Maidul. For the GTM team, you may buy a book a month if it’s relevant to your work. # Talking to Customers Source: https://infisical.com/handbook/talking-to-customers The guide to talking to customers at Infisical. Everyone at Infisical talks to customers directly. We do this for a few reasons: 1. This helps us understand the needs of our customers and build the product they want. 2. This speeds up our iteration cycles (time from customer feedback to product improvements). 3. Our customers (developers) are able to talk directly to the best experts in Infisical (us) – which improves their satisfaction and success. ## Customer Communication Etiquette 1. When talking to customers (no matter whether it's on Slack, email, or any other channel), it is very important to use proper grammar (e.g., no typos, no missed question marks) and minimal colloquial language (no "yeap", "yah", etc.). 2. At the time of a crisis (e.g., customer-reported bug), it is very important to communicate often. Even if there is no update yet, it is good to reach out to the customer and let them know that we are still working on resolving a certain issue. ## Community Slack Unfortunately, we are not able to help everyone in the community Slack. It is OK to politely decline questions about infrastructure management that are not directly related to the product itself. # Time Off Source: https://infisical.com/handbook/time-off The guide to taking time off at Infisical. We offer eveyone at Infisical unlimited time off. We care about your results, not how long you work. To request time off, just submit a request in Rippling and let Maidul know at least a week in advance. ## National holidays Since Infisical's team is globally distributed, it is hard for us to keep track of all the various national holidays across many different countries. Whether you'd like to celebrate Christmas or National Brisket Day (which, by the way, is on May 28th), you are welcome to take PTO on those days – just let Maidul know at least a week ahead so that we can adjust our planning. ## Winter break Every year, Infisical team goes on a company-wide vacation during winter holidays. This year, the winter break period starts on December 21st, 2024 and ends on January 5th, 2025. You should expect to do no scheduled work during this period, but we will have a rotation process for [high and urgent service disruptions](https://infisical.com/sla).