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

[PLATFORM-1345]: Better registry url #75

Merged
merged 4 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ jobs:
mask-password: "true"
registry-type: public

- name: Push
- name: Push primaassicurazioni
run: >-
buildah manifest push --all localauth0
"docker://public.ecr.aws/primaassicurazioni/localauth0:${{ inputs.tag_name || github.event.release.tag_name }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remember me why cannot stay in primait? I'm not sure i like this workspace so much

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole company is migrating to this one, primait is not gonna be used for anything in the future. It's out of our hands 🥲


- name: Push c6i9l4r6
run: >-
buildah manifest push --all localauth0
"docker://public.ecr.aws/c6i9l4r6/localauth0:${{ inputs.tag_name || github.event.release.tag_name }}"
4 changes: 2 additions & 2 deletions .versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ files:
- path: Cargo.toml
pattern: "\\[package\\][\\s\\S]*?version = \"{version}\""
- path: README.md
pattern: "image: public.ecr.aws/c6i9l4r6/localauth0:{version}"
pattern: "image: public.ecr.aws/primaassicurazioni/localauth0:{version}"
- path: README.md
pattern: "docker run -d -p 3000:3000 public.ecr.aws/c6i9l4r6/localauth0:{version}"
pattern: "docker run -d -p 3000:3000 public.ecr.aws/primaassicurazioni/localauth0:{version}"

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.6.2] - 2023-10-27

Note: images temporairly use the public.ecr.aws/c6i9l4r6/localauth0 registry.
Note: switch to using the public.ecr.aws/primaassicurazioni/localauth0 registry.

### Added

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ With localauth0 you can fake your [auth0](https://auth0.com/) tenant and test it
In order to run localauth0 docker image execute the following:

```shell
docker run -d -p 3000:3000 public.ecr.aws/c6i9l4r6/localauth0:0.6.2
docker run -d -p 3000:3000 public.ecr.aws/primaassicurazioni/localauth0:0.6.2
```

By default, the container exposes an http server on the port 3000 and an https one on port 3001.
Expand Down Expand Up @@ -172,7 +172,7 @@ Add this snippet to your `docker-compose.yml` file and reference it in your app

```yaml
auth0:
image: public.ecr.aws/c6i9l4r6/localauth0:0.6.2
image: public.ecr.aws/primaassicurazioni/localauth0:0.6.2
environment:
LOCALAUTH0_CONFIG_PATH: /etc/localauth0.toml
volumes:
Expand Down
6 changes: 3 additions & 3 deletions src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub async fn jwks(app_data: Data<AppData>) -> HttpResponse {
}

impl jwks {
pub const ENDPOINT: &str = "/.well-known/jwks.json";
pub const ENDPOINT: &'static str = "/.well-known/jwks.json";
}

/// Generate a new jwt token for a given audience. For `client_credentials` the audience is found in the post body
Expand All @@ -36,7 +36,7 @@ async fn token(app_data: Data<AppData>, token_request: Either<Json<TokenRequest>
}

impl token {
pub const ENDPOINT: &str = "/oauth/token";
pub const ENDPOINT: &'static str = "/oauth/token";
}

/// Logs the "user" in and returns an auth code which can be exchanged for a token
Expand All @@ -53,7 +53,7 @@ pub async fn login(app_data: Data<AppData>, login_request: Json<LoginRequest>) -
.body(serde_json::to_string(&LoginResponse { code }).expect("Failed to serialize login response to json"))
}
impl login {
pub const ENDPOINT: &str = "/oauth/login";
pub const ENDPOINT: &'static str = "/oauth/login";
}

/// List all audience-permissions mappings present in local implementation
Expand Down