Files
zeekayandHanzo Dev f888991a7a drop the Sentry wordmark from the react app
FSL-1.0-Apache-2.0 grants us the code, not the name. "Sentry" is
Functional Software's trademark, so every place the running app says it
to a user -- page titles, onboarding, empty states, toasts, settings
copy, the self-hosted footer -- now says Sentinel.

Attribution is the other half of the deal and stays untouched: upstream
copyright headers, LICENSE, NOTICE. So does anything where the mark is a
fact rather than a brand -- @sentry/* packages, sentry-cli, the wizard
and bundler plugins, docs.sentry.io, the whole gettingStartedDocs tree.
Renaming those would leave instructions that no longer work.

Nothing structural moved. No import, identifier, route path, feature
flag, API field or test id changed; the diff is 312 lines in and 312
out. Colocated specs were updated in lockstep with the copy they assert.
Marketing and community links point at hanzo.ai, only where a real page
exists to point at.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-10 18:01:22 -07:00

95 lines
3.0 KiB
TypeScript

import ExternalLink from 'sentry/components/links/externalLink';
import LoadingError from 'sentry/components/loadingError';
import LoadingIndicator from 'sentry/components/loadingIndicator';
import Panel from 'sentry/components/panels/panel';
import PanelBody from 'sentry/components/panels/panelBody';
import PanelHeader from 'sentry/components/panels/panelHeader';
import PreviewFeature from 'sentry/components/previewFeature';
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
import {t, tct} from 'sentry/locale';
import type {ProjectKey} from 'sentry/types';
import {useApiQuery} from 'sentry/utils/queryClient';
import routeTitleGen from 'sentry/utils/routeTitle';
import useOrganization from 'sentry/utils/useOrganization';
import {useParams} from 'sentry/utils/useParams';
import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
import ReportUri, {
getSecurityDsn,
} from 'sentry/views/settings/projectSecurityHeaders/reportUri';
function getInstructions(keyList: ProjectKey[]) {
return `Expect-CT: report-uri="${getSecurityDsn(keyList)}"`;
}
function ProjectExpectCtReports() {
const organization = useOrganization();
const {projectId} = useParams();
const {
data: keyList,
isLoading,
isError,
refetch,
} = useApiQuery<ProjectKey[]>([`/projects/${organization.slug}/${projectId}/keys/`], {
staleTime: 0,
});
if (isLoading) {
return <LoadingIndicator />;
}
if (isError) {
return <LoadingError onRetry={refetch} />;
}
return (
<div>
<SentryDocumentTitle
title={routeTitleGen(t('Certificate Transparency (Expect-CT)'), projectId, false)}
/>
<SettingsPageHeader title={t('Certificate Transparency')} />
<PreviewFeature />
<ReportUri keyList={keyList} orgId={organization.slug} projectId={projectId} />
<Panel>
<PanelHeader>{t('About')}</PanelHeader>
<PanelBody withPadding>
<p>
{tct(
`[link:Certificate Transparency]
(CT) is a security standard which helps track and identify valid certificates, allowing identification of maliciously issued certificates`,
{
link: (
<ExternalLink href="https://en.wikipedia.org/wiki/Certificate_Transparency" />
),
}
)}
</p>
<p>
{tct(
"To configure reports in Sentinel, you'll need to configure the [header] a header from your server:",
{
header: <code>Expect-CT</code>,
}
)}
</p>
<pre>{getInstructions(keyList)}</pre>
<p>
{tct('For more information, see [link:the article on MDN].', {
link: (
<ExternalLink href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT" />
),
})}
</p>
</PanelBody>
</Panel>
</div>
);
}
export default ProjectExpectCtReports;