Making Docker and Kubernetes management easy.
740 matches across 7 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …nels/node-labels-table/node-labels-table-controller.js | 2 | function NodeLabelsTableController() { |
| LOW | …lability-select/node-availability-select-controller.js | 2 | function NodeAvailabilitySelectController() { |
| LOW | …e-details-panel/swarm-node-details-panel-controller.js | 6 | function SwarmNodeDetailsPanelController(NodeService, LabelHelper, Notifications, $state) { |
| LOW | app/docker/components/log-viewer/logViewerController.js | 31 | function handleLogsCollectionChange(enabled) { |
| LOW | app/docker/components/log-viewer/logViewerController.js | 39 | function handleLogsWrapLinesChange(enabled) { |
| LOW | app/docker/components/log-viewer/logViewerController.js | 45 | function handleDisplayTimestampsChange(enabled) { |
| LOW | …er/views/swarm/visualizer/swarmVisualizerController.js | 19 | $scope.handleChangeDisplayOnlyRunningTasks = function handleChangeDisplayOnlyRunningTasks(enabled) { |
| LOW | …er/views/swarm/visualizer/swarmVisualizerController.js | 26 | $scope.handleChangeDisplayNodeLabels = function handleChangeDisplayNodeLabels(enabled) { |
| LOW | …host/host-browser-view/host-browser-view-controller.js | 4 | function HostBrowserViewController(SystemService, Notifications) { |
| LOW | …ews/nodes/node-details/node-details-view-controller.js | 9 | function NodeDetailsViewController($q, $stateParams, NodeService, StateManager, AgentService, Authentication, Notifica |
| LOW | app/docker/views/networks/networksController.js | 35 | function groupSwarmNetworksManagerNodesFirst(networks, agents) { |
| LOW | …ocker/views/networks/create/createNetworkController.js | 126 | function prepareAuxiliaryAddresses(ipamConfig, ipFormValues) { |
| LOW | …ocker/views/networks/create/createNetworkController.js | 190 | function modifyNetworkConfigurationForMacvlanConfigOnly(config) { |
| LOW | …ocker/views/networks/create/createNetworkController.js | 197 | function modifyNetworkConfigurationForMacvlanConfigFrom(config, selectedNetworkConfig) { |
| LOW | …ker/views/containers/stats/containerStatsController.js | 75 | function calculateCPUPercentWindows(stats) { |
| LOW | app/docker/views/volumes/edit/volumeController.js | 38 | function getVolumeDataFromContainer(container, volumeId) { |
| LOW | app/docker/views/services/edit/serviceController.js | 273 | $scope.removePlacementConstraint = function removePlacementConstraint(service, index) { |
| LOW | app/docker/views/services/edit/serviceController.js | 306 | $scope.removePortPublishedBinding = function removePortPublishedBinding(service, index) { |
| LOW | …ocker/views/services/create/createServiceController.js | 323 | function createMountObjectFromVolume(volumeObject, target, readonly) { |
| LOW | …ocker/views/services/create/createServiceController.js | 434 | function prepareResourcesCpuConfig(config, input) { |
| LOW | …ocker/views/services/create/createServiceController.js | 445 | function prepareResourcesMemoryConfig(config, input) { |
| LOW | …ocker/views/services/create/createServiceController.js | 575 | function initSlidersMaxValuesBasedOnNodeData(nodes) { |
| LOW | app/docker/helpers/imageHelper.js | 20 | function createImageConfigForContainer(imageModel) { |
| LOW | app/docker/helpers/imageHelper.js | 30 | function removeDigestFromRepository(repository) { |
| LOW | app/docker/helpers/serviceHelper.js | 11 | function associateTasksToServiceAJS(service, tasks) { |
| LOW | app/docker/helpers/taskHelper.js | 11 | function associateContainerToTaskAJS(task, containers) { |
| LOW | app/docker/services/networkService.js | 52 | async function connectContainerAngularJS(environmentId, networkId, containerId) { |
| LOW | app/docker/services/volumeService.js | 62 | function createVolumeConfiguration(name, driver, driverOptions) { |
| LOW | app/docker/services/buildService.js | 29 | async function buildImageFromUploadAngularJS(environmentId, names, file, path) { |
| LOW | app/docker/services/buildService.js | 40 | async function buildImageFromURLAngularJS(environmentId, names, url, path) { |
| LOW | app/docker/services/buildService.js | 50 | async function buildImageFromDockerfileContentAngularJS(environmentId, names, content) { |
| LOW | app/docker/services/buildService.js | 61 | async function buildImageFromDockerfileContentAndFilesAngularJS(environmentId, names, content, files) { |
| LOW | app/docker/services/containerService.js | 80 | async function updateRestartPolicyAngularJS(environmentId, id, restartPolicy, maximumRetryCounts) { |
| LOW | app/portainer/__module.js | 492 | function isTransitionRequiresAuthentication(transition) { |
| LOW | …er/settings/authentication/ldap/ldap-settings.model.js | 50 | export function buildOpenLDAPSettingsModel() { |
| LOW | …gs/authentication/ldap/ldap-settings-security/index.js | 42 | function updateReactValuesFromSettings(settings) { |
| LOW | app/portainer/models/registry.js | 21 | export function RegistryManagementConfigurationDefaultModel(registry) { |
| LOW | app/portainer/models/registryRepository.js | 3 | export function RegistryRepositoryViewModel(item) { |
| LOW | app/portainer/models/registryRepository.js | 13 | export function RegistryRepositoryGitlabViewModel(data) { |
| LOW | app/portainer/models/group.js | 1 | export function EndpointGroupDefaultModel() { |
| LOW | app/portainer/models/group.js | 19 | export function EndpointGroupCreateRequest(model, endpoints) { |
| LOW | app/portainer/models/group.js | 26 | export function EndpointGroupUpdateRequest(model, endpoints) { |
| LOW | app/portainer/models/settings.js | 37 | export function InternalAuthSettingsViewModel(data) { |
| LOW | …models/resourceControl/resourceControlCreatePayload.js | 7 | export function ResourceControlCreatePayload(resourceId, resourceType, data) { |
| LOW | …/resourceControl/resourceControlOwnershipParameters.js | 9 | export function ResourceControlOwnershipParameters(adminOnly = false, publicOnly = false, users = [], teams = [], subRes |
| LOW | …ts/accessControlForm/porAccessControlFormController.js | 43 | function setAuthorizedUsersAndTeams(authorizedUsers, authorizedTeams) { |
| LOW | app/portainer/users/queries.ts | 25 | export function useIsCurrentUserTeamLeader() { |
| LOW | app/portainer/users/user.helpers.ts | 6 | export function filterNonAdministratorUsers(users: User[]) { |
| LOW | …settings/edge-compute/settingsEdgeComputeController.js | 7 | export default function SettingsEdgeComputeController($q, $async, $state, Notifications, SettingsService, StateManager) |
| LOW | …ngs/authentication/settingsAuthenticationController.js | 11 | function SettingsAuthenticationController($q, $scope, $state, Notifications, SettingsService, FileUploadService, TeamSer |
| LOW | …ngs/authentication/settingsAuthenticationController.js | 60 | $scope.authenticationMethodSelected = function authenticationMethodSelected(value) { |
| LOW | …ngs/authentication/settingsAuthenticationController.js | 195 | function isOAuthTeamMembershipFormValid() { |
| LOW | app/portainer/views/account/accountController.js | 104 | function confirmForceChangePassword() { |
| LOW | app/portainer/helpers/json.ts | 44 | export function jsonObjectsToArrayHandler(data: string): unknown[] { |
| LOW | app/portainer/helpers/stackHelper.js | 18 | function getExternalStacksFromLabel(items, label, type) { |
| LOW | app/portainer/services/chartService.js | 265 | function percentageBasedTooltipLabel(label, value) { |
| LOW | …p/portainer/services/dockerMaxApiVersionInterceptor.ts | 22 | export async function dockerMaxAPIVersionInterceptor( |
| LOW | app/portainer/services/http-request.helper.ts | 9 | export function dispatchCacheRefreshEvent() { |
| LOW | app/portainer/services/http-request.helper.ts | 15 | export function dispatchCacheRefreshEventIfNeeded(req: AxiosRequestConfig) { |
| LOW | app/portainer/services/http-request.helper.ts | 42 | export function registryAuthenticationHeader() { |
| 462 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | CONTRIBUTING.md | 121 | |
| LOW | app/docker/models/network.ts | 1 | import { IPAM, Network, NetworkContainer } from 'docker-types'; |
| LOW | app/portainer/services/fileUpload.js | 1 | import { PortainerEndpointCreationTypes } from '@/portainer/models/endpoint/models'; |
| LOW | app/kubernetes/converters/application.js | 141 | res.Volumes = data.spec.template.spec.volumes ? data.spec.template.spec.volumes : []; |
| LOW | app/kubernetes/models/history/models.js | 1 | export const KubernetesSystem_DefaultDeploymentUniqueLabelKey = 'pod-template-hash'; |
| LOW | app/kubernetes/horizontal-pod-auto-scaler/payload.js | 41 | // kind: '', |
| LOW | app/kubernetes/horizontal-pod-auto-scaler/payload.js | 61 | // } |
| LOW | app/kubernetes/horizontal-pod-auto-scaler/payload.js | 81 | |
| LOW | app/kubernetes/helpers/application/index.js | 501 | * @param {KubernetesApplication[]} applications Application list |
| LOW | app/react/hooks/useDebounce.ts | 1 | import { debounce } from 'lodash'; |
| LOW | app/react/hooks/useDebounce.ts | 21 | // // This will always print the first value of the "value" prop + the updated value of "v" |
| LOW | api/portainer.go | 341 | CreatedBy string `example:"admin"` |
| LOW | api/portainer.go | 1181 | Type StackType `json:"Type" example:"2"` |
| LOW | api/portainer.go | 1201 | // Path on disk to the repository hosting the Stack file |
| LOW | api/portainer.go | 1361 | // A note that will be displayed in the UI. Supports HTML content |
| LOW | api/portainer.go | 2001 | // PortainerAgentSignatureHeader represent the name of the header containing the digital signature |
| LOW | api/database/boltdb/db.go | 81 | |
| LOW | api/filesystem/filesystem.go | 41 | // PrivateKeyFile represents the name on disk of the file containing the private key. |
| LOW | api/edge/edge.go | 21 | DirEntries []filesystem.DirEntry |
| LOW | api/edge/edge.go | 41 | // Used only for EE |
| LOW | api/edge/edge.go | 81 | // Used for adding labels to Kubernetes manifests |
| LOW | api/http/handler/handler.go | 81 | // @title PortainerCE API |
| LOW | api/http/handler/handler.go | 101 | // @in header |
| LOW | api/http/handler/handler.go | 121 | // @tag.x-displayName Edge agent |
| LOW | api/http/handler/handler.go | 141 | // @tag.description Operate git repository |
| LOW | api/http/handler/handler.go | 161 | // @tag.name roles |
| LOW | api/http/handler/handler.go | 181 | // @tag.x-displayName Tags |
| LOW | api/http/handler/settings/settings_update.go | 101 | return nil |
| LOW | api/http/handler/settings/settings_inspect.go | 1 | package settings |
| LOW | api/http/handler/websocket/pod.go | 21 | |
| LOW | api/http/handler/websocket/attach.go | 21 | // @description If the nodeName query parameter is not specified, the request will be upgraded to the websocket protocol |
| LOW | api/http/handler/websocket/exec.go | 21 | } |
| LOW | api/http/handler/ssl/ssl_update.go | 21 | return errors.New("both certificate and key files should be provided") |
| LOW | api/http/handler/ssl/ssl_inspect.go | 1 | package ssl |
| LOW | …/http/handler/customtemplates/customtemplate_update.go | 41 | // Use authentication to clone the Git repository |
| LOW | …/http/handler/customtemplates/customtemplate_update.go | 101 | } |
| LOW | …/http/handler/customtemplates/customtemplate_create.go | 81 | |
| LOW | …/http/handler/customtemplates/customtemplate_create.go | 141 | // @summary Create a custom template |
| LOW | …/http/handler/customtemplates/customtemplate_create.go | 181 | return customTemplate, nil |
| LOW | …/http/handler/customtemplates/customtemplate_create.go | 441 | // @security ApiKeyAuth |
| LOW | api/http/handler/customtemplates/customtemplate_list.go | 21 | // @description List available custom templates. |
| LOW | …tp/handler/customtemplates/customtemplate_git_fetch.go | 21 | // @description **Access policy**: authenticated |
| LOW | api/http/handler/customtemplates/customtemplate_file.go | 21 | |
| LOW | …http/handler/customtemplates/customtemplate_inspect.go | 21 | // @description **Access policy**: authenticated |
| LOW | api/http/handler/docker/images/images_list.go | 21 | Created int64 `json:"created"` |
| LOW | …tp/handler/docker/containers/container_gpus_inspect.go | 21 | // @id dockerContainerGpusInspect |
| LOW | api/http/handler/edgegroups/edgegroup_list.go | 21 | shadowedEdgeGroup |
| LOW | api/http/handler/edgegroups/edgegroup_create.go | 61 | |
| LOW | api/http/handler/stacks/stack_inspect.go | 21 | // @tags stacks |
| LOW | api/http/handler/stacks/stack_update_git.go | 41 | |
| LOW | api/http/handler/stacks/stack_start.go | 21 | ) |
| LOW | api/http/handler/stacks/create_compose_stack.go | 121 | } |
| LOW | api/http/handler/stacks/create_compose_stack.go | 341 | payload.Env = env |
| LOW | api/http/handler/stacks/stack_file.go | 21 | } |
| LOW | api/http/handler/stacks/stack_migrate.go | 41 | // @security jwt |
| LOW | api/http/handler/stacks/stack_stop.go | 21 | // @summary Stops a stopped Stack |
| LOW | api/http/handler/stacks/create_kubernetes_stack.go | 121 | Output string `json:"Output"` |
| LOW | api/http/handler/stacks/create_kubernetes_stack.go | 181 | |
| LOW | api/http/handler/stacks/stack_associate.go | 21 | // @security ApiKeyAuth |
| LOW | api/http/handler/stacks/stack_list.go | 21 | // @id StackList |
| 143 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | …ngs/authentication/settingsAuthenticationController.js | 201 | const hasInvalidMapping = $scope.settings.OAuthSettings.TeamMemberships.OAuthClaimMappings.some((m) => !(m.ClaimVa |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …essManagement/AccessDatatable/AccessDatatable.test.tsx | 65 | const mockAccess = createMockAccess({ Name: 'John Doe' }); |
| LOW | …essManagement/AccessDatatable/AccessDatatable.test.tsx | 71 | expect(screen.getByText('John Doe')).toBeVisible(); |
| LOW | …ts/form-components/FormSection/FormSection.stories.tsx | 21 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam egestas turpis magna, |
| LOW | …ts/form-components/FormSection/FormSection.stories.tsx | 21 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam egestas turpis magna, |
| LOW | app/react/components/datatables/TableHeaderRow.test.tsx | 341 | { id: '1', name: 'John Doe', age: 30, status: 'active' }, |
| LOW | app/react/components/datatables/Datatable.test.tsx | 21 | { id: '1', name: 'John Doe', age: 30 }, |
| LOW | app/react/components/datatables/Datatable.test.tsx | 69 | expect(screen.getByText('John Doe')).toBeInTheDocument(); |
| LOW | api/git/git_test.go | 239 | sig := object.Signature{Name: "Test", Email: "test@test.com", When: time.Now()} |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | api/internal/registryutils/access/access.go | 41 | // validate access for kubernetes namespaces (leverage registry.RegistryAccesses[endpointId].Namespaces) |
| MEDIUM | api/internal/registryutils/access/access.go | 70 | // leverage registry.RegistryAccesses[endpointId].UserAccessPolicies (direct access) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | app/kubernetes/helpers/application/index.js | 506 | // to identify the helm managed applications, we need to check if the applications pod labels include |
| LOW | api/pendingactions/pendingactions.go | 83 | // For Kubernetes endpoints, we need to check if the endpoint is up by |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …react/components/SortableList/SortableList.stories.tsx | 132 | function getData(): Produce[] { |
| LOW | .storybook/public/mockServiceWorker.js | 121 | async function handleRequest(event, requestId, requestInterceptedAt) { |