Skip to content

Commit

Permalink
Mark secret and token attributes Sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 committed Jun 21, 2022
1 parent 3b8e963 commit 323770d
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/access_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ data "astra_access_list" "dev" {

### Read-Only

- `results` (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The access list details for the supplied Database. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ output "existing_dbs" {

- `cloud_provider` (String) The cloud provider
- `id` (String) The ID of this resource.
- `status` (String) The list of Astra databases that match the search criteria.
- `status` (String) Status flter. Only return databases with matching status, if supplied. Otherwise return all databases matching other requirements

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/private_link_endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ data "astra_private_link_endpoints" "dev" {

### Read-Only

- `results` (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of private links endpoint details that match the search criteria. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/role.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ data "astra_role" "dev" {

### Read-Only

- `results` (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of role details for the specified role id. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/token.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ resource "astra_token" "example" {
### Read-Only

- `client_id` (String) Client id, use as username in cql to connect
- `secret` (String) Secret, use as password in cql to connect
- `token` (String) Token, use as auth bearer for API calls or as password in combination with the word `token` in cql
- `secret` (String, Sensitive) Secret, use as password in cql to connect
- `token` (String, Sensitive) Token, use as auth bearer for API calls or as password in combination with the word `token` in cql

## Import

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_access_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func dataSourceAccessList() *schema.Resource {
// Computed
"results": {
Type: schema.TypeList,
Description: "The list of private links that match the search criteria.",
Description: "The access list details for the supplied Database.",
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func dataSourceDatabases() *schema.Resource {
// Optional
"status": {
Type: schema.TypeString,
Description: "The list of Astra databases that match the search criteria.",
Description: "Status flter. Only return databases with matching status, if supplied. Otherwise return all databases matching other requirements",
Optional: true,
},
"cloud_provider": {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_private_link_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func dataSourcePrivateLinkEndpoints() *schema.Resource {
// Computed
"results": {
Type: schema.TypeList,
Description: "The list of private links that match the search criteria.",
Description: "The list of private links endpoint details that match the search criteria.",
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func dataSourceRole() *schema.Resource {
// Computed
"results": {
Type: schema.TypeList,
Description: "The list of private links that match the search criteria.",
Description: "The list of role details for the specified role id.",
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func dataSourceToken() *schema.Resource {
// Computed
"results": {
Type: schema.TypeList,
Description: "The list of private links that match the search criteria.",
Description: "The list of roles for the specified client id.",
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/resource_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ func resourceToken() *schema.Resource {
"secret": {
Description: "Secret, use as password in cql to connect",
Type: schema.TypeString,
Sensitive: true,
Computed: true,
},
"token": {
Description: "Token, use as auth bearer for API calls or as password in combination with the word `token` in cql",
Type: schema.TypeString,
Sensitive: true,
Computed: true,
},

Expand Down

0 comments on commit 323770d

Please sign in to comment.