Article

Handling Personal and Confidential Information When Using AI-Generated Code

When using AI-generated code, it's important to consider not only the code itself, but also the information provided to the AI and the information stored by the created system separately. When handling personal or confidential information, checks are required before input, during development, and before public release.
AI Co-creation Development12 minPublication Date September 22, 2026Update date September 22, 2026
Thumbnail for Handling Personal and Confidential Information When Using AI-Generated Code

Key points of this article (1-minute summary)

Understand in 1 minute
  • 1Key Points of This Article
  • 2Quick Summary
  • 3Initial Premises for Personal and Confidential Information
Recommended for people like this
  • For managers and staff who want to promote sustainable operational improvement and digitalization.
  • For those who want to know the selection criteria for tools suitable for their company and practical implementation procedures.

Writing / Supervision

Author
Shin YamaguchiRepresentative Partner, FLARES LLC
Supervision
FLARES LLCDX Support & Software Development Team

Key Points of This Article

  • Separate information that can be given to AI from information that should not be given.
  • Avoid writing API keys and passwords directly into the code.
  • Confirm the storage location, purpose of use, and deletion method for personal information.
  • Before public release, check that no confidential information appears in logs or error displays.

Quick Summary

  • Separate information that can be given to AI from information that should not be given.
  • Avoid writing API keys and passwords directly into the code.
  • Confirm the storage location, purpose of use, and deletion method for personal information.

Initial Premises for Personal and Confidential Information

When considering personal and confidential information, the first thing to look at is not the tool name or implementation method. It's about aligning what's happening on site, who is troubled, and which decisions are stalled. AI can quickly produce a draft, but it doesn't inherently understand company circumstances or on-site priorities from the start.

In local and small-to-medium enterprises, operations often rely on the experience of a small number of people. It's common in AI development to directly paste real data or confidential information into AI, or embed keys in generated code. Because screens and documents are produced quickly, the process of confirming premises tends to be skipped.

In such development, separating the roles of internal staff, engineers, and AI can prevent confusion. Internal staff convey the business context, AI quickly produces prototypes, and engineers refine them into a form suitable for public release and maintenance. This division ensures that the creation process and decision-making reasons remain within the company.

Problems Likely to Occur if Left Unattended

What AI creates often appears complete the moment it runs. However, for business use, it's necessary to consider input, verification, approval, storage, deletion, handover, and incident response. Customer information and API keys remaining in external services, logs, screens, or repositories occurs when the line between prototype and production is blurred.

Particular attention is needed for parts not visible on the screen. Permissions, data storage locations, external service integration, logs, backups, and handling of departing employees are areas where problems are often discovered after use begins. AI can suggest plausible configurations, but it cannot automatically determine the company's scope of responsibility.

To avoid this problem, there's no need to create a large specification document from the outset. First, briefly organize the types of personal information, confidential documents, API keys, storage locations, log output, sample data to provide to AI, and terms of service. Even if brief, having information usable for judgment makes AI instructions and technical reviews more specific.

Take Small First Steps

The first step is to anonymize the information given to AI and prototype with sample data instead of real data. Rather than creating a large development plan, it's more realistic to try small, allow staff to interact, and articulate any discomfort. In AI co-creation development, repeatedly performing these small checks improves the accuracy of requirements.

At this stage, it's also important not to demand too much perfection. Prototypes are materials for aligning internal understanding. Rather than screen colors or fine details, confirm who will use it, what will be input, where decisions will be made, and what information needs to be protected.

Even when working with external engineers, it's important for internal staff to review prototypes together, rather than unilaterally receiving a finished product. When staff can evaluate AI output and make judgments, subsequent correction instructions become more specific, and post-release improvements become smoother.

  • Anonymize real data
  • Make keys environment variables
  • Check logs
  • Decide on deletion method
  • Check terms and conditions

What to Check from a Technical Standpoint

From a technical perspective, it's crucial to check environment variables, secret management, log masking, error display, data deletion, and access restrictions. AI-generated code and configurations, while valid as general samples, may not necessarily suit a company's specific operations, permissions, data volume, or maintenance structure.

