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 score.yaml #106

Closed mathieu-benoit closed 7 months ago

github-actions[bot] commented 7 months ago

Deployment successfully completed for PR-106! :tada:

View in Humanitec

Deployment ID: 17bc5236d506508c

Domains:

my-sample-app: greenfelderlittelmoorefeillarson.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:4807156ab7862213b925ce0cc09024ea21feb9b73dac25083b2a12f24e7f2652" }, { "from": "", "op": "replace", "path": "/spec/containers/my-sample-app/variables/MESSAGE", "value": "Hello, Test!" }, { "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 agent default agent current deploy 17bc5236d506508c 1m1.628184574s base-env default base-env current deploy 17bc5236d506508c 1m1.628186758s k8s-cluster default k8s-cluster current deploy 17bc5236d506508c 1m1.628188121s k8s-namespace default k8s-namespace current deploy 17bc5236d506508c 1m1.628189073s logging default logging current deploy 17bc5236d506508c 1m1.628190124s workload default modules.my-sample-app current deploy 17bc5236d506508c 1m1.628191066s dns default modules.my-sample-app.externals.dns current deploy 17bc5236d506508c 1m1.628192068s ingress default modules.my-sample-app.externals.dns current deploy 17bc5236d506508c 1m1.62819303s tls-cert default modules.my-sample-app.externals.dns current deploy 17bc5236d506508c 1m1.628194202s route default modules.my-sample-app.externals.route current deploy 17bc5236d506508c 1m1.628195124s ```
Resources Graph ### Resources Graph: ```none strict digraph { label="Resource Graph app: my-sample-app, env: pr-106 green: virtual nodes (environment, workloads), blue: active resources "; labelloc="t"; overlap="false"; splines="true"; "base" [ color="2", colorscheme="greens3", fillcolor="1", label="base", style="filled", weight=0 ]; "base" -> "651b40d36369c8b5208a6a5e3ea88829f93a65c8" [ 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" -> "c8f54bf4dec2c9629f2da42a9d2d1b1635cc6bc9" [ weight=0 ]; "0f07ca7f00446ec97c9156efda1fe077f1192b4b" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns type: dns class: default provision time: 46.565648s", style="filled", tooltip="guresid: 0f07ca7f00446ec97c9156efda1fe077f1192b4b", weight=0 ]; "6c72c346e5456aa3726be107d3a0bdb9d88ae8ab" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns type: tls-cert class: default provision time: 159.173ms", style="filled", tooltip="guresid: 6c72c346e5456aa3726be107d3a0bdb9d88ae8ab", weight=0 ]; "6c72c346e5456aa3726be107d3a0bdb9d88ae8ab" -> "0f07ca7f00446ec97c9156efda1fe077f1192b4b" [ weight=0 ]; "df9d2b01a52fb27a82da5b361304995d785e9f68" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns type: ingress class: default provision time: 37.293ms", style="filled", tooltip="guresid: df9d2b01a52fb27a82da5b361304995d785e9f68", weight=0 ]; "df9d2b01a52fb27a82da5b361304995d785e9f68" -> "6c72c346e5456aa3726be107d3a0bdb9d88ae8ab" [ weight=0 ]; "df9d2b01a52fb27a82da5b361304995d785e9f68" -> "0f07ca7f00446ec97c9156efda1fe077f1192b4b" [ weight=0 ]; "4939b66209caa42a600d0d82eb909173100e0d3e" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.route type: route class: default provision time: 46.598584s", style="filled", tooltip="guresid: 4939b66209caa42a600d0d82eb909173100e0d3e", weight=0 ]; "c8f54bf4dec2c9629f2da42a9d2d1b1635cc6bc9" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app type: workload class: default provision time: 29.21ms", style="filled", tooltip="guresid: c8f54bf4dec2c9629f2da42a9d2d1b1635cc6bc9", weight=0 ]; "c8f54bf4dec2c9629f2da42a9d2d1b1635cc6bc9" -> "4939b66209caa42a600d0d82eb909173100e0d3e" [ weight=0 ]; "c8f54bf4dec2c9629f2da42a9d2d1b1635cc6bc9" -> "0f07ca7f00446ec97c9156efda1fe077f1192b4b" [ weight=0 ]; "651b40d36369c8b5208a6a5e3ea88829f93a65c8" [ color="2", colorscheme="blues3", fillcolor="1", label="id: base-env type: base-env class: default provision time: 3.851716s", style="filled", tooltip="guresid: 651b40d36369c8b5208a6a5e3ea88829f93a65c8", weight=0 ]; } ```
Score Output ### Score Output: ```json { "id": "f3b4f24678cab9a2e8216186611ddd79a86e986d", "metadata": { "env_id": "pr-106", "name": "Update score.yaml", "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-106/draft/f3b4f24678cab9a2e8216186611ddd79a86e986d", "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59", "created_at": "2024-03-13T12:19:13.734428149Z", "last_modified_at": "2024-03-13T12:19:13.734428149Z" }, "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:4807156ab7862213b925ce0cc09024ea21feb9b73dac25083b2a12f24e7f2652", "resources": { "limits": { "cpu": "250m", "memory": "256Mi" }, "requests": { "cpu": "25m", "memory": "64Mi" } }, "variables": { "MESSAGE": "Hello, Test!", "NAMESPACE_NAME": "${pod.metadata.namespace}", "POD_NAME": "${pod.metadata.name}" } } }, "service": { "ports": { "tcp": { "container_port": 8080, "protocol": "TCP", "service_port": 8080 } } }, "terminationGracePeriodSeconds": 60 } } } } } ```