Skip to content

Commit

Permalink
fix(terraform-provider-jans): update terraform provider (#4148)
Browse files Browse the repository at this point in the history
Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>
  • Loading branch information
moabu committed Mar 15, 2023
1 parent 22323ce commit 92134c8
Show file tree
Hide file tree
Showing 16 changed files with 839 additions and 23 deletions.
9 changes: 8 additions & 1 deletion terraform-provider-jans/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog

## [0.2.0](https://github.com/JannsenProject/terraform-provider-jans/compare/v0.1.0...v0.2.0) (2023-02-16)
## [0.3.0](https://github.com/techtative/terraform-provider-jans/compare/v0.2.0...v0.3.0) (2023-03-15)


### Features

* added new resource for manaing api app config

## [0.2.0](https://github.com/techtative/terraform-provider-jans/compare/v0.1.0...v0.2.0) (2023-02-16)


### Features
Expand Down
2 changes: 2 additions & 0 deletions terraform-provider-jans/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ the other hand will result in the resource being removed from the state file.

The following resources are considered instance configurations:

- jans_api_app_configuration
- jans_app_configuration
- jans_cache_configuration
- jans_default_authentication_method
Expand All @@ -47,6 +48,7 @@ The following resources are considered instance configurations:
It is recommended to import all of those resources before managing anything else:

```bash
terraform import jans_api_app_configuration.global global
terraform import jans_app_configuration.global global
terraform import jans_cache_configuration.global global
terraform import jans_default_authentication_method.global global
Expand Down
119 changes: 119 additions & 0 deletions terraform-provider-jans/docs/resources/api_app_configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "jans_api_app_configuration Resource - terraform-provider-jans"
subcategory: ""
description: |-
Resource for managing config-api configuration properties.
---

# jans_api_app_configuration (Resource)

Resource for managing config-api configuration properties.

## Example Usage

```terraform
resource "jans_api_app_configuration" "global" {
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `agama_configuration` (Block List) (see [below for nested schema](#nestedblock--agama_configuration))
- `api_approved_issuer` (List of String)
- `api_client_id` (String)
- `api_client_password` (String)
- `api_protection_type` (String)
- `audit_log_conf` (Block List) (see [below for nested schema](#nestedblock--audit_log_conf))
- `auth_issuer_url` (String)
- `auth_openid_configuration_url` (String)
- `auth_openid_introspection_url` (String)
- `auth_openid_revoke_url` (String)
- `auth_openid_token_url` (String)
- `config_oauth_enabled` (Boolean)
- `cors_configuration_filters` (Block List) (see [below for nested schema](#nestedblock--cors_configuration_filters))
- `data_format_conversion_conf` (Block List) (see [below for nested schema](#nestedblock--data_format_conversion_conf))
- `disable_jdk_logger` (Boolean)
- `endpoint_injection_enabled` (Boolean)
- `exclusive_auth_scopes` (List of String)
- `external_logger_configuration` (String)
- `logging_layout` (String)
- `logging_level` (String)
- `max_count` (Number)
- `plugins` (Block List) (see [below for nested schema](#nestedblock--plugins))
- `smallrye_health_root_path` (String)
- `user_exclusion_attributes` (List of String)
- `user_mandatory_attributes` (List of String)

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--agama_configuration"></a>
### Nested Schema for `agama_configuration`

Optional:

- `mandatory_attributes` (List of String)
- `optional_attributes` (List of String)


<a id="nestedblock--audit_log_conf"></a>
### Nested Schema for `audit_log_conf`

Optional:

- `enabled` (Boolean)
- `header_attributes` (List of String)
- `ignore_http_method` (List of String)


<a id="nestedblock--cors_configuration_filters"></a>
### Nested Schema for `cors_configuration_filters`

Optional:

- `cors_allowed_headers` (String)
- `cors_allowed_methods` (String)
- `cors_allowed_origins` (String)
- `cors_enabled` (Boolean)
- `cors_exposed_headers` (String)
- `cors_logging_enabled` (Boolean)
- `cors_preflight_max_age` (Number)
- `cors_request_decorate` (Boolean)
- `cors_support_credentials` (Boolean)
- `filter_name` (String)


<a id="nestedblock--data_format_conversion_conf"></a>
### Nested Schema for `data_format_conversion_conf`

Optional:

- `enabled` (Boolean)
- `ignore_http_method` (List of String)


<a id="nestedblock--plugins"></a>
### Nested Schema for `plugins`

Optional:

- `class_name` (String)
- `description` (String)
- `name` (String)

## Import

Import is supported using the following syntax:

```shell
# The API App configuration is a global resource that has to be imported,
# before it can be managed (it cannot be created or deleted). You can choose
# any identifier for the import, or use 'global' as in the example below.
terraform import jans_api_app_configuration.global global
```
14 changes: 8 additions & 6 deletions terraform-provider-jans/docs/resources/app_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ resource "jans_app_configuration" "global" {
- `authorization_encryption_alg_values_supported` (List of String) A list of the authorization encryption algorithms supported.
- `authorization_encryption_enc_values_supported` (List of String) A list of the authorization encryption algorithms supported.
- `authorization_endpoint` (String) The authorization endpoint URL. Example: https://server.example.com/restv1/authorize
- `authorization_request_custom_allowed_parameters` (Block List) Authorization Request Custom Allowed Parameters. (see [below for nested schema](#nestedblock--authorization_request_custom_allowed_parameters))
- `authorization_request_custom_allowed_parameters` (Block List) Authorization Request Custom Allowed Parameters. To avoid diverging state, those should be defined in alphabetical order. (see [below for nested schema](#nestedblock--authorization_request_custom_allowed_parameters))
- `authorization_signing_alg_values_supported` (List of String) A list of the authorization signing algorithms supported.
- `backchannel_authentication_endpoint` (String) Backchannel Authentication Endpoint. Example: https://server.example.com/oxeleven/rest/backchannel/backchannelAuthenticationEndpoint()
- `backchannel_authentication_request_signing_alg_values_supported` (List of String) Backchannel Authentication Request Signing Alg Values Supported.
Expand Down Expand Up @@ -131,8 +131,9 @@ resource "jans_app_configuration" "global" {
- `force_signed_request_object` (Boolean) Boolean value true indicates that signed request object is mandatory.
- `front_channel_logout_session_supported` (Boolean) Boolean value to specify support for front channel logout session.
- `grant_types_and_response_types_autofix_enabled` (Boolean) Boolean value specifying whether to Grant types and Response types can be auto fixed.
- `grant_types_supported` (List of String) A list of the OAuth 2.0 Grant Type values that this OP supports. One of "authorization_code",
"implicit", "password", "client_credentials", "refresh_token", "urn:ietf:params:oauth:grant-type:uma-ticket",
- `grant_types_supported` (List of String) A list of the OAuth 2.0 Grant Type values that this OP supports. One of"none", "authorization_code",
"client_credentials", "implicit", "password", "refresh_token", "urn:ietf:params:oauth:grant-type:device_code",
"urn:ietf:params:oauth:grant-type:token-exchange", "urn:ietf:params:oauth:grant-type:uma-ticket",
"urn:openid:params:grant-type:ciba".
- `http_logging_enabled` (Boolean) Enable/Disable request/response logging filter.
- `http_logging_exclude_paths` (List of String) List of base URI for which request/response logging filter should not record activity. Example: "/auth/img", "/auth/stylesheet"
Expand Down Expand Up @@ -240,7 +241,8 @@ resource "jans_app_configuration" "global" {
- `require_request_object_encryption` (Boolean) Boolean value true encrypts request object
- `require_request_uri_registration` (Boolean) Boolean value specifying whether the OP requires any request_uri values used to be
pre-registered using the request_uris registration parameter.
- `response_modes_supported` (List of String) A list of the OAuth 2.0 Response Mode values that this OP supports. One of "query¡¡", "fragment", "form_post".
- `response_modes_supported` (List of String) A list of the OAuth 2.0 Response Mode values that this OP supports. One of "query",
"fragment", "form_post", "query.jwt", "fragment.jwt", "form_post.jwt", "jwt".
- `response_types_supported` (List of List of String) A list of the OAuth 2.0 response_type values that this OP supports. One of "code", "token", "id_token".
- `return_client_secret_on_read` (Boolean) Boolean value specifying whether a client_secret is returned on client GET or PUT. False value means not to return secret.
- `sector_identifier_cache_lifetime` (Number) The cache lifetime in minutes of the sector identifier.
Expand Down Expand Up @@ -268,13 +270,13 @@ resource "jans_app_configuration" "global" {
- `subject_identifiers_per_client_supported` (List of String) A list of the subject identifiers supported per client.
- `subject_types_supported` (List of String) A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public.
- `token_endpoint` (String) The token endpoint URL. Example: https://server.example.com/restv1/token
- `token_endpoint_auth_methods_supported` (List of String) A list of Client Authentication methods supported by this Token Endpoint. One of 'client_secret_basic', 'client_secret_post', 'client_secret_jwt', 'private_key_jwt'.
- `token_endpoint_auth_methods_supported` (List of String) A list of Client Authentication methods supported by this Token Endpoint.
- `token_endpoint_auth_signing_alg_values_supported` (List of String) A list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature
on the JWT used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt
authentication methods. One of 'HS256', 'HS384', 'HS512', 'RS256", 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'PS256', 'PS384', 'PS512'.
- `token_revocation_endpoint` (String) The URL for the access_token or refresh_token revocation endpoint. Example: https://server.example.com/restv1/revoke
- `trusted_client_enabled` (Boolean) Boolean value specifying whether a client is trusted and no authorization is required.
- `ui_locales_supported` (List of String) Languages and scripts supported for the user interface. One of 'en', 'es'.
- `ui_locales_supported` (List of String) Languages and scripts supported for the user interface. One of "en", "bg", "de", "es", "fr", "it", "ru", "tr".
- `uma_add_scopes_automatically` (Boolean) Add scopes automatically.
- `uma_configuration_endpoint` (String) URL for the UMA Configuration Endpoint. Example: https://server.example.com/restv1/uma2-configuration
- `uma_grant_access_if_no_policies` (Boolean) Specifies whether to grant access to resources if there are no any policies associated with scopes.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# The API App configuration is a global resource that has to be imported,
# before it can be managed (it cannot be created or deleted). You can choose
# any identifier for the import, or use 'global' as in the example below.
terraform import jans_api_app_configuration.global global
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "jans_api_app_configuration" "global" {

}
7 changes: 3 additions & 4 deletions terraform-provider-jans/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ require (
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.1 // indirect
github.com/zclconf/go-cty v1.10.0 // indirect
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d // indirect
google.golang.org/grpc v1.48.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/yaml.v2 v2.4.0
)
14 changes: 6 additions & 8 deletions terraform-provider-jans/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down Expand Up @@ -260,15 +260,15 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
Expand Down Expand Up @@ -322,8 +322,6 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Expand Down
Loading

0 comments on commit 92134c8

Please sign in to comment.