<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: thejeremiahtillman</title>
    <description>The latest articles on DEV Community by thejeremiahtillman (@thejeremiahtillman).</description>
    <link>https://dev.to/thejeremiahtillman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2698291%2F49c3ce87-bb46-40a7-b503-a177b4436411.jpeg</url>
      <title>DEV Community: thejeremiahtillman</title>
      <link>https://dev.to/thejeremiahtillman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thejeremiahtillman"/>
    <language>en</language>
    <item>
      <title>Treat password reset like a temporary sign-in</title>
      <dc:creator>thejeremiahtillman</dc:creator>
      <pubDate>Sat, 28 Nov 2026 20:53:54 +0000</pubDate>
      <link>https://dev.to/thejeremiahtillman/treat-password-reset-like-a-temporary-sign-in-168o</link>
      <guid>https://dev.to/thejeremiahtillman/treat-password-reset-like-a-temporary-sign-in-168o</guid>
      <description>&lt;p&gt;&lt;a href="https://writing.jeremiahtillman.com/treat-password-reset-like-a-temporary-sign-in" rel="noopener noreferrer"&gt;Originally published on Quest Log&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A person who forgets a password is asking your app for a new way into an existing account. That makes resetting a password an authentication decision. The email template, form, and confirmation page matter because they carry that decision from one system to the next.&lt;/p&gt;

&lt;p&gt;Picture a customer who needs to get into a billing portal before an invoice is due. They start at the sign-in screen, request a link, and open it on a phone. Maybe they finish there. Maybe they switch to a laptop. The product needs to help them finish without leaving an open route into the account for whoever finds an old message or a leaked link later.&lt;/p&gt;

&lt;p&gt;Think in terms of a temporary grant. It belongs to one account, lets the holder do one thing, and has a point at which it stops working. Once you define those properties, you can follow the grant through issuance, delivery, redemption, and cleanup. That gives the team a design it can test, including the parts that happen outside the browser. &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP forgot password guidance&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide which event changes the account
&lt;/h2&gt;

&lt;p&gt;The first form accepts an email address and acknowledges the request. Opening that form, filling it in, and clicking Send can all happen without the account holder’s involvement. Leave the current password and sessions alone at this stage. Otherwise someone could repeatedly send reset requests to interrupt a person who is using the app.&lt;/p&gt;

&lt;p&gt;The meaningful change comes later, when the server receives a valid grant and accepts a new password. The grant proves control of the designated recovery channel at the time of use. The service should check its purpose and validity before it changes anything. Design the confirmation screen around that event. A message that says “your password has been changed” should reflect a committed change, even when the email delivery system is slow or down.&lt;/p&gt;

&lt;p&gt;An email address can point at an account whose sign-in policy does not allow local passwords. A workspace might require its own identity provider, for example. Decide early which accounts can use local recovery, which must use an external provider, and what happens to accounts marked inactive. If a recovery feature can create a new way to sign in for an account that previously followed a more restrictive policy, the recovery feature has changed the organization’s authentication policy.&lt;/p&gt;

&lt;p&gt;It helps to draw the flow in five verbs. Request, issue, deliver, redeem, notify. Attach a question to each one. Who can make a request? When may the server issue a grant? Where does delivery go? What exactly can redemption change? Who should know after it succeeds? You can review the flow with support and engineering before the first template lands.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the first response consistent
&lt;/h2&gt;

&lt;p&gt;An anonymous caller should get a useful reply whether the email they entered belongs to a recoverable account or not. Something like “If that address can receive a reset link, we’ll send one” tells the person what to do next without publishing an account directory one form submission at a time.&lt;/p&gt;

&lt;p&gt;Check what the person can observe beyond the sentence on screen. The response status, redirect, and time to complete can vary even when the text matches. A design that queues delivery work can keep the initial response separate from mail provider timing. Measure the user-visible path with synthetic accounts. Aim for consistent enough handling that an observer cannot easily distinguish branches from response behavior.&lt;/p&gt;

&lt;p&gt;Normalize input to match your sign-in rules. The email address should be handled consistently across login, account creation, and recovery. If your product permits multiple identities or different domains, avoid importing assumptions from one provider into a global normalization rule. Your job is to identify the account according to the rules you already use everywhere else.&lt;/p&gt;

&lt;p&gt;Use rate limits around requests and delivery. A single caller should not be able to fill someone else’s mailbox with reset messages. A person sharing a network with many others should still have a reasonable chance of completing recovery. Consider limits by account or normalized destination and by caller context, then use safe operational metrics to see how those limits affect people. Short-term throttling should never hand anonymous callers a reliable way to lock users out of their accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make a grant the database can reason about
&lt;/h2&gt;

&lt;p&gt;Use a value from a cryptographically secure random generator for an email-based reset token. Decide how long it is valid and store enough information to identify the account, its purpose, and whether it has been used. Store a digest of a high-entropy token where your design permits it. That way a database record about a reset grant doesn’t also contain the usable secret.&lt;/p&gt;

&lt;p&gt;Make expiry enforceable at redemption. Cleanup can delete old entries later, but a delayed cleanup job should never stretch the time an old link works. Check the grant’s state in the code that accepts the new password. Include account eligibility if that can change between issuance and use.&lt;/p&gt;

&lt;p&gt;Decide what to do if people request several links. Some products replace the earlier grant. Others allow more than one outstanding grant and invalidate the rest once one succeeds. Write down the behavior and explain it in the product when people need it. An email can arrive out of order. If only the latest link works, the text on an expired-link page can help the person use the newest message or request another link.&lt;/p&gt;

&lt;p&gt;Use a single authoritative rule for when a grant is consumed. Double clicks, two browser tabs, and network retries are all normal. If two requests arrive together, only one should be able to use the same grant to change the password. Updating the password and consuming the grant in the same transaction is one way to make the outcome clear. Test the failure case too. If the update fails before it commits, decide whether the person can try again with the same grant or needs a new one, then make that behavior consistent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep delivery boring
&lt;/h2&gt;