When reviewing implementation, follow the data flow, not just the screen. Where is the input information stored? Who can see it? Can it be deleted or modified? Is any information sent to external services? Does personal information appear in logs or errors? These checks contribute to the safety of production operations.

Technology selection is also a critical decision. Judge whether existing SaaS is sufficient, if Google Workspace can supplement it, if a custom application is needed, or if Cloudflare or Google Cloud should be used, considering both cost and maintenance. Look not just at whether it can be built, but whether it can be sustained.

Things to Organize Internally Before Starting

When proceeding with personal and confidential information, there's no need to prepare precise specifications from the outset. Rather, it's more effective to briefly organize situations where the field is struggling, currently used materials and SaaS, internal decision-makers, and who will continue to use it after release, to facilitate smoother discussions.

Before starting discussions, separating the scope of internal decision-making from what needs to be confirmed with external engineers will expedite the process. Having a system that allows for consultation, technical direction, AI output review, pre-release checks, and maintenance to be viewed without fragmentation ensures that prototypes don't just end there, but are judged with the premise of continued business use. For items that may incur costs, such as setup agency, training, individual development, and external service fees, grasping the scope and estimates beforehand can prevent discrepancies later.

  • Organize tasks that are causing problems on site and the people involved in those tasks.
  • Check the storage locations of currently used materials, SaaS, Google Workspace, Excel, etc.
  • Separate what needs to be fixed after release, what maintenance should be outsourced, and what decisions should be kept internal.

Consider Review and Operation Simultaneously

In review, it's crucial to check whether secret information remains in the code and whether real data is included in interactions with AI. If only engineers review, they might lean too heavily towards code and configuration. On the other hand, if only field staff review, they might overlook permission or maintenance issues. Combining both perspectives brings it closer to a publishable form.

For operations, decide on procedures for key updates, permission changes, information deletion requests, and communication in case of suspected leakage. Even a small internal tool becomes part of business operations once used. Changes in personnel, department additions, external service specification changes, minor modifications, and incident verification will inevitably occur.

Having a system in place to continue maintenance after creation provides great peace of mind. Even if internal staff become capable of prototyping with AI, there's no need for the company alone to handle post-release incident verification and technical corrections. It's reassuring to decide in advance who to consult when needed.

Understand Limitations and Make it Usable

The feasibility of AI use cannot be judged solely by convenience. Contracts with customers, internal regulations, and service terms also need to be checked. AI can produce output quickly, but it does not take over responsible decision-making. Company policy, customer commitments, handling of personal information, and post-release maintenance must be confirmed by humans.

When prototyping a search screen using a customer list, replace names and phone numbers with fictitious data before providing it to the AI. In this way, it's important to test in small steps while not omitting the necessary checks for public release and maintenance. The more you leverage AI's speed, the greater the importance of prioritizing human judgment criteria.

AI co-creation development is not about pushing the burden back onto the company instead of outsourcing entirely. It's an approach that fosters the creative abilities of internal staff while supporting technical judgment, pre-release checks, and maintenance. The ultimate goal is to ensure that what is created can continue to be used within the company.

Frequently Asked Questions

Q. When implementing "Handling Personal and Confidential Information When Using AI-Generated Code" in-house, what are the most common initial challenges faced on site?

A. The main reason is that on-site business flows and input/sharing rules vary from person to person. First, we start by inventorying current methods and establishing common rules. Specifically, it is important to proceed by focusing on the point: "Separate information that can be given to AI from information that should not be given."

Q. What are the key points and methods for smoothly integrating it into our company's operations?

A. Instead of trying to implement a company-wide change all at once, conduct a trial operation in a single task or department with a small scope of impact, and share the success story. Avoid writing API keys and passwords directly into the code. Also, confirm the storage location, purpose of use, and deletion method for personal information.

Inquiries / Consultations

Considering everything from prototyping to design review, pre-release checks, and maintenance, it is realistic to start by trying things on a small scale.

Key points of this article

  • Key Points of This Article
  • Quick Summary
  • Initial Premises for Personal and Confidential Information
Series serialization

Practical steps on the same topic (Tool Consolidation & DX Promotion)

A series of practical articles that can be read step-by-step according to field challenges.

Related

Related articles

To list