Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[app/job]: change secure parameter to a custom type #2071

Closed
1 task done
ReneHezser opened this issue May 24, 2024 · 6 comments · Fixed by #2074
Closed
1 task done

[app/job]: change secure parameter to a custom type #2071

ReneHezser opened this issue May 24, 2024 · 6 comments · Fixed by #2074
Assignees
Labels
Class: Resource Module 📦 This is a resource module Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Feature Request ➕ New feature or request

Comments

@ReneHezser
Copy link
Contributor

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Feature Request

Module Name

avm/res/app/job

(Optional) Module Version

No response

Description

The secrets parameter is defined as an object and contains a secureList property. This should be changed to a custom type to improve syntax highlighting and get rid of the workaround introduced earlier.

#2070

(Optional) Correlation Id

No response

@ReneHezser ReneHezser added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels May 24, 2024
@github-project-automation github-project-automation bot moved this to Needs: Triage in AVM - Module Issues May 24, 2024

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

Note

This label was added as per ITA06.

Note

The "Type: Feature Request ➕" label was added as per ITA20.

@ReneHezser ReneHezser self-assigned this May 24, 2024
@avm-team-linter avm-team-linter bot added the Class: Resource Module 📦 This is a resource module label May 24, 2024
Copy link

@ReneHezser, thanks for submitting this issue for the avm/res/app/job module!

Important

A member of the @Azure/avm-res-app-job-module-owners-bicep or @Azure/avm-res-app-job-module-contributors-bicep team will review it soon!

@ReneHezser ReneHezser changed the title [AVM Module Issue]: replace secureList property with custom types [app/job]: replace secureList property with custom types May 24, 2024
@ReneHezser ReneHezser changed the title [app/job]: replace secureList property with custom types [app/job]: change secure parameter to a custom type May 24, 2024

Warning

Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.

Tip

  • To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
  • To avoid this rule being (re)triggered, the ""Needs: Triage 🔍" label must be removed as part of the triage process (when the issue is first responded to)!

Note

This message was posted as per ITA01BCP.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: Response Overdue 🚩 When an issue/PR has not been responded to for X amount of days label May 30, 2024
@ReneHezser
Copy link
Contributor Author

Waiting for merge of #2074

@AlexanderSehr
Copy link
Contributor

Removing the Needs: Triage label to avoid a flood of comments ;)

@AlexanderSehr AlexanderSehr removed Needs: Triage 🔍 Maintainers need to triage still Status: Response Overdue 🚩 When an issue/PR has not been responded to for X amount of days labels Jun 2, 2024
eriqua pushed a commit that referenced this issue Jun 5, 2024
## Description

- changed secure parameter from an as secure decorated object to a
custom type.
- improved documentation with examples and tests

Unfortunately, there is a breaking change in this change. The secrets
parameter required a `secureList` property, which is not required
anymore

```
// this is the old usage
secrets: {
  secureList: [
    {
      name: 'connection-string'
      value: '<secretValue>'
    }
  ]
}

// which has now changed to a custom type and must be used like this:
secrets: [
  {
    name: 'connection-string'
    value: '<secretValue>'
  }
]
```

#2070 
Fixes #2071 

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.app.job](https://github.com/ReneHezser/bicep-registry-modules/actions/workflows/avm.res.app.job.yml/badge.svg?branch=app-job-documentation-updates)](https://github.com/ReneHezser/bicep-registry-modules/actions/workflows/avm.res.app.job.yml)
|

## Type of Change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utlities (Non-module effecting
changes)
- [x] Azure Verified Module updates:
- [ ] Bugfix containing backwards compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [x] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [x] Update to documentation

## Checklist

- [x] I'm sure there are no other open Pull Requests for the same
update/change
- [x] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [x] My corresponding pipelines / checks run clean and green without
any errors or warnings

---------

Co-authored-by: Alexander Sehr <[email protected]>
@github-project-automation github-project-automation bot moved this from Needs: Triage to Done in AVM - Module Issues Jun 5, 2024
hundredacres pushed a commit to hundredacres/bicep-registry-modules that referenced this issue Jun 19, 2024
## Description

- changed secure parameter from an as secure decorated object to a
custom type.
- improved documentation with examples and tests

Unfortunately, there is a breaking change in this change. The secrets
parameter required a `secureList` property, which is not required
anymore

```
// this is the old usage
secrets: {
  secureList: [
    {
      name: 'connection-string'
      value: '<secretValue>'
    }
  ]
}

// which has now changed to a custom type and must be used like this:
secrets: [
  {
    name: 'connection-string'
    value: '<secretValue>'
  }
]
```

Azure#2070 
Fixes Azure#2071 

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.app.job](https://github.com/ReneHezser/bicep-registry-modules/actions/workflows/avm.res.app.job.yml/badge.svg?branch=app-job-documentation-updates)](https://github.com/ReneHezser/bicep-registry-modules/actions/workflows/avm.res.app.job.yml)
|

## Type of Change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utlities (Non-module effecting
changes)
- [x] Azure Verified Module updates:
- [ ] Bugfix containing backwards compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [x] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [x] Update to documentation

## Checklist

- [x] I'm sure there are no other open Pull Requests for the same
update/change
- [x] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [x] My corresponding pipelines / checks run clean and green without
any errors or warnings

---------

Co-authored-by: Alexander Sehr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: Resource Module 📦 This is a resource module Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Feature Request ➕ New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

2 participants