&lt;p&gt;Send recovery instructions to the channel your account already trusts for that purpose. Construct the reset URL from configuration for the app’s trusted public origin. Include enough information in the message for people to recognize the account and understand what they requested. Keep the subject and body familiar and free of sensitive details.&lt;/p&gt;

&lt;p&gt;A reset message is a bearer of temporary power. Think about where that secret goes after it leaves the app. The message might pass through a mail provider, a link rewriting service, a security scanner, and more than one browser. Analytics and error reporting can also record URLs if nobody tells them which pages need special handling. Keep reset pages free of unnecessary third-party requests and keep tokens out of logs and monitoring events. Consider a restrictive referrer policy so browsers do not pass the reset URL along when leaving the page. &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP forgot password guidance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It’s common for email clients and security tools to open links before the person does. Design the initial load to display the reset form or begin a protected session. Reserve the password change and final grant consumption for an explicit submission. That saves support calls when a protected corporate mailbox visits the link a few seconds after delivery.&lt;/p&gt;

&lt;p&gt;Where accounts can receive messages in multiple languages, use the account’s existing language preference if you can do so without changing the anonymous response. The recipient should see a clear link, an expiration expectation, and a sentence explaining how to proceed if they did not request a reset. Give them a standard way to find support from the product itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide which sessions survive
&lt;/h2&gt;

&lt;p&gt;Once the password changes, determine what happens to existing sessions. Some providers terminate them. Others offer a choice, depending on the nature of the recovery and the account. The service should make a deliberate decision, especially if one reason for using recovery is concern that someone else can already sign in.&lt;/p&gt;

&lt;p&gt;Consider what “session” means in your product. A browser cookie, a mobile refresh token, and a long-lived integration credential may have separate lifetime rules. An organization could depend on an integration that has its own credentials and owner. Decide which credentials represent the recovering user, which belong to an organization, and which require a separate review. Tell users what they can expect to happen after the reset.&lt;/p&gt;

&lt;p&gt;Keep multifactor recovery separate. A forgotten password and a lost second factor are different problems with different evidence. A password reset should preserve the account’s existing multifactor requirements. If your product supports backup codes, administrator recovery, or identity verification, document each flow and assign it its own permission checks. Treat “I lost my phone and my password” as a case to plan before somebody on a support shift is asked to improvise.&lt;/p&gt;

&lt;p&gt;Redirect a completed recovery to the normal sign-in flow unless your product has a specific reason to establish a session. Sending the user through the normal sign-in sequence helps the app apply the same multifactor and organization policy that it applies everywhere else. Keep the path obvious so the person can get back to the invoice or task they started with.&lt;/p&gt;

&lt;h2&gt;
  
  
  Send a notice after the change commits
&lt;/h2&gt;

&lt;p&gt;A password-change notice helps an account holder recognize a change they didn’t expect. Send it after the account change succeeds. Keep it plain and include a way to reach support through a known route. Never send the new password in the notification.&lt;/p&gt;

&lt;p&gt;Think about delivery failure independently of the password update. A temporary email outage shouldn’t undo a committed change. If you use a background job to send the notice, let it retry without changing the password again. Record enough information to tell support whether the account update happened and whether the notice was sent.&lt;/p&gt;

&lt;p&gt;What if the user never asked for recovery and gets a request email? That email should explain that the request alone leaves the account unchanged. What if they get a completed-change notice? That needs a different instruction because the account state is different. Give support a clear distinction between those cases in its procedures, too.&lt;/p&gt;

&lt;p&gt;A support operator will sometimes want to help by opening the user’s reset link. Give staff a way to confirm delivery state without seeing or redeeming a secret. If there is a separate assisted recovery workflow, give it a clear policy and its own audit trail. A person with access to delivery logs shouldn’t inherit the ability to sign in as customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test with the problems users bring you
&lt;/h2&gt;

&lt;p&gt;Start with a person who can request a link, open it, and set a new password. Confirm the sign-in flow accepts the new password and applies the same second-factor policy as before. Then check the surrounding cases where bugs usually hide.&lt;/p&gt;

&lt;p&gt;Use synthetic accounts to test the response for a valid address, a missing address, and an ineligible account. Check that the visible results are consistent. Open the same link twice after a successful submission and confirm the second attempt leaves the account unchanged. Open a link after expiry. Request multiple links, switch between them, and check that the outcome matches the product’s stated behavior.&lt;/p&gt;

&lt;p&gt;Change the account’s status while a reset is outstanding. Maybe the organization changes the sign-in method or the account is disabled. The grant should still be bound to its original purpose and should fail when the account no longer meets the recovery policy. Add a test for two submissions that arrive close together so the one-time guarantee is tested where it matters.&lt;/p&gt;

&lt;p&gt;Include tests for message delivery. Capture mail in a test inbox, confirm the origin of the URL, and examine what the email contains. Trigger the link’s initial load without submitting a new password. Confirm the account still has the same credentials and that a person can subsequently finish recovery.&lt;/p&gt;

&lt;p&gt;Look at what your services logged. Search test logs for a recognizable token value or the new password. A successful test says little about confidentiality if the same run handed the grant to every system in the request path. Keep the tests safe to run without sending real recovery mail or changing anyone’s accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give operators evidence they can use
&lt;/h2&gt;

&lt;p&gt;Track counts of requests, queued messages, delivery outcomes, and completed resets. Look for abrupt changes after a deployment. A jump in requests followed by a drop in completion might mean email is delayed, the link origin changed, or a page has an accessibility problem. Separate those stages so you can tell what changed.&lt;/p&gt;

&lt;p&gt;Use reason codes for private diagnosis. “Grant expired” and “account requires organization sign-in” are useful to distinguish inside the service. Keep the anonymous response general where revealing the difference would expose account details. Restrict log access and retention in line with the data the events contain.&lt;/p&gt;

&lt;p&gt;Build a report around what the person is trying to do. If someone says the link doesn’t work, support should be able to confirm whether the service sent a message, whether delivery is delayed, and what the normal next step is. They should have a clear route for cases where the person no longer controls the recovery channel. The normal reset form can’t prove anything about an email inbox the customer lost months ago.&lt;/p&gt;

&lt;p&gt;If the mail provider is down, decide how long pending deliveries should wait. An email with a grant that expires before delivery is frustrating and can lead to several follow-up requests. A delivery worker can abandon expired grants and tell operators about the delay. Think through whether recovery messages should expire from the queue as well as from the database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the recovery story short enough to repeat
&lt;/h2&gt;

&lt;p&gt;The flow is easy to explain once the decisions are explicit. Someone asks for help. The app sends a temporary grant through a channel the account already trusts. The server checks that the grant can still be used, accepts a new password once, and sends notice after the change. Then the person signs in under the same account policy they had before.&lt;/p&gt;

&lt;p&gt;Use that explanation in code review. When someone adds a new option or puts a new service in the flow, ask which part of the story it touches. If a change introduces a way to find accounts, extends how long a grant works, or changes the account before redemption, make that decision visible before the release. The feature should remain explainable when a tired customer is trying to get back to their invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate recovery from a request to change the recovery address
&lt;/h2&gt;

&lt;p&gt;A support team will eventually hear from a customer whose old inbox no longer works. The customer may know their previous password or have a copy of a past invoice, but the normal password reset flow depends on access to the inbox. Give that case its own process with evidence and decision-making authority appropriate to the account. A rep who can trigger a reset email should not necessarily be able to redirect where that email goes.&lt;/p&gt;

&lt;p&gt;Treat changing a recovery address as its own security event when the customer is signed in, too. Ask what evidence your account policy needs before replacing a trusted channel. Consider whether to notify the old channel and whether a recent change affects other sensitive actions. If an organization owns the account, its administrator might be responsible for the email identity rather than the person currently signed in.&lt;/p&gt;

&lt;p&gt;Write the support instructions for the uncomfortable case. The person requesting help is frustrated, their invoice is due, and somebody wants to accept a shortcut. Make clear which evidence support can request, where they can verify it, and who can authorize an exception. Give support a way to escalate without asking for passwords or forwarding private screenshots through unrelated systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check that the recovery form works under pressure
&lt;/h2&gt;

&lt;p&gt;Try the interface with keyboard navigation and a screen reader. A person who has just lost access to a service is unlikely to spend much time deciphering an error that only appears as a color change. Give the email field a clear name. Put validation where the person can find it, and announce the response when the request completes. The response should make sense for someone who started recovery from a phone and will finish it on a laptop.&lt;/p&gt;

&lt;p&gt;Do the same with the form that sets the password. Show the password requirements early enough that people can use them. Allow ordinary paste and autofill behavior so password managers can do their job. Preserve the relevant guidance when validation fails. If the grant has expired, give people a short path back to the request form without making them guess whether the service changed the password.&lt;/p&gt;

&lt;p&gt;Think about partial failures from the user’s side. The browser might lose its connection after the service accepts the new password. The person could see a failure message even though the update committed. A retry can safely report that the grant is already used, then point to normal sign-in and a fresh reset if necessary. The product can explain the next action without attempting the same account change a second time.&lt;/p&gt;

&lt;p&gt;Keep a plain-language test alongside the engineering checks. Hand a colleague a synthetic account and tell them they’ve forgotten the password. Observe where they hesitate. Their questions can tell you which part of the flow needs clearer words or a better default. The goal is to help them regain access while every service still honors the scope of the recovery grant.&lt;/p&gt;

&lt;p&gt;A recovery launch also needs a way to pause delivery while the team investigates a problem. Decide who can do that and what help remains available when email delivery stops. If you have several tenants, determine whether the pause applies to one or all of them. Rehearse resuming service with a synthetic account. Confirm that pending mail follows the expiry policy and that normal sign-in still works. Those checks give the person on call a clear way to limit disruption while protecting account access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Action checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;   Return the same public response for eligible and ineligible accounts.&lt;/li&gt;
&lt;li&gt;   Set an expiry for each single-use recovery grant.&lt;/li&gt;
&lt;li&gt;   Keep reset tokens out of logs and analytics.&lt;/li&gt;
&lt;li&gt;   Require explicit submission before changing the password.&lt;/li&gt;
&lt;li&gt;   Test expired grants, concurrent submissions, and repeated link visits.&lt;/li&gt;
&lt;li&gt;   Check session handling and send a notice after the change commits.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>authentication</category>
      <category>security</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Who gets to open this record?</title>
      <dc:creator>thejeremiahtillman</dc:creator>
      <pubDate>Sat, 28 Nov 2026 12:55:48 +0000</pubDate>
      <link>https://dev.to/thejeremiahtillman/who-gets-to-open-this-record-2f0g</link>
      <guid>https://dev.to/thejeremiahtillman/who-gets-to-open-this-record-2f0g</guid>
      <description>&lt;p&gt;&lt;a href="https://writing.jeremiahtillman.com/who-gets-to-open-this-record" rel="noopener noreferrer"&gt;Originally published on Quest Log&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A support ticket can belong to a customer, sit in an agent’s queue, and show up in a supervisor’s report. All three people refer to the same ticket. Give them the same permissions and you’ve already made a design decision, even if nobody wrote it down. The customer might see an internal note. The agent might download a report that includes another team’s tickets. The supervisor might be able to edit entries that should be read-only.&lt;/p&gt;

&lt;p&gt;The rule the server needs is straightforward to say. Which account can take which action on which record, under what conditions? The work is making that answer consistent across the product. A ticket has a detail page, an attachment, an export, and a search result. Each path can disclose some part of the record. Each needs an answer to the same authorization question.&lt;/p&gt;

&lt;p&gt;When the server relies on a record identifier without checking the caller’s permission on that record, the resulting weakness is often called insecure direct object reference, or IDOR. The identifier could be a number, a filename, or a random string. The useful question for a developer is what the server does after it receives that identifier. &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP IDOR prevention&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a policy people can argue about
&lt;/h2&gt;

&lt;p&gt;Imagine a support product that serves several organizations. A customer can read tickets they opened and add public replies. An agent can work tickets in a queue they belong to. A supervisor can export records for teams they supervise. The product also retains an archive, where a former team member might still be the named author of a comment.&lt;/p&gt;

