mathieu-benoit / sail-sharp

Sail Sharp - Security best practices with .NET Core & Kubernetes
https://medium.com/p/c68ba253844a
3 stars 0 forks source link

Update open-pr.yml - humctl 0.14.0 #102

Closed mathieu-benoit closed 8 months ago

mathieu-benoit commented 8 months ago
github-actions[bot] commented 8 months ago

Deployment successfully completed for PR-102! :tada:

View in Humanitec

Deployment ID: 99cdb81f18aea42c8d888719096d80fa032871bc

Domains:

my-sample-app: ebertharveyschuppemueller.newapp.io

Deployment diff ### Deployment diff: ```json { "modules": { "add": null, "remove": [], "update": { "my-sample-app": [ { "from": "", "op": "replace", "path": "/spec/containers/my-sample-app/image", "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:74f8ececfaaa9f23f56085a57295815d0558fe31a4256e19421c735af34042b7" }, { "from": "", "op": "add", "path": "/spec/annotations/humanitec.io~1workload-source", "value": "https://github.com/mathieu-benoit/sail-sharp/blob/mathieu-benoit-patch-1/score/score.yaml" } ] } }, "shared": null } ```
Active Resources Usage ### Active Resources Usage: ```none ResType Class ResID Usage Last referencing deployment Last referencing deployment created ago base-env default base-env current deploy 17b9b975d17bed90 1m22.401750263s k8s-cluster default k8s-cluster current deploy 17b9b975d17bed90 1m22.401752397s k8s-namespace default k8s-namespace current deploy 17b9b975d17bed90 1m22.40175362s logging default logging current deploy 17b9b975d17bed90 1m22.401754531s workload default modules.my-sample-app current deploy 17b9b975d17bed90 1m22.401755483s dns default modules.my-sample-app.externals.dns current deploy 17b9b975d17bed90 1m22.401756334s ingress default modules.my-sample-app.externals.dns current deploy 17b9b975d17bed90 1m22.401757096s tls-cert default modules.my-sample-app.externals.dns current deploy 17b9b975d17bed90 1m22.401757837s route default modules.my-sample-app.externals.route current deploy 17b9b975d17bed90 1m22.401758739s base-env default my-base-env current deploy 17b9b975d17bed90 1m22.40175948s ```
Score Output ### Score Output: ```json { "id": "99cdb81f18aea42c8d888719096d80fa032871bc", "metadata": { "env_id": "pr-102", "name": "Update open-pr.yml - humctl 0.14.0", "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-102/draft/99cdb81f18aea42c8d888719096d80fa032871bc", "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59", "created_at": "2024-03-05T01:17:28.983509665Z", "last_modified_at": "2024-03-05T01:17:28.983509665Z" }, "modules": { "add": { "my-sample-app": { "externals": { "dns": { "class": "default", "type": "dns" }, "route": { "class": "default", "params": { "host": "${externals.dns.host}", "path": "/", "port": 8080 }, "type": "route" } }, "profile": "humanitec/default-module", "spec": { "annotations": { "humanitec.io/managed-by": "score-humanitec", "humanitec.io/workload-source": "https://github.com/mathieu-benoit/sail-sharp/blob/mathieu-benoit-patch-1/score/score.yaml" }, "containers": { "my-sample-app": { "id": "my-sample-app", "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:74f8ececfaaa9f23f56085a57295815d0558fe31a4256e19421c735af34042b7", "resources": { "limits": { "cpu": "250m", "memory": "256Mi" }, "requests": { "cpu": "25m", "memory": "64Mi" } }, "variables": { "MESSAGE": "Hello, World!", "NAMESPACE_NAME": "${pod.metadata.namespace}", "POD_NAME": "${pod.metadata.name}" } } }, "service": { "ports": { "tcp": { "container_port": 8080, "protocol": "TCP", "service_port": 8080 } } }, "terminationGracePeriodSeconds": 60 } } } } } ```
github-actions[bot] commented 8 months ago

Deployment successfully completed for PR-102! :tada:

View in Humanitec

Deployment ID: c3e057495384664831c6663eb500afe0129ef780

Domains:

my-sample-app: ebertharveyschuppemueller.newapp.io

