Skip to content
4 changes: 4 additions & 0 deletions changelog/infra-form-updates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: Changed # One of: Added, Changed, Developer Experience, Deprecated, Docs, Fixed, Removed, Security
description: Updated infrastructure monitor form to not show classification options, use a password input for the key, and use consistent wording.
pr: 7240 # PR number
labels: [] # Optional: ["high-risk", "db-migration"]
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export const FormFieldFromSchema = ({
);
}

if (fieldSchema.multiline) {
// Use textarea for multiline fields, but prioritize password input for sensitive fields
if (fieldSchema.multiline && !fieldSchema.sensitive) {
return (
<CustomTextArea
{...field}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import { useEffect, useState } from "react";
import { useFeatures } from "~/features/common/features/features.slice";
import { enumToOptions } from "~/features/common/helpers";
import { useGetConfigurationSettingsQuery } from "~/features/config-settings/config-settings.slice";
import {
getMonitorType,
MONITOR_TYPES,
} from "~/features/data-discovery-and-detection/action-center/utils/getMonitorType";
import { useGetSystemByFidesKeyQuery } from "~/features/system";
import { useGetAllUsersQuery } from "~/features/user-management";
import {
Expand Down Expand Up @@ -104,6 +108,16 @@ const ConfigureMonitorForm = ({
*/
const llmClassifierFeatureEnabled = !!flags.heliosV2;

const isInfrastructureMonitor =
getMonitorType(integrationOption.identifier as ConnectionType) ===
MONITOR_TYPES.INFRASTRUCTURE;

/**
* Show the LLM classifier option if the feature is enabled and the monitor is not an infrastructure monitor.
* Infrastructure monitors (e.g., Okta) don't use classification.
*/
const showLLMOption = llmClassifierFeatureEnabled && !isInfrastructureMonitor;

const { data: appConfig } = useGetConfigurationSettingsQuery(
{
api_set: false,
Expand Down Expand Up @@ -282,7 +296,7 @@ const ConfigureMonitorForm = ({
showTime
/>
</Form.Item>
{llmClassifierFeatureEnabled && (
{showLLMOption && (
<>
<Form.Item
name="use_llm_classifier"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const DATA_DISCOVERY_MONITOR_COPY = `A data discovery monitor observes configure

const WEBSITE_MONITOR_COPY = `Configure your website monitor to identify active ad tech vendors and tracking technologies across your site. This monitor will analyze selected pages for vendor activity, compliance with privacy requirements, and data collection practices. Set your preferences below to customize the monitor frequency and scan locations.`;

const OKTA_MONITOR_COPY = `Configure your SSO provider monitor to detect and map systems within your infrastructure. This monitor will analyze connected systems to identify their activity and ensure accurate representation in your data map. Set your preferences below to customize the monitor&apos;s scan frequency and scope. To learn more about monitors, view our docs here.`;
const OKTA_MONITOR_COPY = `Configure your identity provider monitor to detect and map systems within your infrastructure. This monitor will analyze connected systems to identify their activity and ensure accurate representation in your data map. Set your preferences below to customize the monitor's scan frequency and scope. To learn more about monitors, view our docs here.`;

const MONITOR_COPIES: Partial<Record<ConnectionType, string>> = {
[ConnectionType.WEBSITE]: WEBSITE_MONITOR_COPY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export const OKTA_INTEGRATION_PLACEHOLDER = {

export const OKTA_DESCRIPTION = (
<>
SSO providers manage user authentication and can help identify systems
within your infrastructure. Adding an SSO provider as a data source allows
you to detect connected systems, monitor access patterns, and enhance your
data map for better visibility and control.
Identity providers manage user authentication and can help identify systems
within your infrastructure. Adding an identity provider as a data source
allows you to detect connected systems, monitor access patterns, and enhance
your data map for better visibility and control.
</>
);

Expand Down
Loading