&lt;p&gt;Those are sample rules. If your product uses a different policy, write that down first. A user interface mockup can tell you that a button exists. It rarely tells you whether a supervisor can export a ticket after the customer closes their account. The engineering team may be able to ship that behavior without a product decision, but someone will still have to explain it later.&lt;/p&gt;

&lt;p&gt;A small table works well here. Put actions down the left side and user relationships across the top. Include the ticket owner, another customer in the same organization, an agent in the assigned queue, an agent elsewhere, and an administrator. Fill each cell with a decision or an explicit question. Separate actions that look similar on screen but have different effects.&lt;/p&gt;

&lt;p&gt;For example, “view ticket” might mean view the subject, view the public messages, or view the entire record with staff notes. Treat those as different outcomes. “Export tickets” should specify the records and fields included. When someone says “the supervisor can view everything,” ask whether that includes messages from other organizations and attachments the privacy team has placed under restriction. Now you have a policy you can test.&lt;/p&gt;

&lt;p&gt;There’s a similar distinction between a role and a relationship. Two people may both be agents. One works a ticket because it belongs to their queue. The other has no reason to open it. A route that checks for an agent role can still get this wrong if it never checks the queue. Scope a permission to the relevant relationship and record state, and document where those facts come from.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give the server a trustworthy account and scope
&lt;/h2&gt;

&lt;p&gt;Start with the identity the server verified. Load the relevant memberships or delegations from a trusted source, then apply the rule for the action. If the product lets a user switch organizations, confirm their membership in the requested organization before using it as a scope. A label in a URL or a field sent by the browser can tell the server which organization the person selected. The server has to decide whether that selection is permitted.&lt;/p&gt;

&lt;p&gt;The query can often do part of the work. A customer view can look up the requested ticket within the tickets that customer is allowed to read. An agent list can start with the queues assigned to the agent. This pattern makes the scope visible in the data access path and avoids retrieving a broad set of records just to discard most of them.&lt;/p&gt;

&lt;p&gt;Some permissions are too involved for a single lookup. A delegated reviewer might have access until a deadline, for instance, while a legal hold might change what can be exported. A shared policy function can keep these conditions in one place. The contract should say which identity, action, and record facts it expects. Decide how a missing membership or unavailable policy dependency behaves. A read failure should leave the protected operation denied, with enough internal context for the team to investigate.&lt;/p&gt;

&lt;p&gt;A random ID reduces the chance that people can guess references. It also lets you publish links without exposing a simple record sequence. Links can still be copied, forwarded, or included in a report. The server should reach the same permission decision whether the ID is obvious or opaque. &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP authorization guidance&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow the ticket into search and export
&lt;/h2&gt;

&lt;p&gt;Search is a good place to look for gaps. A result can disclose the subject of a ticket even when its detail page denies access. A count can reveal that a restricted ticket exists. An autocomplete response might include a name that never appears in the full search page. Define what a caller may search before the query runs, then make sure facets, summaries, and suggestions use the same scope.&lt;/p&gt;

&lt;p&gt;Pagination deserves the same attention. If the first page filters by queue, the second page should carry the same authorization context. A cursor can describe where to continue. It should never expand the set of records a caller can see. If access changes between pages, decide how the response should behave and document that choice in the tests.&lt;/p&gt;

&lt;p&gt;Consider a team export that runs in the background. The request to start the export needs an authorization check. The worker needs enough trusted context to generate the right subset of rows. The download also needs a policy. A team member might be allowed to request an export on Monday and lose access before the file is ready. Decide what the service should do at each step, including when to delete the artifact.&lt;/p&gt;

&lt;p&gt;File links are easy to treat as a detail because they often come from a storage service outside the app. A private attachment still needs the policy that protects the record. If you grant temporary download access, keep the duration and permissions aligned with the sensitivity of the file. Limit where the link is exposed and avoid writing it into general logs. For files that require prompt revocation, consider whether the download needs to go through a service that can check current access.&lt;/p&gt;

&lt;p&gt;Caching can produce a similar separation. A response cached under a ticket ID alone is a poor fit if the response includes staff notes for an agent and customer-visible messages for someone else. Review which parts of the response are private and who can reuse them. Then test what happens when users with different permissions view the same record in sequence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make update rules as explicit as read rules
&lt;/h2&gt;

&lt;p&gt;A user who can read a ticket may be allowed to edit only their own reply. An agent who can change the ticket status may need a separate permission to move it to a different queue. When a move changes who can read the ticket, the destination deserves its own policy check.&lt;/p&gt;

&lt;p&gt;The fields matter as much as the route. Suppose a customer updates the display name on a reply. The handler should know exactly which fields it accepts and apply a rule for each operation that matters. Sending an entire client-supplied object to a generic update helper makes it harder to see which decisions the server has made. Keep the accepted data small enough that a reviewer can verify what changes.&lt;/p&gt;

&lt;p&gt;Batch operations are another place where interfaces hide the decision. If someone closes a list of tickets and one ticket falls outside their queue, will the whole operation fail or will the permitted records close? Either behavior can be reasonable if users know what happened. Apply the policy to every selected record and choose the outcome deliberately. Be careful about error messages that disclose information about records the user cannot see.&lt;/p&gt;

&lt;p&gt;The timing of the check matters when ownership or queue assignment can change. Imagine the server checks that an agent owns the ticket, then the ticket moves to another queue before the write completes. The application should preserve the intended permission at the point of the write. A transaction, conditional write, or check at the data layer may be appropriate. The right choice depends on how the application stores ownership and how it coordinates updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give permission changes a life cycle
&lt;/h2&gt;

&lt;p&gt;An access rule has a beginning and an end. A contractor joins a support queue for a weekend. An agent moves to a different team. An organization closes its account and needs a copy of its own records. Consider those transitions while deciding what should happen to each route.&lt;/p&gt;

