706

The AI.gov repository and staging site vanished when we asked questions, but don't worry – we captured backups

you are viewing a single comment's thread
view the rest of the comments
[-] titey@jlai.lu 66 points 3 days ago

DB_PASS="postgres" 😬😬😬

[-] Nobilmantis@feddit.it 11 points 3 days ago

I mean it is called ".env_example" afterall... Probably a env file to use for testing, no?

[-] forgeddit@sopuli.xyz 13 points 3 days ago

I'm really shocked by the confidence people have here with clearly zero knowledge.

".env_example" is literally just the example/template which is only updated if new "config" items are needed and it doesn't contain actual secrets.

Developers copy ".env"/prod and ".env_local" files, which are used for the specific environments. These are in .gitignore so that they're not accidentally pushed to .git.

For production the ".env" is generated during deployment from secrets in a locked up environment. (I mean they COULD fuck this up, but there's no evidence of this AFAIK)

The example postgres password is simply a "hello world" type password that is often used when running a local docker image of the DB so you can get a full dev environment running in a couple minutes, as mentioned in the readme.md: https://github.com/gsa-tts-archived/ai-gov-api

It's not even a testing environment, it's a temporary local/dev DB just so you can test your code.

I am NOT defending this project, but holy shit this thread is full of misinformation and I had to correct this.

[-] Crozekiel@lemmy.zip 10 points 3 days ago

so, uh... can you ELI5 this for those of us that don't know anything?

[-] crookfingerjake@lemmy.world 35 points 3 days ago

The type of database they are using is called "postgres", which is also it's password.

[-] joyjoy@lemmy.zip 3 points 3 days ago

I will assume this is just the password they use in development. But they should probably be using pglite.

[-] ohshit604@sh.itjust.works 16 points 3 days ago* (last edited 3 days ago)

Postgres, SQLite, etc are tools for database management, things like user data, application data and so on are collected here.

Edit: the DB_PASS=“postgres” is the default password when setting up a Postgres database.

Take Reddit’s Karma system or Upvotes/Downvotes for example, they’re stored in a database and however Reddit wants to utilize that data Postgres makes it easy to call upon it.

I’m sure others can give more detailed responses, I’m typing this out in a rush.

[-] forgeddit@sopuli.xyz 9 points 3 days ago

The person you replied to doesn't know what they're talking about. It's just an example password used for running a local empty DB for development and has nothing to do with production or even test databases.

You can see this in the readme: https://archive.softwareheritage.org/browse/origin/directory/?origin_url=https%3A%2F%2Fgithub.com%2Fgsa-tts-archived%2Fai-gov-api

See my longer previous comment if you want to know more. And again, not defending this project, but this whole comment chain was just misinformation.

[-] lepinkainen@lemmy.world 11 points 3 days ago

It’s like having your password set to “password”

[-] Jakeroxs@sh.itjust.works 8 points 3 days ago
[-] ArtVandelay@lemmy.world 9 points 3 days ago

Unfortunately no, it seems. Somebody at least had the bare minimum sense to let GitHub generate the .gitignore for them, which includes most common environment files. https://github.com/gsa-tts-archived/ai.gov/blob/main/.gitignore

this post was submitted on 16 Jun 2025
706 points (100.0% liked)

Technology

71623 readers
3216 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS