@@ -49,28 +49,29 @@ type CachedImageResourceModel struct {
49
49
CacheRepo types.String `tfsdk:"cache_repo"`
50
50
GitURL types.String `tfsdk:"git_url"`
51
51
// Optional "inputs".
52
- BaseImageCacheDir types.String `tfsdk:"base_image_cache_dir"`
53
- BuildContextPath types.String `tfsdk:"build_context_path"`
54
- CacheTTLDays types.Int64 `tfsdk:"cache_ttl_days"`
55
- DevcontainerDir types.String `tfsdk:"devcontainer_dir"`
56
- DevcontainerJSONPath types.String `tfsdk:"devcontainer_json_path"`
57
- DockerfilePath types.String `tfsdk:"dockerfile_path"`
58
- DockerConfigBase64 types.String `tfsdk:"docker_config_base64"`
59
- ExitOnBuildFailure types.Bool `tfsdk:"exit_on_build_failure"`
60
- ExtraEnv types.Map `tfsdk:"extra_env"`
61
- FallbackImage types.String `tfsdk:"fallback_image"`
62
- GitCloneDepth types.Int64 `tfsdk:"git_clone_depth"`
63
- GitCloneSingleBranch types.Bool `tfsdk:"git_clone_single_branch"`
64
- GitHTTPProxyURL types.String `tfsdk:"git_http_proxy_url"`
65
- GitPassword types.String `tfsdk:"git_password"`
66
- GitSSHPrivateKeyPath types.String `tfsdk:"git_ssh_private_key_path"`
67
- GitUsername types.String `tfsdk:"git_username"`
68
- IgnorePaths types.List `tfsdk:"ignore_paths"`
69
- Insecure types.Bool `tfsdk:"insecure"`
70
- RemoteRepoBuildMode types.Bool `tfsdk:"remote_repo_build_mode"`
71
- SSLCertBase64 types.String `tfsdk:"ssl_cert_base64"`
72
- Verbose types.Bool `tfsdk:"verbose"`
73
- WorkspaceFolder types.String `tfsdk:"workspace_folder"`
52
+ BaseImageCacheDir types.String `tfsdk:"base_image_cache_dir"`
53
+ BuildContextPath types.String `tfsdk:"build_context_path"`
54
+ CacheTTLDays types.Int64 `tfsdk:"cache_ttl_days"`
55
+ DevcontainerDir types.String `tfsdk:"devcontainer_dir"`
56
+ DevcontainerJSONPath types.String `tfsdk:"devcontainer_json_path"`
57
+ DockerfilePath types.String `tfsdk:"dockerfile_path"`
58
+ DockerConfigBase64 types.String `tfsdk:"docker_config_base64"`
59
+ ExitOnBuildFailure types.Bool `tfsdk:"exit_on_build_failure"`
60
+ ExtraEnv types.Map `tfsdk:"extra_env"`
61
+ FallbackImage types.String `tfsdk:"fallback_image"`
62
+ GitCloneDepth types.Int64 `tfsdk:"git_clone_depth"`
63
+ GitCloneSingleBranch types.Bool `tfsdk:"git_clone_single_branch"`
64
+ GitHTTPProxyURL types.String `tfsdk:"git_http_proxy_url"`
65
+ GitPassword types.String `tfsdk:"git_password"`
66
+ GitSSHPrivateKeyPath types.String `tfsdk:"git_ssh_private_key_path"`
67
+ GitSSHPrivateKeyBase64 types.String `tfsdk:"git_ssh_private_key_base64"`
68
+ GitUsername types.String `tfsdk:"git_username"`
69
+ IgnorePaths types.List `tfsdk:"ignore_paths"`
70
+ Insecure types.Bool `tfsdk:"insecure"`
71
+ RemoteRepoBuildMode types.Bool `tfsdk:"remote_repo_build_mode"`
72
+ SSLCertBase64 types.String `tfsdk:"ssl_cert_base64"`
73
+ Verbose types.Bool `tfsdk:"verbose"`
74
+ WorkspaceFolder types.String `tfsdk:"workspace_folder"`
74
75
// Computed "outputs".
75
76
Env types.List `tfsdk:"env"`
76
77
EnvMap types.Map `tfsdk:"env_map"`
@@ -186,6 +187,11 @@ func (r *CachedImageResource) Schema(ctx context.Context, req resource.SchemaReq
186
187
MarkdownDescription : "(Envbuilder option) Path to an SSH private key to be used for Git authentication." ,
187
188
Optional : true ,
188
189
},
190
+ "git_ssh_private_key_base64" : schema.StringAttribute {
191
+ MarkdownDescription : "(Envbuilder option) Base64 encoded SSH private key to be used for Git authentication." ,
192
+ Optional : true ,
193
+ Sensitive : true ,
194
+ },
189
195
"git_username" : schema.StringAttribute {
190
196
MarkdownDescription : "(Envbuilder option) The username to use for Git authentication. This is optional." ,
191
197
Optional : true ,
0 commit comments