You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,29 @@
1
+
## 18.3.0 (2025-08-22)
2
+
3
+
### FEATURES (3 changes)
4
+
5
+
-[Add new `gitlab_group_deploy_token` and `gitlab_project_deploy_token` resources. The existing generic `gitlab_deploy_token` resource has now been deprecated.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/888655dc0fe8b5a2733efbf06465164055afbe1c) by @mness ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2604))
6
+
-[Add new `gitlab_group_saml_links` datasource](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/e17475001ccb12a5bb0588411e74092f7c2f006f) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2584))
7
+
-[Support client-go config file for provider authentication. See more information here: https://gitlab.com/gitlab-org/api/client-go#use-the-config-package-experimental](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/95a83237e7b2a1cb34149591d61a742f1d8ef179) by @timofurrer ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2592))
8
+
9
+
### IMPROVEMENTS (6 changes)
10
+
11
+
- resource/gitlab_project_level_notifications: [Update to handle unknown value validation](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/1bbebb2c0fd8f09f555a88d968c621fed6d662c9) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2600))
12
+
- resource/gitlab_group: [Add support for `administrator` to `project_creation_level`](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/2813a1a504a3f7bae3cced0cdedf1016f87ee291) by @aldo.salas1 ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2601))
13
+
- resource/gitlab_group_security_policy_attachments: [This resource now checks permissions prior to adding the policy, and fails with a informative error if permissions are missing](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/ce294bfe8a1d1980aeb1179c0b908e2bffc4a75e) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2593))
14
+
- resource/gitlab_project_security_policy_attachments: [This resource now checks permissions prior to adding the policy, and fails with a informative error if permissions are missing](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/ce294bfe8a1d1980aeb1179c0b908e2bffc4a75e) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2593))
15
+
- resource/gitlab_deploy_token: [Add support for previously missing scope options](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/888655dc0fe8b5a2733efbf06465164055afbe1c) by @mness ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2604))
16
+
- resource/gitlab_instance_service_account: [Allow instance service accounts to be created without username and/or name](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/642a9beb08e1248867ac3e0098aa765f65119bdb) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2585))
17
+
18
+
### BUG FIXES (6 changes)
19
+
20
+
- resource/gitlab_global_level_notifications: [Update to handle unknown value validation](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/d36f740539b2a54490a50cf3bd1a03cab7981cad) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2595))
21
+
- resource/gitlab_project_level_notifications: [Update to handle unknown value validation](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/1bbebb2c0fd8f09f555a88d968c621fed6d662c9) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2600))
22
+
- resource/gitlab_project_protected_environment: [Fix error in protected environment using unknown deploy attributes](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/ec63e4f688c9cf5a9d1bd6e7ac2999440580dcf1) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2594))
23
+
- resource/gitlab_project_integration_github: [Fix a provider panic that occurs when importing a non-existent integration](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/068405a8b0762ca680bed8943d32763bdafe19dc) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2599))
24
+
- resource/gitlab_group_dependency_proxy: [Fixed a bug where importing using an `import` block caused an immediate replace](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/7be6298efafe222e23523554bd660f3a5a43d37a) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2607))
25
+
- resource/gitlab_group: [Fixed an issue with `permanently_remove_on_delete` that occurred when deleting groups on GitLab versions later than 18.0](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/1a09f11f064069a9e19d26bdf592c5ea608af5b7) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2598))
Copy file name to clipboardExpand all lines: docs/data-sources/instance_variable.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@
3
3
page_title: "gitlab_instance_variable Data Source - terraform-provider-gitlab"
4
4
subcategory: ""
5
5
description: |-
6
-
The gitlab_instance_variable data source allows to retrieve details about an instance-level CI/CD variable.
6
+
The gitlab_instance_variable data source retrieves details about an instance-level CI/CD variable.
7
7
Upstream API: GitLab REST API docs https://docs.gitlab.com/api/instance_level_ci_variables/
8
8
---
9
9
10
10
# gitlab_instance_variable (Data Source)
11
11
12
-
The `gitlab_instance_variable` data source allows to retrieve details about an instance-level CI/CD variable.
12
+
The `gitlab_instance_variable` data source retrieves details about an instance-level CI/CD variable.
13
13
14
14
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/instance_level_ci_variables/)
15
15
@@ -31,9 +31,9 @@ data "gitlab_instance_variable" "foo" {
31
31
### Read-Only
32
32
33
33
-`description` (String) The description of the variable. Maximum of 255 characters.
34
-
-`id` (String) The ID of this resource.
35
-
-`masked` (Boolean) If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ci/variables/#masked-variables). Defaults to `false`.
36
-
-`protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
37
-
-`raw` (Boolean) Whether the variable is treated as a raw string. Default: false. When true, variables in the value are not expanded.
34
+
-`id` (String) The ID of this datasource. In the format `<key>`.
35
+
-`masked` (Boolean) If set to `true`, the value of the variable will be hidden in job logs.
36
+
-`protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags.
37
+
-`raw` (Boolean) If set to `true`, the variable will be treated as a raw string.
38
38
-`value` (String) The value of the variable.
39
-
-`variable_type` (String) The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`.
39
+
-`variable_type` (String) The type of the variable, either `env_var` or `file`.
Copy file name to clipboardExpand all lines: docs/data-sources/project_variable.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,18 +35,18 @@ data "gitlab_project_variable" "bar" {
35
35
### Required
36
36
37
37
-`key` (String) The name of the variable.
38
-
-`project` (String) The name or id of the project.
38
+
-`project` (String) The name or path of the project.
39
39
40
40
### Optional
41
41
42
-
-`environment_scope` (String) The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.
42
+
-`environment_scope` (String) The environment scope of the variable. Defaults to all environment (`*`).
43
43
44
44
### Read-Only
45
45
46
-
-`description` (String) The description of the variable.
47
-
-`id` (String) The ID of this resource.
48
-
-`masked` (Boolean) If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ci/variables/#masked-variables). Defaults to `false`.
49
-
-`protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
50
-
-`raw` (Boolean) Whether the variable is treated as a raw string. Default: false. When true, variables in the value are not expanded.
46
+
-`description` (String) The description of the variable. Maximum of 255 characters.
47
+
-`id` (String) The ID of this datasource. In the format `<project:key:environment-scope>`.
48
+
-`masked` (Boolean) If set to `true`, the value of the variable will be hidden in job logs.
49
+
-`protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags.
50
+
-`raw` (Boolean) If set to `true`, the variable will be treated as a raw string.
51
51
-`value` (String) The value of the variable.
52
-
-`variable_type` (String) The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`.
52
+
-`variable_type` (String) The type of the variable, either `env_var` or `file`.
resp.Diagnostics.AddError("GitLab API error occurred", fmt.Sprintf("Unable to create application: %s", err.Error()))
324
324
return
@@ -347,7 +347,7 @@ the input follows terraform best practices.
347
347
will not be passed to the API, and either defaults will be used or the value will not be set by the API.
348
348
4.`if !data.Confidential.IsNull() {...}` checks to see if an optional value is null. If the value is not null, it's added to the `options`
349
349
struct to be passed to the API.
350
-
5.`application, _, err := r.client.Applications.CreateApplication(options)` calls the API with the input options to create the application.
350
+
5.`application, _, err := r.client.Applications.CreateApplication(options, gitlab.WithContext(ctx))` calls the API with the input options to create the application.
351
351
6. Just like in the `Read` func, `r.applicationModelToState(application, data)` sets the newly created application into the data object
352
352
7. Finally, like in the `Read` func, `resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)` sets the data into state.
-`cacert_file` (String) This is a file containing the ca cert to verify the gitlab instance. This is available for use when working with GitLab CE or Gitlab Enterprise with a locally-issued or self-signed certificate chain.
93
104
-`client_cert` (String) File path to client certificate when GitLab instance is behind company proxy. File must contain PEM encoded data.
94
105
-`client_key` (String) File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `client_cert` is set.
106
+
-`config_file` (String) The path to the configuration file to use. It may be sourced from the `GITLAB_CONFIG_FILE` environment variable.
107
+
-`context` (String) The context to use for authentication and configuration. The context must exist in the configuration file. It may be sourced from the `GITLAB_CONTEXT` environment variable.
95
108
-`early_auth_check` (Boolean) (Experimental) By default the provider does a dummy request to get the current user in order to verify that the provider configuration is correct and the GitLab API is reachable. Set this to `false` to skip this check. This may be useful if the GitLab instance does not yet exist and is created within the same terraform module. It may be sourced from the `GITLAB_EARLY_AUTH_CHECK`. This is an experimental feature and may change in the future. Please make sure to always keep backups of your state.
109
+
-`enable_auto_ci_support` (Boolean) If automatic CI support should be enabled or not. This only works when not providing a token.
96
110
-`headers` (Map of String) A map of headers to append to all API request to the GitLab instance.
97
111
-`insecure` (Boolean) When set to true this disables SSL verification of the connection to the GitLab instance.
98
112
-`retries` (Number) The number of retries to execute when receiving a 429 Rate Limit error. Each retry will exponentially back off.
0 commit comments