&lt;p&gt;Start with the records and permissions that outlive a session. If a person loses membership, what happens to a saved browser page, a queued export, or a link previously issued for an attachment? Those three paths may have different answers. A page can require a new request to show fresh data. A queued export can check whether it can proceed. A link already handed to a user might need to expire or be revoked through a separate mechanism. Write down which behavior you intend for each.&lt;/p&gt;

&lt;p&gt;Access sometimes depends on what was true when something happened. For example, a supervisor may need to read reports from a period when they supervised a team. A different product may restrict access to whoever supervises the team now. Both policies can make sense. Store enough history to implement the one you choose, and make the expected behavior clear to the people who administer it.&lt;/p&gt;

&lt;p&gt;There’s also a practical question about administrative access. Someone on the support team eventually needs to fix an account assignment or investigate a misplaced record. Give them a specific administrative action with a reason and an audit entry. A broad override that silently makes every lookup succeed is difficult to explain and easy to carry into code paths where it has no place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write tests that describe the decision
&lt;/h2&gt;

&lt;p&gt;A test called “returns 200” tells you what happened. A test called “assigned agent can close a ticket in their queue” tells you what the team intended. Name tests after the permission and use fixtures with meaningful relationships.&lt;/p&gt;

&lt;p&gt;Start with two customers in one organization, a customer in another, two agents in different queues, and a team supervisor. Add a ticket with a public reply, a staff note, and an attachment. Use the fixtures to exercise the detail view, list, search, update, export, and download paths you ship. Pick the tests that represent different policy decisions. You don’t need every conceivable combination to make the main boundary clear.&lt;/p&gt;

&lt;p&gt;For each important permission, include a test that should pass and one that should fail. On a denied write, confirm the protected record stayed unchanged. On a denied read, confirm the response excludes protected fields or file content. On an export, examine the generated rows and columns. An allowed response can still contain too much.&lt;/p&gt;

&lt;p&gt;Add a few state changes. Remove the agent from the queue and confirm their next action reflects the change. Move a ticket and check which team can work it afterward. Close a customer account and exercise the policy the product team chose for old records. The fixtures help catch regressions when someone flattens a policy into a convenient role check months later. &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Regression_Testing_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP authorization regression testing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A fast unit test can cover the policy function. An integration test can show that a real route calls it, uses the correct identity, and applies the expected scope. Both are useful because they answer different questions. Keep at least one test at the boundary where someone can get the data. If all the tests invoke a helper in isolation, a new route can omit the helper and still pass the suite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide what to tell the caller
&lt;/h2&gt;

&lt;p&gt;A denial message should fit the application. In a staff-facing system, a person may already know a ticket exists and need to request access. In a customer-facing system, revealing that another customer's ticket exists may disclose information by itself. Decide which cases can acknowledge the record and which should return the same result as a missing record. Apply that choice to related routes and error types.&lt;/p&gt;

&lt;p&gt;The user experience matters here. A person who loses access to a queue may assume the site is broken if their saved links all stop working. A useful general message can point them toward their own ticket list or support. Give the support team an internal reference they can look up where appropriate. Keep the message free of record details that the current caller may not see.&lt;/p&gt;

&lt;p&gt;Logs need different care. The team investigating an authorization incident needs the action, decision, time, and relevant identifiers. It rarely needs the complete ticket text or a signed attachment URL. Record a stable reason code so you can distinguish “no membership” from a failed policy dependency. Limit who can read the logs and give sensitive identifiers the same thought you’d give them anywhere else.&lt;/p&gt;

&lt;p&gt;A spike in denials can mean many things. A customer might have bookmarked a stale link. A release might have changed an organization assignment. Look for patterns and deployment context before treating a denial count as evidence of an incident. The first useful question is whether the policy behaved as designed. After that, you can ask why so many people reached the boundary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review one path end to end
&lt;/h2&gt;

&lt;p&gt;Pick a feature that already exists. Say the support team wants to add a CSV export to the queue page. Walk through it before opening the pull request. The export request arrives under the current account. The server checks whether the account has export permission for the team. The worker queries the records under the same team scope and emits the allowed columns. A successful job writes a private file, and the download checks the current permission or enforces the limited grant your product chose.&lt;/p&gt;

&lt;p&gt;Now change the scenario. The team membership expires before download. The queue is empty. The job receives the wrong team context. The supervisor starts a report while a ticket moves to another queue. Ask what the product promises in each case. You may discover that you need to record the scope at submission time, check it again at download time, or describe the report as a snapshot taken at generation. That choice belongs in the feature design.&lt;/p&gt;

&lt;p&gt;Before merging, ask someone who didn’t write the handler to trace the same flow. Have them point to the exact lines that determine the caller, scope the records, and authorize the file. If either of you has to infer which policy is active, make it visible in the code or test. A clear policy pays off most when the feature grows and the original author is working on something else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the route that hands out the data
&lt;/h2&gt;

&lt;p&gt;If the application already has a mix of older and newer features, choose a narrow first pass. Start with a sensitive object and list every place the app returns or changes it. Draw that list from routes, exports, background jobs, and storage links. Then write down the policy for each action and mark which paths already enforce it. The list puts the work in order without forcing a rewrite of every controller at once.&lt;/p&gt;

&lt;p&gt;Fix gaps in a way you can verify. Add the test for the intended behavior, make the scoped lookup or policy call explicit, and review the output itself. If the first fix reveals another route with the same problem, decide whether the shared policy can cover it cleanly. Reuse the part that represents the actual permission. Leave response formatting or route-specific behavior where it belongs.&lt;/p&gt;

&lt;p&gt;When you finish the first object, use what you learned to review the next one. The hardest permission problems often turn up where teams give the same word different meanings. “Owner” might mean requester in the support app and invoice payer in billing. Carry the method into the next area and write the new policy in that area’s terms. A record ID gives you a place to look. The rule for the action tells you what you can do when you get there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make policy changes reviewable
&lt;/h2&gt;

&lt;p&gt;Put the record rule in the pull request description when a change affects access. A reviewer should be able to tell whether it adds a route to an existing permission or creates a new permission. If the export starts including internal notes, make that visible as a policy change. Someone reviewing a CSV formatter may otherwise assume the shape of the output is the only thing under discussion.&lt;/p&gt;