Deployment diff ### Deployment diff: ```json { "modules": { "add": null, "remove": [], "update": { "my-sample-app": [ { "from": "", "op": "replace", "path": "/spec/containers/my-sample-app/image", "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:273ed9817fa21825df1f8c55f6930ab6a0fb704ebd529408fe3dbc6b82201871" }, { "from": "", "op": "add", "path": "/spec/annotations/humanitec.io~1workload-source", "value": "https://github.com/mathieu-benoit/sail-sharp/blob/mathieu-benoit-patch-1/score/score.yaml" } ] } }, "shared": null } ```
Active Resources Usage ### Active Resources Usage: ```none ResType Class ResID Usage Last referencing deployment Last referencing deployment created ago base-env default base-env current deploy 17b9ba15bfbd72b3 41.129940164s k8s-cluster default k8s-cluster current deploy 17b9ba15bfbd72b3 41.129949972s k8s-namespace default k8s-namespace current deploy 17b9ba15bfbd72b3 41.129952286s logging default logging current deploy 17b9ba15bfbd72b3 41.12995438s workload default modules.my-sample-app current deploy 17b9ba15bfbd72b3 41.129957045s dns default modules.my-sample-app.externals.dns current deploy 17b9ba15bfbd72b3 41.129959049s ingress default modules.my-sample-app.externals.dns current deploy 17b9ba15bfbd72b3 41.129960992s tls-cert default modules.my-sample-app.externals.dns current deploy 17b9ba15bfbd72b3 41.129962886s route default modules.my-sample-app.externals.route current deploy 17b9ba15bfbd72b3 41.12996504s base-env default my-base-env current deploy 17b9ba15bfbd72b3 41.129967054s ```
Resources Graph ### Resources Graph: ```none strict digraph { label="Resource Graph app: my-sample-app, env: pr-102 green: virtual nodes (environment, workloads), blue: active resources "; labelloc="t"; overlap="false"; splines="true"; "99f5ed5f56ae592d70fdefae7a798af6d729a7f1" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app type: workload class: default provision time: 23.014ms", style="filled", tooltip="guresid: 99f5ed5f56ae592d70fdefae7a798af6d729a7f1", weight=0 ]; "99f5ed5f56ae592d70fdefae7a798af6d729a7f1" -> "c912473d53a83d2fa8b017b1acfa69459c90452b" [ weight=0 ]; "99f5ed5f56ae592d70fdefae7a798af6d729a7f1" -> "cf7f9a9fff1d846079e6218eba3da38dd492c77b" [ weight=0 ]; "base" [ color="2", colorscheme="greens3", fillcolor="1", label="base", style="filled", weight=0 ]; "base" -> "d89ca89e7978fa23290cad6146c7aaf607d2cf49" [ weight=0 ]; "my-sample-app" [ color="2", colorscheme="greens3", fillcolor="1", label="workload.my-sample-app", style="filled", weight=0 ]; "my-sample-app" -> "base" [ weight=0 ]; "my-sample-app" -> "99f5ed5f56ae592d70fdefae7a798af6d729a7f1" [ weight=0 ]; "c912473d53a83d2fa8b017b1acfa69459c90452b" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns type: dns class: default provision time: 27.54279s", style="filled", tooltip="guresid: c912473d53a83d2fa8b017b1acfa69459c90452b", weight=0 ]; "d34a016abfca3e5bce6acde8e069720eadeba255" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns type: tls-cert class: default provision time: 56.833ms", style="filled", tooltip="guresid: d34a016abfca3e5bce6acde8e069720eadeba255", weight=0 ]; "d34a016abfca3e5bce6acde8e069720eadeba255" -> "c912473d53a83d2fa8b017b1acfa69459c90452b" [ weight=0 ]; "93f8695f24adc4800a842987954e0ea7e2ea9c41" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns type: ingress class: default provision time: 65.807ms", style="filled", tooltip="guresid: 93f8695f24adc4800a842987954e0ea7e2ea9c41", weight=0 ]; "93f8695f24adc4800a842987954e0ea7e2ea9c41" -> "d34a016abfca3e5bce6acde8e069720eadeba255" [ weight=0 ]; "93f8695f24adc4800a842987954e0ea7e2ea9c41" -> "c912473d53a83d2fa8b017b1acfa69459c90452b" [ weight=0 ]; "d89ca89e7978fa23290cad6146c7aaf607d2cf49" [ color="2", colorscheme="blues3", fillcolor="1", label="id: base-env type: base-env class: default provision time: 27.487741s", style="filled", tooltip="guresid: d89ca89e7978fa23290cad6146c7aaf607d2cf49", weight=0 ]; "cf7f9a9fff1d846079e6218eba3da38dd492c77b" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.route type: route class: default provision time: 27.62019s", style="filled", tooltip="guresid: cf7f9a9fff1d846079e6218eba3da38dd492c77b", weight=0 ]; } ```
Score Output ### Score Output: ```json { "id": "c3e057495384664831c6663eb500afe0129ef780", "metadata": { "env_id": "pr-102", "name": "Update open-pr.yml - resources graph", "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-102/draft/c3e057495384664831c6663eb500afe0129ef780", "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59", "created_at": "2024-03-05T01:28:55.766532589Z", "last_modified_at": "2024-03-05T01:28:55.766532589Z" }, "modules": { "add": { "my-sample-app": { "externals": { "dns": { "class": "default", "type": "dns" }, "route": { "class": "default", "params": { "host": "${externals.dns.host}", "path": "/", "port": 8080 }, "type": "route" } }, "profile": "humanitec/default-module", "spec": { "annotations": { "humanitec.io/managed-by": "score-humanitec", "humanitec.io/workload-source": "https://github.com/mathieu-benoit/sail-sharp/blob/mathieu-benoit-patch-1/score/score.yaml" }, "containers": { "my-sample-app": { "id": "my-sample-app", "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:273ed9817fa21825df1f8c55f6930ab6a0fb704ebd529408fe3dbc6b82201871", "resources": { "limits": { "cpu": "250m", "memory": "256Mi" }, "requests": { "cpu": "25m", "memory": "64Mi" } }, "variables": { "MESSAGE": "Hello, World!", "NAMESPACE_NAME": "${pod.metadata.namespace}", "POD_NAME": "${pod.metadata.name}" } } }, "service": { "ports": { "tcp": { "container_port": 8080, "protocol": "TCP", "service_port": 8080 } } }, "terminationGracePeriodSeconds": 60 } } } } } ```
mathieu-benoit commented 8 months ago

When going to https://dreampuf.github.io/GraphvizOnline, it's giving this graph:

image