Hi, I have a dockerfile that creates image for pul...
# dotnet
q
Hi, I have a dockerfile that creates image for pulumi automation app
Copy code
FROM <http://mcr.microsoft.com/dotnet/sdk:9.0|mcr.microsoft.com/dotnet/sdk:9.0> AS installer-env

COPY . /src/dotnet-function-app
WORKDIR /src/dotnet-function-app/src

RUN mkdir -p /home/site/wwwroot && \
dotnet publish xxx --output /home/site/wwwroot

FROM <http://mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated9.0|mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated9.0>

RUN apt-get update \
    && apt-get install -y --no-install-recommends curl \
    && apt-get install -y azure-cli \
    && curl -fsSL <https://get.pulumi.com> | sh \
    && rm -f /home/.pulumi/bin/pulumi-language-yaml \
    && rm -f /home/.pulumi/bin/pulumi-language-java \
    && apt-get purge -y curl \
    && apt-get autoremove -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

ENV PATH="/home/.pulumi/bin:$PATH"

ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true

RUN pulumi plugin install resource azure v6.24.0 --exact \
    && pulumi plugin install resource azure-native v3.14.0 --exact 

COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"]
Some lines are to mitigate CVEs in pulumi but I still see in scanners CVE-2025-68121 home/.pulumi/bin/pulumi-language-dotnet stdlib 1.24.12. After some conversation with claude it suggests it needs to be fixed on pulumi side. Do you know any walkaround or do you plan to fix that vuln? AI suggests it's in golang version which pulumi is built against.
f
heya - v3.224.0 should include the relevant bits to address this!
๐Ÿ‘€ 1
๐Ÿ™Œ 1
e
odd, looks like dotnet at least should be building with Go 1.26 now
On the bright side this is a TLS vulnerability and afaik neither of these codebases actually make use of TLS in anyway
q
Hm, is it safe to say that in context of using Automation API? I mean theoretically can stdlib "leak" and be used in context of our dotnet app, or is it bundled inside pulumi?
e
its bundled inside pulumi, there's no risk of this leaking and we don't use TLS inside the dotnet plugin. azure probably does I don't know the codebase that well, but I'm not sure if its vulnerable to this particular exploit.
But they should be building with go 1.26 now, so I'd hope this gets fixed in the next release
f
Apologies for speaking too early there @quick-noon-18541 Out of personal curiosity, do you mind sharing which tool those screenshots are from?
q
It's aquasec. I checked if I really build image on latest pulumi version and it looks like it's the previous one (3.223). I try to build on newest version
๐Ÿ™ 1
team, could you advise how to fetch newest version with
curl -fsSL <https://get.pulumi.com>
? I tried to rebuild image without cache and
/home/.pulumi/bin/pulumi version
still returns 223 version
When I call pulumi version locally, I get
Copy code
A new version of Pulumi is available. To upgrade from version '3.146.0' to '3.223.0', visit <https://pulumi.com/docs/install/> for manual instructions and release notes
Is there a process to additionally publish version or something? According to gh 3.224 pulumi/pulumi should be released
e
There's a pipeline that needs to run to update pulumi.com after the github release, it doesn't always run right away
q
I guess it's this PR Regen docs pulumi@3.224.0 by pulumi-bot ยท Pull Request #17714 ยท pulumi/docs. Is it merged automatically or someone needs to push that?
e
Manually I think but it's done now
๐Ÿ‘€ 1
๐Ÿ™Œ 1