diff --git a/api/gen/proto/go/teleport/summarizer/v1/summarizer.pb.go b/api/gen/proto/go/teleport/summarizer/v1/summarizer.pb.go index 2ab8ef02d04..e6500ad9fec 100644 --- a/api/gen/proto/go/teleport/summarizer/v1/summarizer.pb.go +++ b/api/gen/proto/go/teleport/summarizer/v1/summarizer.pb.go @@ -120,29 +120,69 @@ const ( // CommandCategoryOther indicates that the command does not fit into any of the // other categories. CommandCategory_COMMAND_CATEGORY_OTHER CommandCategory = 7 + // CommandCategoryPackageManagement indicates that the command is related to + // package management, such as installing or updating packages. + CommandCategory_COMMAND_CATEGORY_PACKAGE_MANAGEMENT CommandCategory = 8 + // CommandCategoryContainer indicates that the command is related to container + // operations, such as Docker or Kubernetes commands. + CommandCategory_COMMAND_CATEGORY_CONTAINER CommandCategory = 9 + // CommandCategorySourceControl indicates that the command is related to source + // control, such as Git operations. + CommandCategory_COMMAND_CATEGORY_SOURCE_CONTROL CommandCategory = 10 + // CommandCategoryScheduling indicates that the command is related to scheduling, + // such as cron or systemd timer operations. + CommandCategory_COMMAND_CATEGORY_SCHEDULING CommandCategory = 11 + // CommandCategoryMonitoring indicates that the command is related to monitoring + // and observability. + CommandCategory_COMMAND_CATEGORY_MONITORING CommandCategory = 12 + // CommandCategoryUserManagement indicates that the command is related to user + // and group management. + CommandCategory_COMMAND_CATEGORY_USER_MANAGEMENT CommandCategory = 13 + // CommandCategoryTransfer indicates that the command is related to data transfer + // operations, such as scp or rsync. + CommandCategory_COMMAND_CATEGORY_TRANSFER CommandCategory = 14 + // CommandCategoryDevelopment indicates that the command is related to development + // tools, such as compilers or build tools. + CommandCategory_COMMAND_CATEGORY_DEVELOPMENT CommandCategory = 15 ) // Enum value maps for CommandCategory. var ( CommandCategory_name = map[int32]string{ - 0: "COMMAND_CATEGORY_UNSPECIFIED", - 1: "COMMAND_CATEGORY_FILE_OPERATION", - 2: "COMMAND_CATEGORY_NETWORK", - 3: "COMMAND_CATEGORY_PROCESS", - 4: "COMMAND_CATEGORY_SYSTEM_CONFIG", - 5: "COMMAND_CATEGORY_DATA_ACCESS", - 6: "COMMAND_CATEGORY_AUTHENTICATION", - 7: "COMMAND_CATEGORY_OTHER", + 0: "COMMAND_CATEGORY_UNSPECIFIED", + 1: "COMMAND_CATEGORY_FILE_OPERATION", + 2: "COMMAND_CATEGORY_NETWORK", + 3: "COMMAND_CATEGORY_PROCESS", + 4: "COMMAND_CATEGORY_SYSTEM_CONFIG", + 5: "COMMAND_CATEGORY_DATA_ACCESS", + 6: "COMMAND_CATEGORY_AUTHENTICATION", + 7: "COMMAND_CATEGORY_OTHER", + 8: "COMMAND_CATEGORY_PACKAGE_MANAGEMENT", + 9: "COMMAND_CATEGORY_CONTAINER", + 10: "COMMAND_CATEGORY_SOURCE_CONTROL", + 11: "COMMAND_CATEGORY_SCHEDULING", + 12: "COMMAND_CATEGORY_MONITORING", + 13: "COMMAND_CATEGORY_USER_MANAGEMENT", + 14: "COMMAND_CATEGORY_TRANSFER", + 15: "COMMAND_CATEGORY_DEVELOPMENT", } CommandCategory_value = map[string]int32{ - "COMMAND_CATEGORY_UNSPECIFIED": 0, - "COMMAND_CATEGORY_FILE_OPERATION": 1, - "COMMAND_CATEGORY_NETWORK": 2, - "COMMAND_CATEGORY_PROCESS": 3, - "COMMAND_CATEGORY_SYSTEM_CONFIG": 4, - "COMMAND_CATEGORY_DATA_ACCESS": 5, - "COMMAND_CATEGORY_AUTHENTICATION": 6, - "COMMAND_CATEGORY_OTHER": 7, + "COMMAND_CATEGORY_UNSPECIFIED": 0, + "COMMAND_CATEGORY_FILE_OPERATION": 1, + "COMMAND_CATEGORY_NETWORK": 2, + "COMMAND_CATEGORY_PROCESS": 3, + "COMMAND_CATEGORY_SYSTEM_CONFIG": 4, + "COMMAND_CATEGORY_DATA_ACCESS": 5, + "COMMAND_CATEGORY_AUTHENTICATION": 6, + "COMMAND_CATEGORY_OTHER": 7, + "COMMAND_CATEGORY_PACKAGE_MANAGEMENT": 8, + "COMMAND_CATEGORY_CONTAINER": 9, + "COMMAND_CATEGORY_SOURCE_CONTROL": 10, + "COMMAND_CATEGORY_SCHEDULING": 11, + "COMMAND_CATEGORY_MONITORING": 12, + "COMMAND_CATEGORY_USER_MANAGEMENT": 13, + "COMMAND_CATEGORY_TRANSFER": 14, + "COMMAND_CATEGORY_DEVELOPMENT": 15, } ) @@ -1673,7 +1713,7 @@ const file_teleport_summarizer_v1_summarizer_proto_rawDesc = "" + "\x19SUMMARY_STATE_UNSPECIFIED\x10\x00\x12\x19\n" + "\x15SUMMARY_STATE_PENDING\x10\x01\x12\x19\n" + "\x15SUMMARY_STATE_SUCCESS\x10\x02\x12\x17\n" + - "\x13SUMMARY_STATE_ERROR\x10\x03*\x9b\x02\n" + + "\x13SUMMARY_STATE_ERROR\x10\x03*\xb2\x04\n" + "\x0fCommandCategory\x12 \n" + "\x1cCOMMAND_CATEGORY_UNSPECIFIED\x10\x00\x12#\n" + "\x1fCOMMAND_CATEGORY_FILE_OPERATION\x10\x01\x12\x1c\n" + @@ -1682,7 +1722,16 @@ const file_teleport_summarizer_v1_summarizer_proto_rawDesc = "" + "\x1eCOMMAND_CATEGORY_SYSTEM_CONFIG\x10\x04\x12 \n" + "\x1cCOMMAND_CATEGORY_DATA_ACCESS\x10\x05\x12#\n" + "\x1fCOMMAND_CATEGORY_AUTHENTICATION\x10\x06\x12\x1a\n" + - "\x16COMMAND_CATEGORY_OTHER\x10\a*\x80\x01\n" + + "\x16COMMAND_CATEGORY_OTHER\x10\a\x12'\n" + + "#COMMAND_CATEGORY_PACKAGE_MANAGEMENT\x10\b\x12\x1e\n" + + "\x1aCOMMAND_CATEGORY_CONTAINER\x10\t\x12#\n" + + "\x1fCOMMAND_CATEGORY_SOURCE_CONTROL\x10\n" + + "\x12\x1f\n" + + "\x1bCOMMAND_CATEGORY_SCHEDULING\x10\v\x12\x1f\n" + + "\x1bCOMMAND_CATEGORY_MONITORING\x10\f\x12$\n" + + " COMMAND_CATEGORY_USER_MANAGEMENT\x10\r\x12\x1d\n" + + "\x19COMMAND_CATEGORY_TRANSFER\x10\x0e\x12 \n" + + "\x1cCOMMAND_CATEGORY_DEVELOPMENT\x10\x0f*\x80\x01\n" + "\tRiskLevel\x12\x1a\n" + "\x16RISK_LEVEL_UNSPECIFIED\x10\x00\x12\x12\n" + "\x0eRISK_LEVEL_LOW\x10\x01\x12\x15\n" + diff --git a/api/proto/teleport/summarizer/v1/summarizer.proto b/api/proto/teleport/summarizer/v1/summarizer.proto index 52567a88ff3..bac4df43fc5 100644 --- a/api/proto/teleport/summarizer/v1/summarizer.proto +++ b/api/proto/teleport/summarizer/v1/summarizer.proto @@ -215,6 +215,30 @@ enum CommandCategory { // CommandCategoryOther indicates that the command does not fit into any of the // other categories. COMMAND_CATEGORY_OTHER = 7; + // CommandCategoryPackageManagement indicates that the command is related to + // package management, such as installing or updating packages. + COMMAND_CATEGORY_PACKAGE_MANAGEMENT = 8; + // CommandCategoryContainer indicates that the command is related to container + // operations, such as Docker or Kubernetes commands. + COMMAND_CATEGORY_CONTAINER = 9; + // CommandCategorySourceControl indicates that the command is related to source + // control, such as Git operations. + COMMAND_CATEGORY_SOURCE_CONTROL = 10; + // CommandCategoryScheduling indicates that the command is related to scheduling, + // such as cron or systemd timer operations. + COMMAND_CATEGORY_SCHEDULING = 11; + // CommandCategoryMonitoring indicates that the command is related to monitoring + // and observability. + COMMAND_CATEGORY_MONITORING = 12; + // CommandCategoryUserManagement indicates that the command is related to user + // and group management. + COMMAND_CATEGORY_USER_MANAGEMENT = 13; + // CommandCategoryTransfer indicates that the command is related to data transfer + // operations, such as scp or rsync. + COMMAND_CATEGORY_TRANSFER = 14; + // CommandCategoryDevelopment indicates that the command is related to development + // tools, such as compilers or build tools. + COMMAND_CATEGORY_DEVELOPMENT = 15; } // RiskLevel represents the risk level associated with a command. diff --git a/web/packages/design/src/Icon/Icons.story.tsx b/web/packages/design/src/Icon/Icons.story.tsx index 96c9a0e2724..9c25b2a740e 100644 --- a/web/packages/design/src/Icon/Icons.story.tsx +++ b/web/packages/design/src/Icon/Icons.story.tsx @@ -54,6 +54,7 @@ export const Icons = () => ( + @@ -130,6 +131,7 @@ export const Icons = () => ( + diff --git a/web/packages/design/src/Icon/Icons/ArrowUpRight.tsx b/web/packages/design/src/Icon/Icons/ArrowUpRight.tsx new file mode 100644 index 00000000000..22fc13df7a9 --- /dev/null +++ b/web/packages/design/src/Icon/Icons/ArrowUpRight.tsx @@ -0,0 +1,68 @@ +/** + * Teleport + * Copyright (C) 2023 Gravitational, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +/* MIT License + +Copyright (c) 2020 Phosphor Icons + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +*/ + +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../Icon'; + +/* + +THIS FILE IS GENERATED. DO NOT EDIT. + +*/ + +export const ArrowUpRight = forwardRef( + ({ size = 24, color, ...otherProps }, ref) => ( + + + + ) +); diff --git a/web/packages/design/src/Icon/Icons/Flag.tsx b/web/packages/design/src/Icon/Icons/Flag.tsx new file mode 100644 index 00000000000..e2ac3c40c8f --- /dev/null +++ b/web/packages/design/src/Icon/Icons/Flag.tsx @@ -0,0 +1,69 @@ +/** + * Teleport + * Copyright (C) 2023 Gravitational, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +/* MIT License + +Copyright (c) 2020 Phosphor Icons + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +*/ + +import { forwardRef } from 'react'; + +import { Icon, IconProps } from '../Icon'; + +/* + +THIS FILE IS GENERATED. DO NOT EDIT. + +*/ + +export const Flag = forwardRef( + ({ size = 24, color, ...otherProps }, ref) => ( + + + + ) +); diff --git a/web/packages/design/src/Icon/assets/ArrowUpRight.svg b/web/packages/design/src/Icon/assets/ArrowUpRight.svg new file mode 100644 index 00000000000..054982015f1 --- /dev/null +++ b/web/packages/design/src/Icon/assets/ArrowUpRight.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/packages/design/src/Icon/assets/Flag.svg b/web/packages/design/src/Icon/assets/Flag.svg new file mode 100644 index 00000000000..89d2e61b989 --- /dev/null +++ b/web/packages/design/src/Icon/assets/Flag.svg @@ -0,0 +1,3 @@ + + + diff --git a/web/packages/design/src/Icon/index.ts b/web/packages/design/src/Icon/index.ts index 3d0ac0b3b93..3abca6ead3d 100644 --- a/web/packages/design/src/Icon/index.ts +++ b/web/packages/design/src/Icon/index.ts @@ -43,6 +43,7 @@ export { ArrowRight } from './Icons/ArrowRight'; export { ArrowSquareIn } from './Icons/ArrowSquareIn'; export { ArrowSquareOut } from './Icons/ArrowSquareOut'; export { ArrowUp } from './Icons/ArrowUp'; +export { ArrowUpRight } from './Icons/ArrowUpRight'; export { ArrowsIn } from './Icons/ArrowsIn'; export { ArrowsOut } from './Icons/ArrowsOut'; export { BedrockLogo } from './Icons/BedrockLogo'; @@ -119,6 +120,7 @@ export { Facebook } from './Icons/Facebook'; export { FastForward } from './Icons/FastForward'; export { FilmStrip } from './Icons/FilmStrip'; export { FingerprintSimple } from './Icons/FingerprintSimple'; +export { Flag } from './Icons/Flag'; export { Floppy } from './Icons/Floppy'; export { FlowArrow } from './Icons/FlowArrow'; export { FolderPlus } from './Icons/FolderPlus';