Skip to content

fix(week10): require SSL for Azure Postgres + add .env.example#7

Merged
lassebenni merged 1 commit into
mainfrom
fix/sslmode-and-env-example
Jul 8, 2026
Merged

fix(week10): require SSL for Azure Postgres + add .env.example#7
lassebenni merged 1 commit into
mainfrom
fix/sslmode-and-env-example

Conversation

@lassebenni

Copy link
Copy Markdown
Collaborator

Situatie

Students connect the Week 10 dbt project to the shared Azure Database for PostgreSQL. The connection template (profiles.yml.example) had no SSL setting, and there was no .env.example — the README asked students to retype four export lines by hand every session.

Probleem

  • No sslmode. Azure Postgres expects an encrypted connection. Relying on libpq's implicit prefer default is fragile and undocumented; a student on a stricter server or a different client gets a confusing connection error at dbt debug.
  • No .env.example. .gitignore already whitelists !.env.example, but the file never existed, so the intended copy-and-source workflow wasn't available.

Oplossing

  • profiles.yml.example: add sslmode: require.
  • Add .env.example with the PG_* exports; students cp .env.example .env, fill in the password, and source .env.
  • README Task 1: replace the ad-hoc export block with the cp .env.example .env + source .env flow, and add the new file to the tree diagram.

Mirrors HackYourAssignment/c55-data-week-10#2 so the next cohort inherits the same fixes. No model/test/grader logic changes.

🤖 Generated with Claude Code

- profiles.yml.example: add sslmode: require (Azure Database for
  PostgreSQL needs an encrypted connection).
- add .env.example with PG_* exports so students copy to .env, fill in
  the password, and source it instead of retyping exports.
- README Task 1: switch from ad-hoc exports to the cp .env.example .env
  + source .env flow.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lassebenni lassebenni merged commit 378d75a into main Jul 8, 2026
1 of 2 checks passed
@lassebenni lassebenni deleted the fix/sslmode-and-env-example branch July 8, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant