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

Basic implementation with HTTP/GHA cache protocols, OIDC and Expr #1

Merged
merged 5 commits into from
Jun 24, 2024

Conversation

edigaryev
Copy link
Collaborator

@edigaryev edigaryev commented Jun 17, 2024

Some things still left to be implemented:

  • attempt to read fallback cache keys and not just the first one
  • add a command-line variable to chacha run with the external base URL
    • needed by the GHA cache to do a proper redirect
  • GHA cache protocol test

Resolves https://github.com/cirruslabs/internal-planning/issues/43.

@edigaryev edigaryev requested a review from fkorotkov June 17, 2024 13:03
@edigaryev
Copy link
Collaborator Author

edigaryev commented Jun 18, 2024

attempt to read fallback cache keys and not just the first one

Implemented in 887e6cd.

add a command-line variable to chacha run with the external base URL

Implemented in d051ac1.

GHA cache protocol test

Implemented in 7f37e5b.

internal/cache/disk/disk.go Show resolved Hide resolved
Comment on lines +29 to +33
group.GET("/*", cache.get)
group.HEAD("/*", cache.head)
group.POST("/*", cache.put)
group.PUT("/*", cache.put)
group.DELETE("/*", cache.delete)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need some kind of authorization/authentication here? Do we have it somewhere else?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do we have it somewhere else?

We have it as a middleware:

auth.Middleware(server.issToProvider),

internal/server/protocol/ghacache/ghacache.go Show resolved Hide resolved
@edigaryev edigaryev merged commit 4f549ef into main Jun 24, 2024
2 checks passed
@edigaryev edigaryev deleted the basic-implementation branch June 24, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants