opentofu/addrs
Martin Atkins 86f0b5191c addrs: Stronger validation and normalization of provider namespace/type
The provider FQN is becoming our primary identifier for a provider, so
it's important that we are clear about the equality rules for these
addresses and what characters are valid within them.

We previously had a basic regex permitting ASCII letters and digits for
validation and no normalization at all. We need to do at least case
folding and UTF-8 normalization because these names will appear in file
and directory names in case-insensitive filesystems and in repository
names such as on GitHub.

Since we're already using DNS-style normalization and validation rules
for the hostname part, rather than defining an entirely new set of rules
here we'll just treat the provider namespace and type as if they were
single labels in a DNS name. Aside from some internal consistency, that
also works out nicely because systems like GitHub use organization and
repository names as part of hostnames (e.g. with GitHub Pages) and so
tend to apply comparable constraints themselves.

This introduces the possibility of names containing letters from alphabets
other than the latin alphabet, and for latin letters with diacritics.
That's consistent with our introduction of similar support for identifiers
in the language in Terraform 0.12, and is intended to be more friendly to
Terraform users throughout the world that might prefer to name their
products using a different alphabet. This is also a further justification
for using the DNS normalization rules: modern companies tend to choose
product names that make good domain names, and now such names will be
usable as Terraform provider names too.
2020-02-18 15:42:09 -08:00
..
count_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
doc.go addrs: new package for representing addresses 2018-10-16 18:44:26 -07:00
for_each_attr.go Resource for_each 2019-07-22 10:51:16 -04:00
input_variable.go addrs: Fix infinite recursion in AbsInputVariableInstance.String 2020-01-10 15:23:25 -08:00
instance_key.go addrs: "Less" comparison method for resource and module instances 2018-10-16 18:49:20 -07:00
local_value.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
module_call.go addrs: Helper methods for converting module calls to absolute modules 2018-10-16 18:46:46 -07:00
module_instance.go addrs: ModuleInstance.Module 2020-02-14 15:20:07 -08:00
module.go addrs: Module.Call method 2018-10-16 18:46:46 -07:00
output_value.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
parse_ref_test.go Merge pull request #22846 from hashicorp/jbardin/evaluate-resource 2019-10-08 07:57:15 -04:00
parse_ref.go Merge pull request #22846 from hashicorp/jbardin/evaluate-resource 2019-10-08 07:57:15 -04:00
parse_target_test.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
parse_target.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
path_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
provider_config_test.go addrs: ProviderConfig fixups (#24115) 2020-02-14 09:06:50 -05:00
provider_config.go addrs: ProviderConfig fixups (#24115) 2020-02-14 09:06:50 -05:00
provider_test.go addrs: Stronger validation and normalization of provider namespace/type 2020-02-18 15:42:09 -08:00
provider.go addrs: Stronger validation and normalization of provider namespace/type 2020-02-18 15:42:09 -08:00
referenceable.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
resource_phase.go core: Produce correct references for destroy nodes 2018-10-16 18:49:20 -07:00
resource.go Initial steps towards AbsProviderConfig/LocalProviderConfig separation (#23978) 2020-01-31 08:23:07 -05:00
resourcemode_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
self.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
targetable.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
terraform_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00