-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into show-used-resources
- Loading branch information
Showing
19 changed files
with
510 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { List, Typography } from '@equinor/eds-core-react'; | ||
import * as PropTypes from 'prop-types'; | ||
import type { FunctionComponent } from 'react'; | ||
|
||
export const IngressAllowList: FunctionComponent<{ | ||
allowedIpRanges?: Array<string>; | ||
}> = ({ allowedIpRanges }) => | ||
allowedIpRanges?.length > 0 ? ( | ||
<div> | ||
<Typography>Accessible from public IP address ranges:</Typography> | ||
<List className="o-indent-list"> | ||
{allowedIpRanges.map((ip) => ( | ||
<List.Item key={ip}>{ip}</List.Item> | ||
))} | ||
</List> | ||
</div> | ||
) : ( | ||
<Typography>Accessible from all public IP addresses</Typography> | ||
); | ||
|
||
IngressAllowList.propTypes = { | ||
allowedIpRanges: PropTypes.arrayOf(PropTypes.string), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
import { List } from '@equinor/eds-core-react'; | ||
import { Icon, List } from '@equinor/eds-core-react'; | ||
import { computer, group } from '@equinor/eds-icons'; | ||
import { Alert } from '../alert'; | ||
|
||
interface Props { | ||
unknownADGroups?: Array<string>; | ||
unknownADUsers?: Array<string>; | ||
} | ||
export function UnknownADGroupsAlert({ unknownADGroups }: Props) { | ||
export function UnknownADGroupsAlert({ | ||
unknownADGroups, | ||
unknownADUsers, | ||
}: Props) { | ||
return ( | ||
<> | ||
{unknownADGroups?.length > 0 && ( | ||
<Alert type="danger"> | ||
Unknown or deleted AD group(s) | ||
<List className="o-indent-list"> | ||
{unknownADGroups.map((adGroup) => ( | ||
<List.Item key={adGroup}>{adGroup}</List.Item> | ||
))} | ||
</List> | ||
</Alert> | ||
)} | ||
</> | ||
<Alert type="danger"> | ||
Unknown or deleted Entra object(s) | ||
<List className="o-indent-list"> | ||
{unknownADGroups.map((adGroup) => ( | ||
<List.Item key={adGroup}> | ||
<Icon data={group} size={16} /> {adGroup} | ||
</List.Item> | ||
))} | ||
{unknownADUsers.map((adSp) => ( | ||
<List.Item key={adSp}> | ||
<Icon data={computer} size={16} /> {adSp} | ||
</List.Item> | ||
))} | ||
</List> | ||
</Alert> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.