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

Specify policies to be used by each service #3687

Closed
wants to merge 2 commits into from
Closed

Conversation

Twsouza
Copy link
Contributor

@Twsouza Twsouza commented Jun 23, 2023

What is the feature/fix?

Create a role that will use the defined policies on that service. It overrides the IamPolicy just for that service (it will not be used if policies is defined on convox.yml`).

Priority:

  1. DedicatedRole (at service level, if specified)
  2. IamPolicy

Does it has a breaking change?

No, current ServiceRoles are not affected by the change.

How to use/test it?

  • Create a rack with the RC installed.
  • Deploy an app with the following yml:
services:
  web:
    policies:
      - arn:aws:iam::aws:policy/AdministratorAccess
    build: .
    port: 3000
  api:
    build: .
    port: 3000
  • Check on IAM if the policies were created correctly.

Checklist

  • New coverage tests
  • Unit tests passing
  • E2E tests passing
  • E2E downgrade/update test passing
  • Documentation updated
  • No warnings or errors on Deepsource/Codecov

nightfury1204 added a commit that referenced this pull request Jul 3, 2023
### What is the feature/fix?

Create a role that will use the defined policies on that service. It overrides the [IamPolicy](https://docsv2.convox.com/reference/app-parameters#iampolicy) just for that service (it will not be used if `policies` is defined on convox.yml`).

Priority:

1. DedicatedRole (at service level, if specified)
2. IamPolicy

### Does it has a breaking change?

No, current ServiceRoles are not affected by the change.

### How to use/test it?

- Create a rack with the RC installed.
- Deploy an app with the following yml:

```
services:
  web:
    policies:
      - arn:aws:iam::aws:policy/AdministratorAccess
    build: .
    port: 3000
  api:
    build: .
    port: 3000
```

- Check on IAM if the policies were created correctly.

### Checklist
- [ ] New coverage tests
- [ ] Unit tests passing
- [ ] E2E tests passing
- [ ] E2E downgrade/update test passing
- [ ] Documentation updated
- [ ] No warnings or errors on Deepsource/Codecov
@nightfury1204 nightfury1204 mentioned this pull request Jul 3, 2023
4 tasks
nightfury1204 added a commit that referenced this pull request Jul 4, 2023
### What is the feature/fix?

Create a role that will use the defined policies on that service. It overrides the [IamPolicy](https://docsv2.convox.com/reference/app-parameters#iampolicy) just for that service (it will not be used if `policies` is defined on convox.yml`).

Priority:

1. DedicatedRole (at service level, if specified)
2. IamPolicy

### Does it has a breaking change?

No, current ServiceRoles are not affected by the change.

### How to use/test it?

- Create a rack with the RC installed.
- Deploy an app with the following yml:

```
services:
  web:
    policies:
      - arn:aws:iam::aws:policy/AdministratorAccess
    build: .
    port: 3000
  api:
    build: .
    port: 3000
```

- Check on IAM if the policies were created correctly.

### Checklist
- [ ] New coverage tests
- [ ] Unit tests passing
- [ ] E2E tests passing
- [ ] E2E downgrade/update test passing
- [ ] Documentation updated
- [ ] No warnings or errors on Deepsource/Codecov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants