Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

upgrade api client to handle k8s server 1.28 #59

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Conversation

RonaldEAM
Copy link
Contributor

No description provided.

@RonaldEAM RonaldEAM requested a review from a team as a code owner January 12, 2024 21:31
Copy link

⚠️  1 New Security Finding

The latest commit contains 1 new security finding.

Findings
CWE-798: Use of Hard-coded Credentials
Original Rule ID: generic.secrets.security.detected-snyk-api-key.detected-snyk-api-key
The product contains hard-coded credentials, such as a password or cryptographic key, which it uses for its own inbound authentication, outbound communication to external components, or encryption of internal data.

Snyk API Key detected
 📘 Learn More
"text": "{\"kind\":\"NodeList\",\"apiVersion\":\"v1\",\"metadata\":{\"resourceVersion\":\"51780\"},\"items\":[{\"metadata\":{\"name\":\"docker-desktop\",\"uid\":\"7cf4b7cc-b6c8-474a-a4c6-8858a3b597f2\",\"resourceVersion\":\"51758\",\"creationTimestamp\":\"2024-01-11T15:50:15Z\",\"labels\":{\"beta.kubernetes.io/arch\":\"amd64\",\"beta.kubernetes.io/os\":\"linux\",\"kubernetes.io/arch\":\"amd64\",\"kubernetes.io/hostname\":\"docker-desktop\",\"kubernetes.io/os\":\"linux\",\"node-role.kubernetes.io/control-plane\":\"\",\"node.kubernetes.io/exclude-from-external-load-balancers\":\"\"},\"annotations\":{\"kubeadm.alpha.kubernetes.io/cri-socket\":\"unix:///var/run/cri-dockerd.sock\",\"node.alpha.kubernetes.io/ttl\":\"0\",\"volumes.kubernetes.io/controller-managed-attach-detach\":\"true\"},\"managedFields\":[{\"manager\":\"kubelet\",\"operation\":\"Update\",\"apiVersion\":\"v1\",\"time\":\"2024-01-11T15:50:15Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:volumes.kubernetes.io/controller-managed-attach-detach\":{}},\"f:labels\":{\".\":{},\"f:beta.kubernetes.io/arch\":{},\"f:beta.kubernetes.io/os\":{},\"f:kubernetes.io/arch\":{},\"f:kubernetes.io/hostname\":{},\"f:kubernetes.io/os\":{}}}}},{\"manager\":\"kubeadm\",\"operation\":\"Update\",\"apiVersion\":\"v1\",\"time\":\"2024-01-11T15:50:18Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:annotations\":{\"f:kubeadm.alpha.kubernetes.io/cri-socket\":{}},\"f:labels\":{\"f:node-role.kubernetes.io/control-plane\":{},\"f:node.kubernetes.io/exclude-from-external-load-balancers\":{}}}}},{\"manager\":\"kube-controller-manager\",\"operation\":\"Update\",\"apiVersion\":\"v1\",\"time\":\"2024-01-11T22:50:28Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:annotations\":{\"f:node.alpha.kubernetes.io/ttl\":{}}}}},{\"manager\":\"kubelet\",\"operation\":\"Update\",\"apiVersion\":\"v1\",\"time\":\"2024-01-12T17:13:20Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:status\":{\"f:allocatable\":{\"f:memory\":{}},\"f:capacity\":{\"f:memory\":{}},\"f:conditions\":{\"k:{\\\"type\\\":\\\"DiskPressure\\\"}\":{\"f:lastHeartbeatTime\":{}},\"k:{\\\"type\\\":\\\"MemoryPressure\\\"}\":{\"f:lastHeartbeatTime\":{}},\"k:{\\\"type\\\":\\\"PIDPressure\\\"}\":{\"f:lastHeartbeatTime\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\"f:lastHeartbeatTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{}}},\"f:nodeInfo\":{\"f:bootID\":{}}}},\"subresource\":\"status\"}]},\"spec\":{},\"status\":{\"capacity\":{\"cpu\":\"12\",\"ephemeral-storage\":\"91957160Ki\",\"memory\":\"16385072Ki\",\"pods\":\"110\"},\"allocatable\":{\"cpu\":\"12\",\"ephemeral-storage\":\"84747718516\",\"memory\":\"16282672Ki\",\"pods\":\"110\"},\"conditions\":[{\"type\":\"MemoryPressure\",\"status\":\"False\",\"lastHeartbeatTime\":\"2024-01-12T17:13:20Z\",\"lastTransitionTime\":\"2024-01-11T15:50:14Z\",\"reason\":\"KubeletHasSufficientMemory\",\"message\":\"kubelet has sufficient memory available\"},{\"type\":\"DiskPressure\",\"status\":\"False\",\"lastHeartbeatTime\":\"2024-01-12T17:13:20Z\",\"lastTransitionTime\":\"2024-01-11T15:50:14Z\",\"reason\":\"KubeletHasNoDiskPressure\",\"message\":\"kubelet has no disk pressure\"},{\"type\":\"PIDPressure\",\"status\":\"False\",\"lastHeartbeatTime\":\"2024-01-12T17:13:20Z\",\"lastTransitionTime\":\"2024-01-11T15:50:14Z\",\"reason\":\"KubeletHasSufficientPID\",\"message\":\"kubelet has sufficient PID available\"},{\"type\":\"Ready\",\"status\":\"True\",\"lastHeartbeatTime\":\"2024-01-12T17:13:20Z\",\"lastTransitionTime\":\"2024-01-11T22:50:27Z\",\"reason\":\"KubeletReady\",\"message\":\"kubelet is posting ready status\"}],\"addresses\":[{\"type\":\"InternalIP\",\"address\":\"192.168.65.3\"},{\"type\":\"Hostname\",\"address\":\"docker-desktop\"}],\"daemonEndpoints\":{\"kubeletEndpoint\":{\"Port\":10250}},\"nodeInfo\":{\"machineID\":\"919d331f-76c9-4c76-a5ea-97c266068288\",\"systemUUID\":\"919d331f-76c9-4c76-a5ea-97c266068288\",\"bootID\":\"fb76fe62-b05b-473d-95c9-be5a422f4e28\",\"kernelVersion\":\"6.5.11-linuxkit\",\"osImage\":\"Docker Desktop\",\"containerRuntimeVersion\":\"docker://24.0.7\",\"kubeletVersion\":\"v1.28.2\",\"kubeProxyVersion\":\"v1.28.2\",\"operatingSystem\":\"linux\",\"architecture\":\"amd64\"},\"images\":[{\"names\":[\"jupiter-integration-service-deploy-0adb2a04db43259ed990d705a9b5a299596f56bb-c1f49321-773e-4b79-9ad4-98cc2d8e04a7:latest\"],\"sizeBytes\":2789256187},{\"names\":[\"081157560428.dkr.ecr.us-east-1.amazonaws.com/base-deploy-terraform-v1.x-extras@sha256:345857deccc9f0fdab2cc9db1d21d093b9a6722132ca0a008d94ceeb0c8b0b42\",\"081157560428.dkr.ecr.us-east-1.amazonaws.com/base-deploy-terraform-v1.x-extras:11\"],\"sizeBytes\":2701029005},{\"names\":[\"integration-palo-alto-deploy-a3a46424bc8ef89544d478a614f92cc21fd37d28-01f7278d-5a8b-4546-9fee-c5f7eb65749d:latest\"],\"sizeBytes\":2251154371},{\"names\":[\"jupiter-integration-snyk-deploy-77d585bc49ec12c94f29181a89619ff6add1d860-b08e1a47-321c-44ed-8306-91add082bc03:latest\"],\"sizeBytes\":2250664571},{\"names\":[\"jupiter-integration-snyk-deploy-133b9fcfede9cdca6a7123435c794ffc5592b8d1-69e056f3-e2e0-4b5a-9192-c9f0fc70f608:latest\"],\"sizeBytes\":2250463563},{\"names\":[\"jupiter-integration-github-deploy-a23bb4910a7da254430f347911a36fe00d1e3643-722189d2-e2b3-4882-bccd-bd81e30b621a:latest\"],\"sizeBytes\":2236150016},{\"names\":[\"jupiter-integration-github-deploy-a23bb4910a7da254430f347911a36fe00d1e3643-05608a10-f4dd-4d48-83e3-40766de18f7a:latest\"],\"sizeBytes\":2236150000},{\"names\":[\"jupiter-integration-github-deploy-a98bf6ba33d0cb296318de8cb04949e230ad6481-26fa9dcd-0066-4edf-8e15-9d2124b49b43:latest\"],\"sizeBytes\":2234832903},{\"names\":[\"jupiter-integration-github-deploy-a98bf6ba33d0cb296318de8cb04949e230ad6481-3b35888b-a849-4390-ba35-697972bf3cf4:latest\"],\"sizeBytes\":2234830279},{\"names\":[\"jupiter-integration-github-deploy-a98bf6ba33d0cb296318de8cb04949e230ad6481-cbe59f3b-7d78-4eca-85c5-a382d6c32f22:latest\"],\"sizeBytes\":2234830256},{\"names\":[\"jupiter-integration-github-deploy-a98bf6ba33d0cb296318de8cb04949e230ad6481-68bbd468-455d-4d63-a504-efddf04016a2:latest\"],\"sizeBytes\":2234830224},{\"names\":[\"jupiter-integration-github-deploy-a98bf6ba33d0cb296318de8cb04949e230ad6481-f26aac19-1a21-4413-86cb-b37760e8ffc0:latest\"],\"sizeBytes\":2234830176},{\"names\":[\"jupiter-integration-github-deploy-a98bf6ba33d0cb296318de8cb04949e230ad6481-90a25787-f4ad-4740-8db3-62f7b1f500ca:latest\"],\"sizeBytes\":2234830121},{\"names\":[\"jupiter-integration-github-deploy-a98bf6ba33d0cb296318de8cb04949e230ad6481-24cd75d0-0c1a-46a5-849a-5085cc46e522:latest\"],\"sizeBytes\":2234829946},{\"names\":[\"jupiter-integration-qualys-deploy-a68757e2cdeae23ef9197e04a2ecbdf8d6c9d933-3fd13512-6a6e-4322-bae9-7359b557decc:latest\"],\"sizeBytes\":2217481293},{\"names\":[\"jupiter-integration-qualys-deploy-a68757e2cdeae23ef9197e04a2ecbdf8d6c9d933-80ab279a-0bfe-4498-bdef-b98967def6c2:latest\"],\"sizeBytes\":2217481269},{\"names\":[\"jupiter-integration-qualys-deploy-a68757e2cdeae23ef9197e04a2ecbdf8d6c9d933-49090a33-a843-4698-b49f-362289024509:latest\"],\"sizeBytes\":2217477163},{\"names\":[\"jupiter-integration-qualys-deploy-a68757e2cdeae23ef9197e04a2ecbdf8d6c9d933-7fd6ed94-32f0-49b1-a353-03faebd4acaf:latest\"],\"sizeBytes\":2217477162},{\"names\":[\"jupiter-integration-snyk-deploy-133b9fcfede9cdca6a7123435c794ffc5592b8d1-fb6dc22b-1657-482a-9604-13b577862fc6:latest\"],\"sizeBytes\":2217241742},{\"names\":[\"jupiter-integration-snyk-deploy-133b9fcfede9cdca6a7123435c794ffc5592b8d1-b7fdfb7b-1507-4722-b6f8-1e2aeb38a0dd:latest\"],\"sizeBytes\":2217241507},{\"names\":[\"jupiter-integration-snyk-deploy-133b9fcfede9cdca6a7123435c794ffc5592b8d1-c88a7176-ca3d-49ef-8270-b4b7b2619a86:latest\"],\"sizeBytes\":2217241502},{\"names\":[\"jupiter-integration-snyk-deploy-77d585bc49ec12c94f29181a89619ff6add1d860-fcf101c6-83e1-43e1-ae13-ad207b6f7865:latest\"],\"sizeBytes\":2217241468},{\"names\":[\"jupiter-integration-snyk-deploy-77d585bc49ec12c94f29181a89619ff6add1d860-a7374626-6cac-4f02-970f-80314778392a:latest\"],\"sizeBytes\":2217241468},{\"names\":[\"integration-oracle-cloud-deploy-337c4244e116d97a29f677ba7506760472586b2e-f7ea94d6-52d9-4254-8880-efca6f6cef3e:latest\"],\"sizeBytes\":2199229909},{\"names\":[\"081157560428.dkr.ecr.us-east-1.amazonaws.com/base-deploy-terraform-v1.3@sha256:86419a69a9a12a7fe05f91b98a41174f7a0d845a3216715ce66013111ff52e56\"],\"sizeBytes\":2159633319},{\"names\":[\"081157560428.dkr.ecr.us-east-1.amazonaws.com/base-deploy-terraform-v1.3@sha256:31dc3c4dd792ebf702609a8c20d1d55d65a7aad31912f0d6986bab464655b701\",\"081157560428.dkr.ecr.us-east-1.amazonaws.com/base-deploy-terraform-v1.3:11\"],\"sizeBytes\":2104876400},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-a57213ec-0e69-4a86-aacc-2252e56e5c17:latest\"],\"sizeBytes\":1917066318},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-29d4e283-5443-436c-a5cb-254b3ed4a9d2:latest\"],\"sizeBytes\":1917066097},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-51540f9d-7ed5-4482-8a01-47020cbdeaba:latest\"],\"sizeBytes\":1917061362},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-5a0e7e60-3697-4b5f-8c08-2bfa487b07ca:latest\"],\"sizeBytes\":1917061362},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-5b292cfe-792a-4a59-9350-6db0ef438359:latest\"],\"sizeBytes\":1917060922},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-f8d90797-7dbf-4fb6-afd9-f036d6c1106b:latest\"],\"sizeBytes\":1917060844},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-1b8ae7d0-54b7-4cf5-b168-09a6985b6866:latest\"],\"sizeBytes\":1914780301},{\"names\":[\"integration-palo-alto-deploy-44e2f72741184ec657b2d40dc45c03266c5b21a7-729d7898-85e3-4899-9ea1-fb058fc606cd:latest\"],\"sizeBytes\":1914779979},{\"names\":[\"jupiter-integration-github-deploy-53e7266d1de72b94640164d9afaf8e480c33ceb4-2e558d10-ab51-4cee-9afb-ba3f58ce1425:latest\",\"jupiter-integration-github-deploy-fb31695144f5e41f74591956db86838387a94abc-2b29df49-1e19-4def-bef4-98528dc49ede:latest\"],\"sizeBytes\":1914131831},{\"names\":[\"jupiter-integration-github-deploy-0885d5eda63e0087751e9a567ba0fc764dbc58ec-9c8238b8-18ad-4854-aa86-63665590ed31:latest\"],\"sizeBytes\":1900901350},{\"names\":[\"jupiter-integration-github-deploy-0885d5eda63e0087751e9a567ba0fc764dbc58ec-ec86b77e-c199-4af3-99af-d5e0d5f4bdff:latest\"],\"sizeBytes\":1900901269},{\"names\":[\"jupiter-integration-github-deploy-0885d5eda63e0087751e9a567ba0fc764dbc58ec-a352266d-3355-481f-adb5-d67781031b4d:latest\"],\"sizeBytes\":1900896409},{\"names\":[\"jupiter-integration-github-deploy-0885d5eda63e0087751e9a567ba0fc764dbc58ec-623bb530-ed1e-4c8d-ac6b-530349489194:latest\"],\"sizeBytes\":1900896303},{\"names\":[\"jupiter-integration-github-deploy-210e833e37d13d1483ff5138764332fecc75c8d1-6df2e008-e85a-4d17-bf68-665263918946:latest\"],\"sizeBytes\":1900894988},{\"names\":[\"jupiter-integration-github-deploy-420e638f32a3de8e78b86e05ad316d1750aa7a06-3697b7be-3779-4bde-b379-04fe2280ec46:latest\"],\"sizeBytes\":1900894938},{\"names\":[\"jupiter-integration-github-deploy-210e833e37d13d1483ff5138764332fecc75c8d1-2bb7b0a3-bad9-42aa-a7d7-89485be5df00:latest\"],\"sizeBytes\":1900894820},{\"names\":[\"jupiter-integration-github-deploy-210e833e37d13d1483ff5138764332fecc75c8d1-2447d1ba-6f1e-443d-a0b3-3a6b7dc2a362:latest\"],\"sizeBytes\":1900894675},{\"names\":[\"jupiter-integration-github-deploy-0885d5eda63e0087751e9a567ba0fc764dbc58ec-0620caab-da9a-4e1c-a0ff-963629a1bfcf:latest\"],\"sizeBytes\":1900892538},{\"names\":[\"jupiter-integration-github-deploy-0885d5eda63e0087751e9a567ba0fc764dbc58ec-a95a0d8f-89ba-4546-8e12-bea64e05c590:latest\"],\"sizeBytes\":1900889984},{\"names\":[\"jupiter-integration-github-deploy-0885d5eda63e0087751e9a567ba0fc764dbc58ec-47c09170-7865-4428-9f4c-0beeb0c04d30:latest\"],\"sizeBytes\":1900842412},{\"names\":[\"jupiter-integration-github-deploy-c0831fe401125a4ca53c409960a7a43a2098e34b-540ef1d3-f365-4f7a-8561-6dc7897ae774:latest\"],\"sizeBytes\":1872994272},{\"names\":[\"jupiter-integration-github-deploy-c0831fe401125a4ca53c409960a7a43a2098e34b-9df157f4-6a62-4bc9-b9b6-49281c15d0fd:latest\"],\"sizeBytes\":1872994263},{\"names\":[\"jupiter-integration-github-deploy-c8dd81376b26a8ac60657b4ca92d1169df8752cf-77bf876e-f7e8-491f-b13b-d5ccdcca68d3:latest\"],\"sizeBytes\":1862215735},{\"names\":[\"jupiter-integration-github-deploy-f96f0d7bae3326cd7589b11a926e5afe6824dab0-e4b54287-27d2-4c70-a517-29f7ac026a36:latest\"],\"sizeBytes\":1862215735}]}}]}"

Not a finding? Ignore it by adding a comment on the line with just the word noboost.

Scanner: boostsecurity - BoostSecurity semgrep

Copy link

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@types/node 20.11.0 None +1 4.05 MB types
@kubernetes/client-node 0.14.3...0.20.0 shell +14/-59 14.8 MB brendandburns

@RonaldEAM RonaldEAM merged commit 68bec5f into main Jan 15, 2024
3 of 4 checks passed
@RonaldEAM RonaldEAM deleted the upgrade-api-client branch January 15, 2024 15:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants