Skip to content

Commit

Permalink
chore(applications): add appsettings for yt01 (#1312)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

Adds appsettings for the new yt01 environment

## Related Issue(s)

- #1258

## 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)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced new JSON configuration files for the Dialogporten component
across multiple modules, enhancing infrastructure and application
parameter setups.
- Added structured settings for Redis, database connections, and
authentication configurations for improved operational efficiency.

These changes are essential for the application's functionality,
particularly in a test environment.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Knut Haug <[email protected]>
  • Loading branch information
arealmaas and knuhau authored Oct 17, 2024
1 parent 3ffb724 commit d6662ce
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 0 deletions.
62 changes: 62 additions & 0 deletions src/Digdir.Domain.Dialogporten.GraphQL/appsettings.yt01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"Infrastructure": {
"Redis": {
"ConnectionString": "TODO: Add to local secrets"
},
"DialogDbConnectionString": "TODO: Add to local secrets",
// Settings from appsettings.json, environment variables or other configuration providers.
// The first three are always mandatory for all client definitions types
"Maskinporten": {
// 1. Valid values are test and prod
"Environment": "test",
// 2. Client Id/integration as configured in Maskinporten
"ClientId": "TODO: Add to local secrets",
// 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id.
"Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin",
// --------------------------
// Any additional settings are specific for the selected client definition type.
// See below for examples using other types.
"EncodedJwk": "TODO: Add to local secrets"
},
"Altinn": {
"BaseUri": "https://platform.yt01.altinn.cloud/",
"EventsBaseUri": "Secret webhook sink URL in source key vault",
"SubscriptionKey": "TODO: Add to local secrets"
}
},
"Application": {
"Dialogporten": {
"BaseUri": "https://platform.yt01.altinn.cloud/dialogporten",
"Ed25519KeyPairs": {
"Primary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
},
"Secondary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
}
}
}
},
"GraphQl": {
"Authentication": {
"JwtBearerTokenSchemas": [
{
"Name": "Maskinporten",
"WellKnown": "https://test.maskinporten.no/.well-known/oauth-authorization-server/"
},
{
"Name": "Altinn",
"WellKnown": "https://platform.yt01.altinn.cloud/authentication/api/v1/openid/.well-known/openid-configuration"
},
{
"Name": "Idporten",
"WellKnown": "https://test.idporten.no/.well-known/openid-configuration"
}
]
}
}
}
54 changes: 54 additions & 0 deletions src/Digdir.Domain.Dialogporten.Janitor/appsettings.yt01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"Infrastructure": {
"Redis": {
"ConnectionString": "TODO: Add to local secrets"
},
"DialogDbConnectionString": "TODO: Add to local secrets",
"Maskinporten": {
"Environment": "test",
"ClientId": "TODO: Add to local secrets",
"Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin",
"EncodedJwk": "TODO: Add to local secrets"
},
"Altinn": {
"BaseUri": "https://platform.yt01.altinn.cloud/",
"EventsBaseUri": "Secret webhook sink URL in source key vault",
"SubscriptionKey": "TODO: Add to local secrets"
}
},
"Application": {
"Dialogporten": {
"BaseUri": "https://platform.yt01.altinn.cloud/dialogporten",
"Ed25519KeyPairs": {
"Primary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
},
"Secondary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
}
}
}
},
"WebApi": {
"Authentication": {
"JwtBearerTokenSchemas": [
{
"Name": "Maskinporten",
"WellKnown": "https://test.maskinporten.no/.well-known/oauth-authorization-server/"
},
{
"Name": "Altinn",
"WellKnown": "https://platform.yt01.altinn.cloud/authentication/api/v1/openid/.well-known/openid-configuration"
},
{
"Name": "Idporten",
"WellKnown": "https://test.idporten.no/.well-known/openid-configuration"
}
]
}
}
}
62 changes: 62 additions & 0 deletions src/Digdir.Domain.Dialogporten.WebApi/appsettings.yt01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"Infrastructure": {
"Redis": {
"ConnectionString": "TODO: Add to local secrets"
},
"DialogDbConnectionString": "TODO: Add to local secrets",
// Settings from appsettings.json, environment variables or other configuration providers.
// The first three are always mandatory for all client definitions types
"Maskinporten": {
// 1. Valid values are test and prod
"Environment": "test",
// 2. Client Id/integration as configured in Maskinporten
"ClientId": "TODO: Add to local secrets",
// 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id.
"Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin",
// --------------------------
// Any additional settings are specific for the selected client definition type.
// See below for examples using other types.
"EncodedJwk": "TODO: Add to local secrets"
},
"Altinn": {
"BaseUri": "https://platform.yt01.altinn.cloud/",
"EventsBaseUri": "Secret webhook sink URL in source key vault",
"SubscriptionKey": "TODO: Add to local secrets"
}
},
"Application": {
"Dialogporten": {
"BaseUri": "https://platform.yt01.altinn.cloud/dialogporten",
"Ed25519KeyPairs": {
"Primary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
},
"Secondary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
}
}
}
},
"WebApi": {
"Authentication": {
"JwtBearerTokenSchemas": [
{
"Name": "Maskinporten",
"WellKnown": "https://test.maskinporten.no/.well-known/oauth-authorization-server/"
},
{
"Name": "Altinn",
"WellKnown": "https://platform.yt01.altinn.cloud/authentication/api/v1/openid/.well-known/openid-configuration"
},
{
"Name": "Idporten",
"WellKnown": "https://test.idporten.no/.well-known/openid-configuration"
}
]
}
}
}

0 comments on commit d6662ce

Please sign in to comment.