&lt;p&gt;When a feature changes who can see older records, include the transition in the decision. If customers can now invite coworkers into a shared account, ask whether those coworkers should automatically see existing tickets and attachments. The choice may depend on what customers were told when they opened the tickets. You may need a migration, a separate setting, or a product decision about the records the feature can cover.&lt;/p&gt;

&lt;p&gt;Leave the decision where future reviewers can find it. A short comment near the policy or a test with a clear name can explain a surprising rule. The best evidence is something that changes when the policy does. When a permission starts expanding quietly, a failed test gives the next reviewer a reason to stop and ask who was supposed to get access.&lt;/p&gt;

&lt;p&gt;One practical place to start is the next permission change already on the roadmap. Ask the person requesting it to name the new action, the people who gain it, and a nearby case where access should still be denied. Those answers can become acceptance criteria before anyone changes a query.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Inspired by &lt;a href="https://highon.coffee/blog/insecure-direct-object-reference-idor/" rel="noopener noreferrer"&gt;HighOn.Coffee’s article on insecure direct object references&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Action checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;   List every route that reads, changes, or exports the record.&lt;/li&gt;
&lt;li&gt;   Write the allowed actions for each role and record relationship.&lt;/li&gt;
&lt;li&gt;   Scope lookups to records the verified account may access.&lt;/li&gt;
&lt;li&gt;   Check permissions on attachments, exports, and cached responses.&lt;/li&gt;
&lt;li&gt;   Test allowed and denied actions with accounts in different scopes.&lt;/li&gt;
&lt;li&gt;   Confirm a denied write leaves the record unchanged.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>backend</category>
      <category>security</category>
    </item>
    <item>
      <title>Harden a Linux server by defining its job</title>
      <dc:creator>thejeremiahtillman</dc:creator>
      <pubDate>Sat, 28 Nov 2026 04:49:19 +0000</pubDate>
      <link>https://dev.to/thejeremiahtillman/harden-a-linux-server-by-defining-its-job-29ej</link>
      <guid>https://dev.to/thejeremiahtillman/harden-a-linux-server-by-defining-its-job-29ej</guid>
      <description>&lt;p&gt;&lt;a href="https://writing.jeremiahtillman.com/harden-a-linux-server-by-defining-its-job" rel="noopener noreferrer"&gt;Originally published on Quest Log&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Cover photo by &lt;a href="https://unsplash.com/@lukash?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText" rel="noopener noreferrer"&gt;Lukas&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/a-computer-screen-with-a-program-running-on-it-NLSXFjl_nhc?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText" rel="noopener noreferrer"&gt;Unsplash&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A Linux server is easier to secure when everybody can explain why it exists. Say this one receives files from an internal app, generates invoices, and sends the output to storage. That job implies a service, a few connections, a place to write, and a way to maintain it. The collection of packages and accounts that came with the image is a separate matter.&lt;/p&gt;

&lt;p&gt;Start with the job. Then make the deployed machine match it. A server baseline should describe the access, software, network paths, and recovery steps the service needs. A good baseline gives you a way to tell when the server changes and a way to rebuild it after a bad day.&lt;/p&gt;

&lt;p&gt;Picture a host that has been running for several years. It has a monitoring agent installed by one team, an account left by a consultant, and a second way to accept files from a project that ended. Each addition probably made sense once. A baseline gives you a safe process for deciding which of those things still belongs there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Know what you are responsible for
&lt;/h2&gt;

&lt;p&gt;Name the service owner and the people who can make changes. Record the environment, operating system family, deployment method, and data handled by the host. Keep the record somewhere outside the host so you can use it when the host is down. A machine name alone conveys little about what would break if somebody rebooted it.&lt;/p&gt;

&lt;p&gt;For the invoice worker, the data description might say that queued input includes customer addresses and output contains billing details. That tells you which backups and logs need restrictions. It also helps decide whether a test server may use production data. A sanitized fixture can often demonstrate the same workflow without creating another copy of the customer file.&lt;/p&gt;

&lt;p&gt;Map the dependencies in both directions. Which systems send work to the server? Which services does it call to finish? Who signs in to administer it? Which jobs run on a schedule? Ask the people who get paged when it stops. Their answers often include one old report or handoff that never made it into the architecture diagram.&lt;/p&gt;

&lt;p&gt;Keep the first map narrow. The goal is to list the connections and permissions you can verify, then assign an owner to open questions. Put the most important facts on one page. A detailed inventory can sit behind it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find unnecessary exposure before removing it
&lt;/h2&gt;

&lt;p&gt;Compare the services you expect with what the machine runs. Inspect listening sockets, enabled services, scheduled jobs, and administrative accounts. Check the firewall and the network controls outside the machine. A service bound on the host, a port published by a container, and an inbound rule in a cloud network can combine in ways that are hard to see from any one screen.&lt;/p&gt;

&lt;p&gt;Record what each necessary listener does and who should be able to reach it. A worker that only makes outbound requests may need no application port open to the network. A service that accepts work from an internal app may only need access from that app’s network or identity. If a port exists for temporary troubleshooting, specify who can use it and when it will close.&lt;/p&gt;

&lt;p&gt;Start with observed behavior and documented requirements. Removing a package nobody claims to own can still break a monthly process. Use service logs, deployment files, and a conversation with the team to resolve that uncertainty. Test the proposed change in a comparable environment. Make a small change, then confirm the service still accepts and completes real work.&lt;/p&gt;

&lt;p&gt;Once you have a list of approved connections, test it from the places people and systems use. An internal service should be reachable from its intended client. A path that should be closed should stay closed from the network where it matters. A check run from the server itself answers a different question from a check run over the production network. &lt;a href="https://csrc.nist.gov/pubs/sp/800/123/final" rel="noopener noreferrer"&gt;NIST guide to general server security&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Give people and processes separate identities
&lt;/h2&gt;

&lt;p&gt;A deployed service needs an identity for its job. The person maintaining the machine needs a different identity for maintenance. Separate accounts let the operating system and auditing tools distinguish a routine job from an administrative change.&lt;/p&gt;

