• 11 Posts
  • 9 Comments
Joined 1 year ago
cake
Cake day: April 5th, 2024

help-circle
  • That GitHub comment makes my brain hurt and gives me Microsoft community forum advisor (run ChEcKDiSK tO mAYbe fIX tHe ProBLem) and “leave the multi-billion dollar company alone” vibes.

    Also it’s not a single line - when looking at the source file - and a complete section instead.

    GitHub Copilot, as used in the documentation here, is free and integrated into the IDE.

    1. It’s inside the dotnet Docs. dotnet has nothing to do with an IDE. You can code/run dotnet code in any editor or terminal if you like.
    2. This person assumes that Visual Studio is the only IDE for dotnet. Looks like they never heard of Rider or VS Code or anything else.

    I do not think that you can call it an ad if it is for a free tool.

    WTF is he defining as an ad? “Advertising is the practice and techniques employed to bring attention to a product or service”. The whole section is bascially “Hey you can use Copilot to do this” - that’s an ad right there.

    Even if you interpret this as encouraging users to pay

    Makes no sense. Does this person think ad = you have to pay for it???

    it is hardly the first time that dotnet documentation guides users towards paid Microsoft products: are we going to start complaining about all pages with references to Azure next?

    1. A deployment target is not the same as “AI”
    2. If a page/section is not named like “How to deploy example app to Azure” then it shouldn’t contain any reference to Azure. And yes you should complain about such stuff if it exists.

    The only part of this I actually object to is that I don’t think that what essentially amounts to ‘prompt an LLM’ belongs in documentation, although at the very least the page does disclose that the output may be erroneous.

    That’s basically what the whole issue is about. WTF are you even talking about then? Just shut up and give an upvote.

    Overall a totally useless comment.









  • Well from my personal PoV there are a few problems with that

    1. You can’t detect all credentials reliably, they could be encoded in base64 for example
    2. I think it’s kind of okay to commit credentials and configuration used for the local dev environment (and ONLY the local one). E.g. when you require some infrastructure like a database inside a container for your app. Not every dev wants to manually set a few dozen configuration entries when they quickly want to checkout and run the app

  • I also personally ask myself how a PyPI Admin & Director of Infrastructure can miss out on so many basic coding and security relevant aspects:

    • Hardcoding credentials and not using dedicated secret files, environment variable or other secret stores
    • For any source that you compile you have to assume that - in one way or another - it ends up in the final artifact - Apparently this was not fully understood (“.pyc files containing the compiled bytecode weren’t considered”)
    • Not using a isolated build process e.g. a CI with an isolated VM or a container - This will inevitable lead to “works on my machine” scenarios
    • Needing the built artifact (containerimage) only locally but pushing it into a publicly available registry
    • Using a access token that has full admin permissions for everything, despite only requiring it to bypass rate limits
    • Apparently using a single access token for everything
      • When you use Git locally and want to push to GitHub you need an access token. The fact that article says “the one and only GitHub access token related to my account” likely indicates that this token was at least also used for this
    • One of the takeaways of the article says “set aggressive expiration dates for API tokens” - This won’t help much if you don’t understand how to handle them properly in the first place. An attacker can still use them before they expire or simply extract updated tokens from newer artifacts.

    On the other hand what went well:

    • When this was reported it was reacted upon within a few minutes
    • Some of my above points of criticism now appear to be taken into account (“Takeaways”)