Skip to content

Setup secrets ktor - #3

Draft
erlendsorknes wants to merge 7 commits into
kartverket:mainfrom
bekk:setup-secrets-ktor
Draft

Setup secrets ktor#3
erlendsorknes wants to merge 7 commits into
kartverket:mainfrom
bekk:setup-secrets-ktor

Conversation

@erlendsorknes

Copy link
Copy Markdown

Oppsummering:

Legger til en enkel lokal løsning for håndtering av secrets i Ktor

  • Legger til .env.example
  • Gitignore på .env fil
  • Legger til scripts/dev.sh som eksporterer verdiene fra .env og starter Ktor
  • Dokumenterer det lokale oppsettet i README

Hvordan:

cp .env.example .env
./scripts/dev.sh

* Init ktor and gradle build

* Added common building logic to client and server plus gitignore
Nyheim99 and others added 5 commits September 7, 2026 10:44
Runs ./gradlew build on pull requests and on pushes to main, so
compile errors and failing tests are caught without a manual review.
* Copied over pr template from other repo
* Start of a PdpClient

* More code copiet from the java library

* Changed from no.kartverket.altinn to no.bekk.altinnpdp

* Removed main.kt

* Make tokenUrl required in MaskinportenConfig

* Make isPermitted return PdpException upon failure

* Remove .env.example from .gitignore

* Update build files
Review feedback on #4: ALTINN_API_KEY was not referenced anywhere in the
repo, making the template misleading. Make it comment-only and note in
the README that variables are added as the app starts reading them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

4 participants