&lt;p&gt;List who can administer the host. Use named access and remove ties to departed people. If your environment uses short-lived credentials or an identity provider, check how the host receives the current policy. If it uses local accounts, document how access is granted and revoked. Confirm you can still get in through an approved recovery channel before changing the ordinary one.&lt;/p&gt;

&lt;p&gt;Think through the temporary cases. A vendor needs access to inspect a service for an afternoon. Someone new joins the on-call rotation. A person leaves the company while their laptop is offline. Each case should have a path that leaves a record and follows a sensible expiry. A shared credential makes those cases harder to resolve because the team cannot tell whose copy still works.&lt;/p&gt;

&lt;p&gt;Processes can be narrow, too. The invoice worker needs to read the jobs it receives and write invoices to a designated location. It does not need to modify system packages or read unrelated services’ secrets. Grant the account access to the files it uses. Test startup, normal work, and error handling with that account so permission problems appear before an incident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put secrets where you can rotate them
&lt;/h2&gt;

&lt;p&gt;A configuration file can describe which storage service to use without containing the credential for that service. Give a running process a supported way to receive its secret at deployment or startup. Keep the source and retention of that secret clear to the people who operate it.&lt;/p&gt;

&lt;p&gt;Trace how a credential travels. It might start in a protected store, enter a deployment tool, and reach the service manager. At each point, check who can read it and whether it appears in a command line, log, crash report, or backup. Permissions on one file only cover that one file.&lt;/p&gt;

&lt;p&gt;Plan to rotate credentials while the service is in use. Find out whether the worker can reload them or requires a restart. Decide when to remove the old credential and how to confirm the new one works. If several hosts share a credential, name the hosts and arrange the change so you can see which have switched.&lt;/p&gt;

&lt;p&gt;Test a renewal before it becomes urgent. Use a nonproduction credential where possible. Confirm the service can connect with the new one, fails safely when none is available, and gives operators a clear error. Avoid putting the secret itself in the error message.&lt;/p&gt;

&lt;p&gt;Give the recovery process its own credentials. A backup reader may need access to storage and decryption while the original host no longer exists. Record where that authority comes from. If the only valid copy of a recovery secret lives on the machine you’re restoring, the backup has a dependency you may discover too late.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat system updates as changes to the service
&lt;/h2&gt;

&lt;p&gt;A supported operating system gives you a route to fixes. It also requires someone to own package updates, restart decisions, and compatibility. Record the update policy next to the service owner. The best schedule is one the team can follow and verify.&lt;/p&gt;

&lt;p&gt;Use a test machine or small group before rolling a change everywhere when the service and time allow. Check the tasks that matter. For the invoice worker, start it on a fresh host, process representative jobs, and confirm where it writes the results. If a package update requires a restart, make sure the service returns and consumes work under its usual account.&lt;/p&gt;

&lt;p&gt;Include packages installed outside the operating system’s package manager. A language runtime, a binary copied into an application directory, or an agent installed by a separate team may follow a different update path. Find which team owns each source and how it knows when a newer supported release is available.&lt;/p&gt;

&lt;p&gt;When migrating an older host, identify the behavior to preserve instead of copying every setting forward. You might need a particular filesystem mount, background timer, or permission on a spool directory. Bring those requirements into the new baseline. Tests for the job help distinguish a requirement from an old workaround.&lt;/p&gt;

&lt;p&gt;Keep a record of what the deployment changed. The person who investigates a service failure should be able to tell when the host last rebooted, when its baseline changed, and what software revision it runs. That information helps when the cause is ambiguous and a quick rollback might help.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give logs a specific purpose
&lt;/h2&gt;

&lt;p&gt;Decide what you need to see on an ordinary day. Are invoices arriving? Are jobs finishing? Is storage rejecting any uploads? A service log that answers those questions does more for the on-call person than pages of startup details.&lt;/p&gt;

&lt;p&gt;Record administrative events separately enough that you can ask who changed a file, deployed a service, or gained access. The system logs may provide some of that information. The deployment tool or identity provider may hold the rest. Document where each record lives and how to compare its timestamps with the service log.&lt;/p&gt;

&lt;p&gt;Move the important records off the machine according to your reliability and privacy needs. If the host disk fills, fails, or becomes unavailable, an external copy can preserve part of the timeline. Decide how long to keep the records and which roles can read them. Leave customer contents, secrets, and full file bodies out of routine logs.&lt;/p&gt;

&lt;p&gt;Build a simple alert for a failure that matters to the service. An aging job may tell you more than a running process count. A worker can be alive and have insufficient access to upload invoices. An alert that names the blocked operation and points to safe diagnostics gives someone a way to respond.&lt;/p&gt;

&lt;p&gt;Check what happens when the log pipeline is down. Decide whether the service continues, queues records, or limits its work. Choose the behavior based on the importance of the logs and the work. If you discover the tradeoff during an outage, you may have to choose it while two systems are already failing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plan to restore the work
&lt;/h2&gt;

&lt;p&gt;Backups should cover the states you need after a loss. For some services, that means configuration and a database. Others need pending work, local files, encryption keys, or permission information. List which state can be recreated and which needs a protected copy.&lt;/p&gt;

&lt;p&gt;A successful backup job proves that something wrote data. A restore test answers a more useful question. Start with an empty test environment, restore the protected material, bring the service up under the expected identity, and run a representative job. Check whether it can read input and write output using the right destinations.&lt;/p&gt;

&lt;p&gt;Consider what happens if an old job runs again after a restore. If invoicing uses a stable job identifier, the restored worker may be able to detect completed work. If that relationship lives outside the backup, you may have to reconcile the queue with storage or billing records. Decide how to avoid creating duplicates before people depend on the restore process.&lt;/p&gt;

&lt;p&gt;Put the recovery instructions where the on-call team can reach them. Include who can approve a restore, where to find the correct revision, and which tests tell you the restored service is healthy. A document that only exists on the unavailable host adds one more problem during recovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make exceptions expire
&lt;/h2&gt;

