Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Altinn/dialogporten
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.0
Choose a base ref
...
head repository: Altinn/dialogporten
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.6.0
Choose a head ref

Commits on Apr 10, 2024

  1. feat: Add authorization caching (#591)

    This adds caching to the details- and search authorization calls. Keys
    are derived from the request models, using only the principal claims
    relevant for user identification (skipping `jti`, `exp` etc which will
    needlessly bloat the number of keys and reduce hit rate).
    
    This will create several keys per user, and for some bulk-operating end
    user systems, potentially thousands within the total TTL of the entries.
    To control RAM usage, memory cache is disabled and this relies solely on
    the Redis cache. This trades replica memory usage against Redis
    ingress/egress. For end user systems performing each search/details
    request just once, this makes no difference (as calls will miss the
    cache anyway), but for normal users in the portal which might navigate
    back and forth and change ordering/non-auth-related filters, the Redis
    traffic will increase compared to having the memory level cache enabled.
    elsand authored Apr 10, 2024
    Copy the full SHA
    2f86d7e View commit details

Commits on Apr 12, 2024

  1. chore: add migration in docker compose (#626)

    <!--- Provide a general summary of your changes in the Title above -->
    
    ## Description
    Ensures that migrations are run when running docker-compose
    <!--- Describe your changes in detail -->
    
    ## Related Issue(s)
    
    - #{issue number}
    
    ## Verification
    
    - [X] **Your** code builds clean without any errors or warnings
    - [X] Manual testing done (required)
    - [X] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [X] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    
    ---------
    
    Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
    arealmaas and oskogstad authored Apr 12, 2024
    Copy the full SHA
    bde5c5c View commit details
  2. chore: Update to postgres 16 (#624)

    New major version of flexible PostgreSQL available in our Azure region
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [x] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    oskogstad authored Apr 12, 2024
    Copy the full SHA
    696d603 View commit details
  3. Copy the full SHA
    5da3143 View commit details
  4. Copy the full SHA
    5624030 View commit details
  5. chore(deps): update dependency azure.identity to v1.11.0 (#625)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    |
    [Azure.Identity](https://togithub.com/Azure/azure-sdk-for-net/blob/Azure.Identity_1.11.0/sdk/identity/Azure.Identity/README.md)
    ([source](https://togithub.com/Azure/azure-sdk-for-net)) | `1.10.4` ->
    `1.11.0` |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Azure.Identity/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Azure.Identity/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Azure.Identity/1.10.4/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Azure.Identity/1.10.4/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>Azure/azure-sdk-for-net (Azure.Identity)</summary>
    
    ###
    [`v1.11.0`](https://togithub.com/Azure/azure-sdk-for-net/releases/tag/Azure.Identity_1.11.0)
    
    ##### 1.11.0 (2024-04-09)
    
    ##### Bugs Fixed
    
    - `AzurePowerShellCredential` now handles the case where it falls back
    to legacy PowerShell without relying on the error message string.
    
    ##### Breaking Changes
    
    - `DefaultAzureCredential` now sends a probe request with no retries for
    IMDS managed identity environments to avoid excessive retry delays when
    the IMDS endpoint is not available. This should improve credential chain
    resolution for local development scenarios. See
    [BREAKING_CHANGES.md](https://togithub.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/BREAKING_CHANGES.md#1110).
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
    renovate[bot] and oskogstad authored Apr 12, 2024
    Copy the full SHA
    9abf718 View commit details

Commits on Apr 16, 2024

  1. Copy the full SHA
    9b84483 View commit details
  2. chore: Consolidate SeenLog naming, change CreatedAt to SeenAt (#637)

    Forgot to change these on @arealmaas suggestion on the SeenLog endpoint
    PR
    oskogstad authored Apr 16, 2024
    Copy the full SHA
    bde5845 View commit details
  3. feat: Add GraphQL POC (#636)

    Co-authored-by: Magnus Sandgren <5285192+MagnusSandgren@users.noreply.github.com>
    oskogstad and MagnusSandgren authored Apr 16, 2024
    Copy the full SHA
    c779eac View commit details

Commits on Apr 17, 2024

  1. chore(deps): update dotnet monorepo to v8.0.4 (#641)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [Microsoft.AspNetCore.Authentication.JwtBearer](https://asp.net/)
    ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.3` -> `8.0.4`
    |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    | [Microsoft.AspNetCore.Authentication.JwtBearer](https://asp.net/)
    ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.2` -> `8.0.4`
    |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.2/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.2/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    | [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://asp.net/)
    ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.3` -> `8.0.4`
    |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    | [Microsoft.AspNetCore.OpenApi](https://asp.net/)
    ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.3` -> `8.0.4`
    |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.OpenApi/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.OpenApi/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.OpenApi/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.OpenApi/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    |
    [Microsoft.EntityFrameworkCore.Relational](https://docs.microsoft.com/ef/core/)
    ([source](https://togithub.com/dotnet/efcore)) | `8.0.3` -> `8.0.4` |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    |
    [Microsoft.EntityFrameworkCore.Tools](https://docs.microsoft.com/ef/core/)
    ([source](https://togithub.com/dotnet/efcore)) | `8.0.3` -> `8.0.4` |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    | [Microsoft.Extensions.Caching.StackExchangeRedis](https://asp.net/)
    ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.3` -> `8.0.4`
    |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    | [Microsoft.Extensions.Http.Polly](https://asp.net/)
    ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.3` -> `8.0.4`
    |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.Extensions.Http.Polly/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.Extensions.Http.Polly/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.Extensions.Http.Polly/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.Extensions.Http.Polly/8.0.3/8.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>dotnet/aspnetcore
    (Microsoft.AspNetCore.Authentication.JwtBearer)</summary>
    
    ###
    [`v8.0.4`](https://togithub.com/dotnet/aspnetcore/compare/v8.0.3...v8.0.4)
    
    </details>
    
    <details>
    <summary>dotnet/efcore
    (Microsoft.EntityFrameworkCore.Relational)</summary>
    
    ### [`v8.0.4`](https://togithub.com/dotnet/efcore/releases/tag/v8.0.4):
    EF Core 8.0.4
    
    EF Core 8.0.4 is [available on NuGet
    now](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/8.0.4).
    This is a patch release of EF Core 8 (EF8) containing only [important
    bug
    fixes](https://togithub.com/dotnet/efcore/issues?q=is%3Aissue+milestone%3A8.0.4+is%3Aclosed):
    
    - [Incorrect apply projection for complex
    properties](https://togithub.com/dotnet/efcore/issues/32911)
    - [The database default created by Migrations for primitive collections
    mapped to JSON is
    invalid](https://togithub.com/dotnet/efcore/issues/32972)
    - [Filtering by Contains with HierarchyId and AsSplitQuery is not
    working](https://togithub.com/dotnet/efcore/issues/32976)
    - [Unfulfillable nullable contraints are set for complex types with TPH
    entities](https://togithub.com/dotnet/efcore/issues/33004)
    - [OutOfMemoryException when creating migration using ef
    tool](https://togithub.com/dotnet/efcore/issues/33176)
    - [SQL Server: Should retry on
    203](https://togithub.com/dotnet/efcore/issues/33260)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about these
    updates again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
    renovate[bot] and oskogstad authored Apr 17, 2024
    Copy the full SHA
    adc5ba9 View commit details
  2. Copy the full SHA
    df8cec9 View commit details
  3. chore(graphql): Add deployment of GraphQL service and local developme…

    …nt via docker-compose (#640)
    
    - Adding new container app for GraphQL
    - Refactor apim URL to be optional until we add GraphQL service to the
    APIM
    - Add graphql to docker-compose and an nginx ingress with a new nginx
    config
    - Remove explicit add of banana cake pop
    
    ## Related Issue(s)
    
    #490
    
    ## Verification
    
    - [ ] **Your** code builds clean without any errors or warnings
    - [ ] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    
    ---------
    
    Co-authored-by: Are Almaas <arealmaas@gmail.com>
    oskogstad and arealmaas authored Apr 17, 2024
    Copy the full SHA
    9769e52 View commit details
  4. Copy the full SHA
    c9877eb View commit details
  5. chore: revert port change for web api in compose (#645)

    <!--- Provide a general summary of your changes in the Title above -->
    
    ## Description
    
    <!--- Describe your changes in detail -->
    
    ## Related Issue(s)
    
    - #{issue number}
    
    ## Verification
    
    - [ ] **Your** code builds clean without any errors or warnings
    - [ ] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    arealmaas authored Apr 17, 2024
    Copy the full SHA
    9a589e3 View commit details
  6. chore(graphql): add app config (#646)

    <!--- Provide a general summary of your changes in the Title above -->
    
    ## Description
    - Add app configuration & extension for Azure app configuration auth
    - Add serilog request logger
    <!--- Describe your changes in detail -->
    
    ## Related Issue(s)
    
    - #490 
    
    ## Verification
    
    - [ ] **Your** code builds clean without any errors or warnings
    - [ ] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    
    ---------
    
    Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
    arealmaas and oskogstad authored Apr 17, 2024
    Copy the full SHA
    74486d6 View commit details
  7. Copy the full SHA
    f37dce4 View commit details
  8. chore: Add custom DiagnosticEventListener for Application Insights (#650

    )
    
    Adding a custom DiagnosticEventListener for sending telemetry from GQL
    to ApplicationInsights
    
    ## Related Issue(s)
    
    - #490 
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    oskogstad authored Apr 17, 2024
    Copy the full SHA
    618efc9 View commit details

Commits on Apr 18, 2024

  1. chore(deps): update azure/login action to v2 (#633)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Type | Update | Change |
    |---|---|---|---|
    | [azure/login](https://togithub.com/azure/login) | action | major |
    `v1` -> `v2` |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>azure/login (azure/login)</summary>
    
    ### [`v2`](https://togithub.com/azure/login/compare/v1...v2)
    
    [Compare Source](https://togithub.com/azure/login/compare/v1...v2)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 18, 2024
    Copy the full SHA
    66f3eca View commit details

Commits on Apr 19, 2024

  1. chore: Schema test for graphql (#648)

    Automatic testing for changes in GraphQL schema (same as OpenAPI)
    Renamed `docs/swagger` to `docs/schema` to host the two files in the
    same npm package.
    Renamed npm package to `dialogporten-schema`
    
    Automatic versioning/publishing of this npm package is being worked on
    in another branch
    
    ## Related Issue(s)
    - #490 
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    oskogstad authored Apr 19, 2024
    Copy the full SHA
    343b0e9 View commit details
  2. chore: Enable K6 functional test run after app deploy to test/staging (

    …#643)
    
    This enables automatic running of K6 E2E tests after successful app
    revision deploy
    
    ## Description
    
    This refactors the dispatch-only K6 runner to a reusable action, which
    is used in CI/CD workflows as well as a dispatch-workflow, which now
    takes a path to a test suite to run, eliminating the need for different
    dispatches for functional and non-functional tests.
    
    Reporting of the tests are performed with a third-party action-plugin to
    utilize GIthub support for junit.xml format. Having some issues getting
    this to work properly locally with `act`, so this will have to be tested
    in Github. Unclear how rich the reporting within Github can be, but
    hopefully we can at least get the job to be marked as failed if any
    tests fail as reported by K6. For additional details, the stdout log
    will have to be consulted.
    
    In the future, we might want to incorporate more custom handling of the
    summary and eg. integrate the Slack Notifier bot.
    
    ## Related Issue(s)
    
    - #80 
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    elsand authored Apr 19, 2024
    Copy the full SHA
    9059c86 View commit details
  3. Copy the full SHA
    31c9dd7 View commit details

Commits on Apr 20, 2024

  1. Fix K6 summary handling

    elsand committed Apr 20, 2024
    Copy the full SHA
    c276c09 View commit details
  2. Copy the full SHA
    c7f3c20 View commit details
  3. Fix escaping

    elsand committed Apr 20, 2024
    Copy the full SHA
    553b29d View commit details

Commits on Apr 22, 2024

  1. Copy the full SHA
    434dd43 View commit details
  2. fix: ensure performed by is set for activities (#628)

    <!--- Provide a general summary of your changes in the Title above -->
    
    Before refactoring more, let's do a review on this if this is the best
    approach or not..
    
    ## Description
    <!--- Describe your changes in detail -->
    
    - Adds a new function to get the long names of the organization
    - Caches the result with a new cache key
    
    ## Related Issue(s)
    
    - #404
    
    ## Verification
    
    - [X] **Your** code builds clean without any errors or warnings
    - [X] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [X] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    
    ---------
    
    Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
    Co-authored-by: Magnus Sandgren <5285192+MagnusSandgren@users.noreply.github.com>
    3 people authored Apr 22, 2024
    Copy the full SHA
    1adf075 View commit details
  3. chore(deps): update dependency masstransit to v8.2.1 (#656)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [MassTransit](https://masstransit.io/)
    ([source](https://togithub.com/MassTransit/MassTransit)) | `8.2.0` ->
    `8.2.1` |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/MassTransit/8.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/MassTransit/8.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/MassTransit/8.2.0/8.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/MassTransit/8.2.0/8.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 22, 2024
    Copy the full SHA
    e6d94ab View commit details
  4. chore(deps): update resource microsoft.operationalinsights/workspaces…

    … to 2023-09-01 (#657)
    
    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Resource | Change |
    |---|---|
    | Microsoft.OperationalInsights/workspaces | `2022-10-01` ->
    `2023-09-01` |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 22, 2024
    Copy the full SHA
    dee62ef View commit details
  5. chore(GraphQl): Add application user (#662)

    Hard coded IUser set to LocalDevelopmentUser
    
    ## Related Issue(s)
    
    - #490 
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [ ] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    oskogstad authored Apr 22, 2024
    Copy the full SHA
    47ae81a View commit details
  6. chore: Code cleaning (#659)

    Minor code/comment cleaning 🧹 
    
    * Unused usings
    * Expression bodies
    * Trailing commas
    * Collection expressions
    * Remove unnecessary fields
    * Redundant namespace
    * Use const
    * Grammar
    oskogstad authored Apr 22, 2024
    Copy the full SHA
    9d9fcc4 View commit details
  7. feat: Add support for apps as serviceresource (#658)

    In order to support app instances in the Dialogporten, we need to be
    able to refer to apps as service resources
    
    ## Description
    
    This adds support for urn:altinn:app in dialog validator and Altinn auth
    helpers, and changes the Resource Registry client to use the
    "resourcelist" endpoint, which includes Altinn 3 apps (unfortunately
    this also includes Altinn 2 services, which baloons the response size
    considerably, but this is filtered before storing to cache). The Fusion
    cache settings has been changed to reflect this (ie. increasing factory
    timeouts).
    
    Yet to be fixed:
    - [x] ~~Handling of "ttd" services (the Digdir test organization). These
    contain an empty string as "organization" in the RR, where there usually
    is a organization number. Special code will be required to handle TTD
    service authorization and dialog.org population.~~ Moved to #663
    - [x] ~~Handling of app instance delegations. Since app instance ids are
    a bit weird (has the form `{partyId}/{instanceId}`) we cannot just map
    the dialogId to `urn:altinn:instance-id` (like we do with resource id)
    as this will cause an exception in the PDP API. Preferably the PDP
    context handler should be able to deal with this, and map the missing
    partyId into the instance-id (since it needs to get the partyId for
    organizationnumbers/SSNs anyway)~~ Moved to #664
    - [x] ~~Handling of resource constraints for app in the authorization
    requests for search. Currently we assume name of the resource to be
    unique, but an app-name may be reused between service owners.~~ Edit: we
    include the reserved `app_{org}_` prefix, avoiding this potential
    ambiguity.
    
    ## Related Issue(s)
    
    - #651 
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    elsand authored Apr 22, 2024
    Copy the full SHA
    adf91ce View commit details
  8. Copy the full SHA
    9713ea7 View commit details

Commits on Apr 23, 2024

  1. Copy the full SHA
    56e55cd View commit details
  2. ci: run all jobs on dispatch for main and staging (#666)

    <!--- Provide a general summary of your changes in the Title above -->
    
    ## Description
    Ensure that we run all the jobs regardless if any files has changed when
    we do a manual dispatch of the workflows
    <!--- Describe your changes in detail -->
    
    ## Related Issue(s)
    
    - #{issue number}
    
    ## Verification
    
    - [ ] **Your** code builds clean without any errors or warnings
    - [ ] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    arealmaas authored Apr 23, 2024
    Copy the full SHA
    c033eac View commit details
  3. Fix borked recursion

    elsand committed Apr 23, 2024
    Copy the full SHA
    22b070c View commit details
  4. chore(docker-compose): Add RedisInsight (#668)

    Adds [RedisInsight](https://redis.io/insight/) to the compose setup
    oskogstad authored Apr 23, 2024
    Copy the full SHA
    c738797 View commit details
  5. ci: only run if migrations are changed (#669)

    <!--- Provide a general summary of your changes in the Title above -->
    
    ## Description
    
    - Only run migrations if relevant files are changed
    - Run the deployment of apps regardless of if migration was run
    
    <!--- Describe your changes in detail -->
    
    ## Related Issue(s)
    
    - #{issue number}
    
    ## Verification
    
    - [ ] **Your** code builds clean without any errors or warnings
    - [ ] Manual testing done (required)
    - [ ] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    arealmaas authored Apr 23, 2024
    Copy the full SHA
    7cd80dc View commit details

Commits on Apr 24, 2024

  1. chore(deps): update nginx docker tag to v1.26.0 (#670)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Update | Change |
    |---|---|---|
    | nginx | minor | `1.25.4` -> `1.26.0` |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 24, 2024
    Copy the full SHA
    771fe15 View commit details

Commits on Apr 25, 2024

  1. feat: Authorized parties endpoint in enduser API (#661)

    ## Description
    
    This adds a parties endpoint in the enduser-API, proxying requests to
    access-management and returning a custom DTO for all parties that the
    user has some sort of access relation to.
    
    ## Related Issue(s)
    
    - #660 
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    
    ---------
    
    Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
    elsand and oskogstad authored Apr 25, 2024
    Copy the full SHA
    050ccbb View commit details
  2. Copy the full SHA
    d416cdc View commit details

Commits on Apr 26, 2024

  1. Copy the full SHA
    c905d01 View commit details
  2. Copy the full SHA
    55fc1e7 View commit details
  3. Copy the full SHA
    d36c8ee View commit details

Commits on Apr 28, 2024

  1. chore(deps): update mcr.microsoft.com/dotnet/sdk:8.0.204 docker diges…

    …t to 03476e8 (#676)
    
    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Type | Update | Change |
    |---|---|---|---|
    | [mcr.microsoft.com/dotnet/sdk](https://togithub.com/dotnet/sdk) |
    stage | digest | `7861b15` -> `03476e8` |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 28, 2024
    Copy the full SHA
    c110cc3 View commit details
  2. chore(deps): update dependency azure.identity to v1.11.2 (#677)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    |
    [Azure.Identity](https://togithub.com/Azure/azure-sdk-for-net/blob/Azure.Identity_1.11.2/sdk/identity/Azure.Identity/README.md)
    ([source](https://togithub.com/Azure/azure-sdk-for-net)) | `1.11.1` ->
    `1.11.2` |
    [![age](https://developer.mend.io/api/mc/badges/age/nuget/Azure.Identity/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Azure.Identity/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Azure.Identity/1.11.1/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Azure.Identity/1.11.1/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>Azure/azure-sdk-for-net (Azure.Identity)</summary>
    
    ###
    [`v1.11.2`](https://togithub.com/Azure/azure-sdk-for-net/releases/tag/Azure.Identity_1.11.2)
    
    ##### 1.11.2 (2024-04-19)
    
    ##### Bugs Fixed
    
    - Fixed an issue which caused claims to be incorrectly added to
    confidential client credentials such as `DeviceCodeCredential`
    [#&#8203;43468](https://togithub.com/Azure/azure-sdk-for-net/issues/43468)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am on
    Wednesday" (UTC), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you
    are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR has been generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View
    repository job log
    [here](https://developer.mend.io/github/digdir/dialogporten).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 28, 2024
    Copy the full SHA
    39d24f5 View commit details

Commits on Apr 29, 2024

  1. chore: Add EndUser SeenLog hash length tests (#680)

    Adding tests for hash length on seen log, EndUser queries
    
    ## Description
    
    Making sure we don't leak un-hashed user IDs
    
    ## Related Issue(s)
    
    - #460 
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    oskogstad authored Apr 29, 2024
    Copy the full SHA
    d80623e View commit details
  2. chore(tests): Restructure application integration tests (#682)

    Splits tests into folders for EndUser/ServiceOwner
    oskogstad authored Apr 29, 2024
    Copy the full SHA
    4a37906 View commit details
  3. chore(tests): Add SeenLog tests for ServiceOwner (#683)

    Adding the same test as for EU, verifying user ID hashes length
    
    ## Related Issue(s)
    
    - #460
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    oskogstad authored Apr 29, 2024
    Copy the full SHA
    74a8a30 View commit details
  4. chore: Add additional e2e tests (#679)

    ## Description
    
    This adds e2e for "org"-filtering and add ExtendedStatus to the test
    data. This also fixes some clean up issues, making sure a test run
    purges all data it inserts.
    
    ## Related Issue(s)
    
    N/A
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    elsand authored Apr 29, 2024
    Copy the full SHA
    3cbf63b View commit details

Commits on Apr 30, 2024

  1. fix: Accept app references with urn:altinn:resource prefix (#685)

    ## Description
    
    This fixes the handling of service resource values referring to Altinn
    apps so that they too use the same prefix as generic resources. The
    decision request helper now only checks for the reserved resource name
    prefix (`app_`) in order to determine how the XACML request should be
    constructed.
    
    ## Related Issue(s)
    
    - #681
    
    ## Verification
    
    - [x] **Your** code builds clean without any errors or warnings
    - [x] Manual testing done (required)
    - [x] Relevant automated test added (if you find this hard, leave it and
    we'll help out)
    
    ## Documentation
    
    - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
    or a separate linked PR in
    [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
    applicable)
    elsand authored Apr 30, 2024
    Copy the full SHA
    c9a5606 View commit details
Showing with 3,631 additions and 471 deletions.
  1. +83 −0 .azure/applications/graphql/main.bicep
  2. +11 −0 .azure/applications/graphql/staging.bicepparam
  3. +11 −0 .azure/applications/graphql/test.bicepparam
  4. +1 −1 .azure/modules/applicationInsights/create.bicep
  5. +12 −8 .azure/modules/containerApp/main.bicep
  6. +1 −1 .azure/modules/containerAppEnv/main.bicep
  7. +11 −11 .github/ISSUE_TEMPLATE/bug.md
  8. +35 −0 .github/ISSUE_TEMPLATE/new-change-in-functionality.md
  9. +0 −35 .github/ISSUE_TEMPLATE/ny-endring-av-funksjonalitet.md
  10. +6 −1 .github/workflows/action-check-for-changes.yml
  11. +10 −1 .github/workflows/action-deploy-apps.yml
  12. +2 −0 .github/workflows/action-publish.yml
  13. +54 −0 .github/workflows/action-run-k6-tests.yml
  14. +23 −5 .github/workflows/ci-cd-main.yml
  15. +23 −3 .github/workflows/ci-cd-staging.yml
  16. +0 −43 .github/workflows/dispatch-e2e-tests.yml
  17. +33 −0 .github/workflows/dispatch-k6-tests.yml
  18. +0 −42 .github/workflows/dispatch-perftest-createdelete.yml
  19. +17 −0 CHANGELOG.md
  20. +14 −0 Digdir.Domain.Dialogporten.sln
  21. +10 −4 README.md
  22. +33 −3 docker-compose-no-webapi.yml
  23. +41 −2 docker-compose.yml
  24. +1 −1 docs/CommonAPIM.md
  25. +2 −0 docs/schema/V1/.npmignore
  26. +10 −0 docs/schema/V1/package.json
  27. +289 −0 docs/schema/V1/schema.verified.graphql
  28. +88 −3 docs/{swagger → schema}/V1/swagger.verified.json
  29. +0 −1 docs/swagger/V1/.npmignore
  30. +0 −10 docs/swagger/V1/package.json
  31. +21 −0 nginx-graphql.conf
  32. 0 nginx.conf → nginx-webapi.conf
  33. +3 −0 src/Digdir.Domain.Dialogporten.Application/ApplicationExtensions.cs
  34. +15 −4 src/Digdir.Domain.Dialogporten.Application/Common/Extensions/ClaimsPrincipalExtensions.cs
  35. +2 −1 src/Digdir.Domain.Dialogporten.Application/Common/IStringHasher.cs
  36. +4 −5 src/Digdir.Domain.Dialogporten.Application/Common/ITransactionTime.cs
  37. +18 −1 src/Digdir.Domain.Dialogporten.Application/Common/IUserOrganizationRegistry.cs
  38. +30 −0 src/Digdir.Domain.Dialogporten.Application/Common/IUserParties.cs
  39. +1 −1 src/Digdir.Domain.Dialogporten.Application/Common/ReturnTypes/EntityNotFound.cs
  40. +35 −0 src/Digdir.Domain.Dialogporten.Application/Common/Services/DialogActivityService.cs
  41. +2 −2 src/Digdir.Domain.Dialogporten.Application/Digdir.Domain.Dialogporten.Application.csproj
  42. +26 −0 src/Digdir.Domain.Dialogporten.Application/Externals/AltinnAuthorization/AuthorizedPartiesResult.cs
  43. +4 −0 src/Digdir.Domain.Dialogporten.Application/Externals/AltinnAuthorization/IAltinnAuthorization.cs
  44. +14 −1 src/Digdir.Domain.Dialogporten.Application/Externals/IOrganizationRegistry.cs
  45. +1 −1 ....Dialogporten.Application/Features/V1/EndUser/DialogSeenLogs/Queries/Get/GetDialogSeenLogQuery.cs
  46. +1 −1 src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs
  47. +2 −2 src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogQuery.cs
  48. +2 −1 src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs
  49. +1 −0 ...gdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/MappingProfile.cs
  50. +1 −1 ...dir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs
  51. +19 −0 src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Parties/Queries/Get/GetPartiesDto.cs
  52. +25 −0 ...Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Parties/Queries/Get/GetPartiesQuery.cs
  53. +13 −0 src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Parties/Queries/Get/MappingProfile.cs
  54. +0 −1 ...ogporten.Application/Features/V1/ServiceOwner/DialogSeenLogs/Queries/Get/GetDialogSeenLogQuery.cs
  55. +0 −1 ...en.Application/Features/V1/ServiceOwner/DialogSeenLogs/Queries/Search/SearchDialogSeenLogQuery.cs
  56. +7 −1 ....Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommand.cs
  57. +2 −1 ...rten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs
  58. +8 −1 ....Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogCommand.cs
  59. +1 −1 src/Digdir.Domain.Dialogporten.Application/Features/V1/WellKnown/Jwks/Queries/Get/GetJwksDto.cs
  60. +2 −2 src/Digdir.Domain.Dialogporten.ChangeDataCapture/Digdir.Domain.Dialogporten.ChangeDataCapture.csproj
  61. +1 −1 src/Digdir.Domain.Dialogporten.ChangeDataCapture/Dockerfile
  62. +5 −5 src/Digdir.Domain.Dialogporten.Domain/Dialogs/Entities/DialogStatus.cs
  63. +114 −0 src/Digdir.Domain.Dialogporten.GraphQL/ApplicationInsightEventListener.cs
  64. +19 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/ApplicationUser.cs
  65. +63 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authentication/AuthenticationBuilderExtensions.cs
  66. +12 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authentication/AuthenticationOptions.cs
  67. +25 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authentication/AuthenticationOptionsValidator.cs
  68. +40 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authentication/JwtSchemeSelectorMiddleware.cs
  69. +44 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authentication/LocalDevelopmentUser.cs
  70. +64 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authentication/TokenIssuerCache.cs
  71. +20 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AllowAnonymousHandler.cs
  72. +45 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AuthorizationOptionsSetup.cs
  73. +29 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AuthorizationPolicy.cs
  74. +21 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AuthorizationPolicyBuilderExtensions.cs
  75. +8 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Constants.cs
  76. +88 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/Extensions/AzureAppConfigurationExtensions.cs
  77. +21 −0 src/Digdir.Domain.Dialogporten.GraphQL/Common/GraphQlSettings.cs
  78. +27 −0 src/Digdir.Domain.Dialogporten.GraphQL/Digdir.Domain.Dialogporten.GraphQL.csproj
  79. +27 −0 src/Digdir.Domain.Dialogporten.GraphQL/Dockerfile
  80. +27 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/Common/MappingProfile.cs
  81. +90 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/Common/ObjectTypes.cs
  82. +27 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogById/MappingProfile.cs
  83. +148 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogById/ObjectTypes.cs
  84. +45 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogQueries.cs
  85. +12 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/Parties/MappingProfile.cs
  86. +14 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/Parties/ObjectTypes.cs
  87. +20 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/PartyQueries.cs
  88. +7 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/Queries.cs
  89. +18 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/SearchDialogs/MappingProfile.cs
  90. +94 −0 src/Digdir.Domain.Dialogporten.GraphQL/EndUser/SearchDialogs/ObjectTypes.cs
  91. +119 −0 src/Digdir.Domain.Dialogporten.GraphQL/Program.cs
  92. +15 −0 src/Digdir.Domain.Dialogporten.GraphQL/Properties/launchSettings.json
  93. +26 −0 src/Digdir.Domain.Dialogporten.GraphQL/ServiceCollectionExtensions.cs
  94. +76 −0 src/Digdir.Domain.Dialogporten.GraphQL/appsettings.Development.json
  95. +16 −0 src/Digdir.Domain.Dialogporten.GraphQL/appsettings.json
  96. +73 −0 src/Digdir.Domain.Dialogporten.GraphQL/appsettings.test.json
  97. +60 −38 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs
  98. +59 −0 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AuthorizedPartiesHelper.cs
  99. +24 −0 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AuthorizedPartiesRequest.cs
  100. +15 −0 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AuthorizedPartiesResultDto.cs
  101. +59 −8 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/DecisionRequestHelper.cs
  102. +22 −0 ...gdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/DialogDetailsAuthorizationRequest.cs
  103. +22 −0 ...igdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/DialogSearchAuthorizationRequest.cs
  104. +4 −0 ...ir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/LocalDevelopmentAltinnAuthorization.cs
  105. +7 −11 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Events/AltinnEventsClient.cs
  106. +7 −28 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/NameRegistry/NameRegistryClient.cs
  107. +22 −19 ...gdir.Domain.Dialogporten.Infrastructure/Altinn/OrganizationRegistry/OrganizationRegistryClient.cs
  108. +17 −13 src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/ResourceRegistry/ResourceRegistryClient.cs
  109. +5 −0 src/Digdir.Domain.Dialogporten.Infrastructure/Common/Exceptions/UpstreamServiceException.cs
  110. +9 −8 src/Digdir.Domain.Dialogporten.Infrastructure/Digdir.Domain.Dialogporten.Infrastructure.csproj
  111. +83 −0 src/Digdir.Domain.Dialogporten.Infrastructure/HttpClientExtensions.cs
  112. +36 −7 src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs
  113. +1 −1 src/Digdir.Domain.Dialogporten.Infrastructure/MigrationBundle.dockerfile
  114. +1 −1 src/Digdir.Domain.Dialogporten.Service/Digdir.Domain.Dialogporten.Service.csproj
  115. +1 −1 src/Digdir.Domain.Dialogporten.Service/Dockerfile
  116. +2 −3 src/Digdir.Domain.Dialogporten.WebApi/Common/ApplicationUser.cs
  117. +9 −0 src/Digdir.Domain.Dialogporten.WebApi/Common/Extensions/ErrorResponseBuilderExtensions.cs
  118. +5 −2 src/Digdir.Domain.Dialogporten.WebApi/Common/Extensions/ExceptionHandlerExtensions.cs
  119. +4 −4 src/Digdir.Domain.Dialogporten.WebApi/Digdir.Domain.Dialogporten.WebApi.csproj
  120. +1 −1 src/Digdir.Domain.Dialogporten.WebApi/Dockerfile
  121. +31 −0 src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/Parties/Get/GetPartiesEndpoint.cs
  122. +30 −0 src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/Parties/Get/GetPartiesSwaggerConfig.cs
  123. +1 −1 src/Digdir.Domain.Dialogporten.WebApi/appsettings.Development.json
  124. +2 −2 src/Digdir.Domain.Dialogporten.WebApi/appsettings.staging.json
  125. +1 −1 src/Digdir.Domain.Dialogporten.WebApi/appsettings.test.json
  126. +1 −1 src/Digdir.Library.Entity.EntityFrameworkCore/Digdir.Library.Entity.EntityFrameworkCore.csproj
  127. +1 −1 src/Digdir.Tool.Dialogporten.Benchmarks/Digdir.Tool.Dialogporten.Benchmarks.csproj
  128. +1 −1 ...Tool.Dialogporten.Ed25519KeyPairGenerator/Digdir.Tool.Dialogporten.Ed25519KeyPairGenerator.csproj
  129. +2 −2 src/Digdir.Tool.Dialogporten.GenerateFakeData/DialogGenerator.cs
  130. +1 −1 src/Digdir.Tool.Dialogporten.GenerateFakeData/Digdir.Tool.Dialogporten.GenerateFakeData.csproj
  131. +2 −2 src/Digdir.Tool.Dialogporten.SlackNotifier/Digdir.Tool.Dialogporten.SlackNotifier.csproj
  132. +29 −8 tests/Digdir.Domain.Dialogporten.Application.Integration.Tests/Common/DialogApplication.cs
  133. +1 −1 ...ten.Application.Integration.Tests/Digdir.Domain.Dialogporten.Application.Integration.Tests.csproj
  134. +0 −1 ....Domain.Dialogporten.Application.Integration.Tests/Features/V1/Common/Events/DomainEventsTests.cs
  135. +1 −1 ...ialogporten.Application.Integration.Tests/Features/V1/{Dialogs → }/DialogCqrsCollectionFixture.cs
  136. +116 −0 ...in.Dialogporten.Application.Integration.Tests/Features/V1/EndUser/Dialogs/Queries/SeenLogTests.cs
  137. +1 −1 ...Application.Integration.Tests/Features/V1/{ → ServiceOwner}/Dialogs/Commands/CreateDialogTests.cs
  138. +1 −1 ...Application.Integration.Tests/Features/V1/{ → ServiceOwner}/Dialogs/Commands/DeleteDialogTests.cs
  139. +1 −1 ....Application.Integration.Tests/Features/V1/{ → ServiceOwner}/Dialogs/Commands/PurgeDialogTests.cs
  140. +1 −1 ...Application.Integration.Tests/Features/V1/{ → ServiceOwner}/Dialogs/Commands/UpdateDialogTests.cs
  141. +2 −4 ...ten.Application.Integration.Tests/Features/V1/{ → ServiceOwner}/Dialogs/Queries/GetDialogTests.cs
  142. +1 −1 ....Application.Integration.Tests/Features/V1/{ → ServiceOwner}/Dialogs/Queries/SearchDialogTests.cs
  143. +120 −0 ...alogporten.Application.Integration.Tests/Features/V1/ServiceOwner/Dialogs/Queries/SeenLogTests.cs
  144. +2 −2 ...main.Dialogporten.Application.Unit.Tests/Digdir.Domain.Dialogporten.Application.Unit.Tests.csproj
  145. +30 −0 ...ialogporten.GraphQl.Integration.Tests/Digdir.Domain.Dialogporten.GraphQl.Integration.Tests.csproj
  146. +52 −0 tests/Digdir.Domain.Dialogporten.GraphQl.Integration.Tests/Schema/SchemaSnapshotTests.cs
  147. +15 −0 tests/Digdir.Domain.Dialogporten.GraphQl.Integration.Tests/Utils.cs
  148. +37 −3 tests/Digdir.Domain.Dialogporten.Infrastructure.Unit.Tests/DecisionRequestHelperTests.cs
  149. +1 −1 ...ialogporten.Infrastructure.Unit.Tests/Digdir.Domain.Dialogporten.Infrastructure.Unit.Tests.csproj
  150. +2 −2 ....Dialogporten.WebApi.Integration.Tests/Digdir.Domain.Dialogporten.WebApi.Integration.Tests.csproj
  151. +2 −2 tests/Digdir.Domain.Dialogporten.WebApi.Integration.Tests/Features/V1/SwaggerSnapshotTests.cs
  152. +36 −56 tests/k6/common/report.js
  153. +3 −2 tests/k6/common/summary.js
  154. +1 −1 tests/k6/common/token.js
  155. +5 −0 tests/k6/suites/createremove-perf-10-vus-1-min.js
  156. +2 −0 tests/k6/tests/enduser/all-tests.js
  157. +15 −1 tests/k6/tests/enduser/dialogSearch.js
  158. +10 −0 tests/k6/tests/enduser/parties.js
  159. +5 −5 tests/k6/tests/serviceowner/authorization.js
  160. +2 −2 tests/k6/tests/serviceowner/concurrency.js
  161. +3 −3 tests/k6/tests/serviceowner/dialogCreatePatchDelete.js
  162. +2 −2 tests/k6/tests/serviceowner/performance/createremove-no-delay.js
  163. +2 −1 tests/k6/tests/serviceowner/testdata/01-create-dialog.js
  164. +1 −1 version.txt
83 changes: 83 additions & 0 deletions .azure/applications/graphql/main.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
targetScope = 'resourceGroup'

@minLength(3)
param imageTag string
@minLength(3)
param environment string
@minLength(3)
param location string

@minLength(3)
@secure()
param containerAppEnvironmentName string
@minLength(3)
@secure()
param appInsightConnectionString string
@minLength(5)
@secure()
param appConfigurationName string
@minLength(3)
@secure()
param environmentKeyVaultName string

var namePrefix = 'dp-be-${environment}'
var baseImageUrl = 'ghcr.io/digdir/dialogporten-'

resource appConfiguration 'Microsoft.AppConfiguration/configurationStores@2023-03-01' existing = {
name: appConfigurationName
}

resource containerAppEnvironment 'Microsoft.App/managedEnvironments@2023-05-01' existing = {
name: containerAppEnvironmentName
}

var containerAppEnvVars = [
{
name: 'ASPNETCORE_ENVIRONMENT'
value: environment
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: appInsightConnectionString
}
{
name: 'AZURE_APPCONFIG_URI'
value: appConfiguration.properties.endpoint
}
]

resource environmentKeyVaultResource 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
name: environmentKeyVaultName
}

var containerAppName = '${namePrefix}-graphql-ca'

module containerApp '../../modules/containerApp/main.bicep' = {
name: containerAppName
params: {
name: containerAppName
image: '${baseImageUrl}graphql:${imageTag}'
location: location
envVariables: containerAppEnvVars
containerAppEnvId: containerAppEnvironment.id
}
}

module keyVaultReaderAccessPolicy '../../modules/keyvault/addReaderRoles.bicep' = {
name: 'keyVaultReaderAccessPolicy-${containerAppName}'
params: {
keyvaultName: environmentKeyVaultResource.name
principalIds: [containerApp.outputs.identityPrincipalId]
}
}

module appConfigReaderAccessPolicy '../../modules/appConfiguration/addReaderRoles.bicep' = {
name: 'appConfigReaderAccessPolicy-${containerAppName}'
params: {
appConfigurationName: appConfigurationName
principalIds: [containerApp.outputs.identityPrincipalId]
}
}

output name string = containerApp.outputs.name
output revisionName string = containerApp.outputs.revisionName
11 changes: 11 additions & 0 deletions .azure/applications/graphql/staging.bicepparam
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using './main.bicep'

param environment = 'staging'
param location = 'norwayeast'
param imageTag = readEnvironmentVariable('IMAGE_TAG')

// secrets
param environmentKeyVaultName = readEnvironmentVariable('ENVIRONMENT_KEY_VAULT_NAME')
param containerAppEnvironmentName = readEnvironmentVariable('CONTAINER_APP_ENVIRONMENT_NAME')
param appInsightConnectionString = readEnvironmentVariable('APP_INSIGHTS_CONNECTION_STRING')
param appConfigurationName = readEnvironmentVariable('APP_CONFIGURATION_NAME')
11 changes: 11 additions & 0 deletions .azure/applications/graphql/test.bicepparam
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using './main.bicep'

param environment = 'test'
param location = 'norwayeast'
param imageTag = readEnvironmentVariable('IMAGE_TAG')

// secrets
param environmentKeyVaultName = readEnvironmentVariable('ENVIRONMENT_KEY_VAULT_NAME')
param containerAppEnvironmentName = readEnvironmentVariable('CONTAINER_APP_ENVIRONMENT_NAME')
param appInsightConnectionString = readEnvironmentVariable('APP_INSIGHTS_CONNECTION_STRING')
param appConfigurationName = readEnvironmentVariable('APP_CONFIGURATION_NAME')
2 changes: 1 addition & 1 deletion .azure/modules/applicationInsights/create.bicep
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ type Sku = {
}
param sku Sku

resource appInsightsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
resource appInsightsWorkspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
name: '${namePrefix}-insightsWorkspace'
location: location
properties: {
20 changes: 12 additions & 8 deletions .azure/modules/containerApp/main.bicep
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ param envVariables array = []
param port int = 8080
param name string
param image string
param apimIp string
param apimIp string?

param containerAppEnvId string

@@ -28,16 +28,20 @@ var probes = [
}
]

var ipSecurityRestrictions = empty(apimIp)
? []
: [
{
name: 'apim'
action: 'Allow'
ipAddressRange: apimIp!
}
]

var ingress = {
targetPort: port
external: true
ipSecurityRestrictions: [
{
name: 'apim'
action: 'Allow'
ipAddressRange: apimIp
}
]
ipSecurityRestrictions: ipSecurityRestrictions
}

resource containerApp 'Microsoft.App/containerApps@2023-05-01' = {
2 changes: 1 addition & 1 deletion .azure/modules/containerAppEnv/main.bicep
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ param namePrefix string

param appInsightWorkspaceName string

resource appInsightsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' existing = {
resource appInsightsWorkspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' existing = {
name: appInsightWorkspaceName
}

22 changes: 11 additions & 11 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
name: Bug
about: Hvis du finner noe som ikke fungerer som det skal.
about: If you find something that is not working as it should.
title: ''
labels: bug
assignees: ''
---

### Beskrivelse
En kort og konsis beskrivelse av feilen
### Description
A short and concise description of the error

### Reproduksjon
Punktvise steg for å reprodusere feilen, med informasjon om hvilke requests som ble foretatt (URL-er med parametre, metoder, headers (ikke tokens!), inklusive evt DTO-er som ble brukt hvis POST/PUT/PATCH)
### Reproduction
Step-by-step instructions to reproduce the error, with information about the requests that were made (URLs with parameters, methods, headers (no tokens!), including any DTOs used if POST/PUT/PATCH)

### Forventet oppførsel
En kort og konsis beskrivelse av hva du forventet skulle skje
### Expected behavior
A short and concise description of what you expected to happen

### Faktisk oppførsel
En kort og konsis beskrivelse av hva som faktisk skjedde
### Actual behavior
A short and concise description of what actually happened

### Ytterligere informasjon
Hvis det er ytterligere kontekst som er relevant å ta med.
### Additional information
If there is additional context that is relevant to include.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/new-change-in-functionality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: New/change of functionality
about: New or changed functionality
title: ''
labels: ''
assignees: ''
projects: ['digdir/7']
---

### Introduction
A short and concise description of the functionality this issue addresses.

### Description
A longer description that accounts for the need, and describes how the functionality should work in detail (in prose form, see also acceptance criteria).

If this is functionality that does not have a clear solution, tag the issue with `analysis`. The task list then consists of clarification questions.

### Implementation
If there are guidelines on architecture or other implementation choices, they are added here. Different approaches can also be discussed here.

```[tasklist]
### Tasks
- [ ] Implementation tasks are added here
- [ ] Prepare documentation (if relevant - either update working document, or add a new file in `docs`)
- [ ] Add e2e-test (if relevant)
```

### Acceptance criteria
_GIVEN_ ...
_WHEN_ ....
_THEN_ ...

_GIVEN_ ...
_WHEN_ ....
_THEN_ ...
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/ny-endring-av-funksjonalitet.md

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/action-check-for-changes.yml
Original file line number Diff line number Diff line change
@@ -12,6 +12,9 @@ on:
hasSlackNotifierChanges:
description: "Slack Notifier function related files changed"
value: ${{ jobs.check-for-changes.outputs.hasSlackNotifierChanges }}
hasMigrationChanges:
description: "Migration related files changed"
value: ${{ jobs.check-for-changes.outputs.hasMigrationChanges }}
jobs:
check-for-changes:
name: Filter
@@ -20,7 +23,7 @@ jobs:
hasBackendChanges: ${{ steps.filter.outputs.backend_any_changed == 'true' }}
hasAzureChanges: ${{ steps.filter.outputs.azure_any_changed == 'true' }}
hasSlackNotifierChanges: ${{ steps.filter.outputs.slackNotifier_any_changed == 'true'}}

hasMigrationChanges: ${{ steps.filter.outputs.migration_any_changed == 'true'}}
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -43,3 +46,5 @@ jobs:
slackNotifier:
- '.github/**/*'
- 'src/Digdir.Tool.Dialogporten.SlackNotifier/**/*'
migration:
- 'src/Digdir.Domain.Dialogporten.Infrastructure/Persistence/Migrations/**/*'
11 changes: 10 additions & 1 deletion .github/workflows/action-deploy-apps.yml
Original file line number Diff line number Diff line change
@@ -37,6 +37,11 @@ on:
description: "Current version to use as tag"
required: true
type: string
runMigration:
description: "If true, the migration job will be run."
required: false
type: boolean
default: false
concurrency:
# Existing runs are cancelled if someone repeatedly commits to their own Pull Request (PR). However, it does not stop others' dry runs or actual deployments from the main branch.
# Also, the cancellation does not occur on merges to the main branch. Therefore, if multiple merges to main are performed simultaneously, they will just be queued up.
@@ -47,6 +52,7 @@ jobs:
deploy-migration-job:
name: Deploy migration job to ${{ inputs.environment }}
runs-on: ubuntu-latest
if: ${{ inputs.runMigration }}
environment: ${{inputs.environment}}
permissions:
id-token: write
@@ -56,7 +62,7 @@ jobs:
uses: actions/checkout@v4

- name: OIDC Login to Azure Public Cloud
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
@@ -108,13 +114,16 @@ jobs:
deploy-apps:
name: Deploy ${{ matrix.name }} to ${{ inputs.environment }}
runs-on: ubuntu-latest
# Should run even though the migration job was skipped
if: ${{ always() && !failure() && !cancelled() }}
needs: deploy-migration-job
strategy:
fail-fast: true
matrix:
include:
- name: web-api-eu
- name: web-api-so
- name: graphql
environment: ${{ inputs.environment }}
permissions:
id-token: write
2 changes: 2 additions & 0 deletions .github/workflows/action-publish.yml
Original file line number Diff line number Diff line change
@@ -27,6 +27,8 @@ jobs:
include:
- dockerfile: ./src/Digdir.Domain.Dialogporten.WebApi/Dockerfile
imageName: webapi
- dockerfile: ./src/Digdir.Domain.Dialogporten.GraphQL/Dockerfile
imageName: graphql
- dockerfile: ./src/Digdir.Domain.Dialogporten.Service/Dockerfile
imageName: service
- dockerfile: ./src/Digdir.Domain.Dialogporten.ChangeDataCapture/Dockerfile
Loading