&lt;p&gt;A baseline only stays useful if you can tell what differs from it. Sometimes the difference has a good reason. A hardware adapter requires a special package. A legacy partner can only connect through a route the new service doesn’t need. A temporary administrator account helps with a migration.&lt;/p&gt;

&lt;p&gt;Record the exception, owner, reason, and review date. Name the specific host or role affected. If possible, make the exception visible in the configuration that deploys the host. A future operator can then distinguish an approved change from drift without guessing.&lt;/p&gt;

&lt;p&gt;Decide how you’ll find changes that happened outside the usual path. Compare a few properties with the expected baseline on a schedule. Include exposed ports, privileged memberships, package sources, and important settings. Keep the output focused on meaningful differences. A wall of alerts about timestamps and temporary files won’t help the team see a service that suddenly listens on another interface.&lt;/p&gt;

&lt;p&gt;When an emergency requires changing the host by hand, write down what changed and why. Turn it into a reviewed configuration change if it should persist. Then test a new deployment. The workflow is complete when a rebuilt server has the same intended behavior, including whatever the incident taught you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fit the work into one maintenance window
&lt;/h2&gt;

&lt;p&gt;A single pass can establish the core of the baseline. Pick the invoice worker. Identify its approved service identity, host access, incoming work, outgoing connection, and writable location. Confirm the owner and deployment repository. Compare those facts with what you find on the machine.&lt;/p&gt;

&lt;p&gt;Then fix one discrepancy and verify the full job. For example, remove access from an unused account after confirming there’s an alternate administrative path. Check that the intended operator can still work and the retired account can no longer sign in. Make the change reproducible, then update the service notes.&lt;/p&gt;

&lt;p&gt;Use the next window for the next difference, or test a restore if the important open question is recovery. The list will change as the service changes. Keep the baseline focused on what the machine needs to do. A new listener or privilege should have a reason someone on the team can explain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build the replacement before retiring the original
&lt;/h2&gt;

&lt;p&gt;A server rebuild is a good way to find out whether the baseline describes the real system. Use the documented image and configuration to create a replacement in a test environment. Keep the original available while you compare them. You want to know which differences matter before introducing the new host to production work.&lt;/p&gt;

&lt;p&gt;Run a representative job on the replacement with protected test data. Follow the input from the queue to the output store. Confirm the service identity, the destination, and the records the job leaves. If the job needs certificates or a mount somebody once added by hand, update the deployment so the next machine receives the same approved dependency.&lt;/p&gt;

&lt;p&gt;Check the tasks the server does less often. It might produce a monthly report or pick up delayed jobs after an interruption. Use a fixture for one of those paths. Ask the service owner what distinguishes a successful run. The existence of one output file says little if it was written to the wrong account or has the wrong permissions.&lt;/p&gt;

&lt;p&gt;Before a cutover, decide how work transitions between hosts. If both can process the same queue, check that the service is safe to run in parallel. If it isn’t, plan when the old host stops accepting work and how you verify that it has drained. Give yourself a consistent way to return to the old host if the new deployment has a problem. The rollback should account for work the replacement already finished.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify that the baseline protects the right things
&lt;/h2&gt;

&lt;p&gt;A baseline document can be correct on the day you write it and still be useless during maintenance. Turn a few of its facts into repeatable checks. A process should run under a named service identity. Its configuration should have the expected owner and access. The job should connect only to the services it needs. Recovery should work with credentials that exist outside the host.&lt;/p&gt;

&lt;p&gt;Write the expected result for each check before you run it. For a host that receives work over an internal network, the correct result might be that an approved producer can connect while an unrelated network cannot. That expectation is more helpful than a screenshot of a firewall rule because it captures the behavior the rule is meant to produce.&lt;/p&gt;

&lt;p&gt;Keep the results with the change record. If an update unexpectedly exposes a listener, show the deployment time and the network where you saw it. If a process starts with broader file access, record the account and the directory it should use. Details like these make a failure report fit the person who can repair it.&lt;/p&gt;

&lt;p&gt;Use checks the service owner can run without administrator access where possible. A read-only report or synthetic job can tell an operator whether to escalate. Reserve privileged diagnostics for cases where the evidence requires them. A tool that checks permissions shouldn’t introduce a new account with permission to change everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retire the old machine as part of the change
&lt;/h2&gt;

&lt;p&gt;An unused server can outlive the workload it once supported. Add retirement to the work order. Confirm the replacement handles traffic, then identify old credentials, monitoring rules, records, backups, and names that still point at the host. Keep the records you need for recovery and audit under the retention rules you already follow.&lt;/p&gt;

&lt;p&gt;Remove network access according to the approved change. Revoke the identities and credentials unique to the retired machine. Return addresses or names to the people who manage them. If another service still hits the old address, find out why before claiming the work is finished. Connections from a legacy job can reveal an undocumented dependency.&lt;/p&gt;

&lt;p&gt;Leave a short account of the change for the next operator. Say what was replaced, which data was preserved, and who can approve a restore if one is needed. That note closes the gap between “the new machine works” and “the old machine no longer has a job.”&lt;/p&gt;

&lt;p&gt;Set a review date for the new baseline after the first maintenance cycle. Ask the on-call team which checks they used and which facts were missing. If they had to discover a dependency under pressure, add it to the service record and decide how to verify it next time. Keep a link to the change that puts the fix into deployment. This gives the service owner a short record of what improved and a test that will catch the same problem when the server is rebuilt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Action checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;   Record the server’s owner, job, dependencies, and recovery path.&lt;/li&gt;
&lt;li&gt;   Compare running services and listeners with the approved baseline.&lt;/li&gt;
&lt;li&gt;   Remove unused access after confirming an approved recovery path.&lt;/li&gt;
&lt;li&gt;   Run each service under its own account with limited permissions.&lt;/li&gt;
&lt;li&gt;   Test updates with a representative job before deploying them broadly.&lt;/li&gt;
&lt;li&gt;   Restore a backup onto a clean host and verify that the job completes.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>infrastructure</category>
      <category>linux</category>
      <category>security</category>
    </item>
  </channel>
</rss>
